Skip to content

Commit

Permalink
chore: remove BOPS_API_TOKEN (#3743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion authored Oct 1, 2024
1 parent ece64ca commit 95aebb3
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ PRODUCTION_PG_URL_FOR_USER_GITHUB_ACTIONS=👻
SHAREDB_PORT=7003

# Integrations (local and pull request environments point to third party staging environments)
BOPS_API_TOKEN=👻

GOVUK_NOTIFY_API_KEY=👻

UNIFORM_TOKEN_URL=👻
Expand Down
3 changes: 0 additions & 3 deletions api.planx.uk/.env.test.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ HASURA_PLANX_API_KEY=👻
MINIO_PORT=1234

# Integrations
BOPS_API_TOKEN=👻
BOPS_API_TOKEN=👻

GOVUK_NOTIFY_API_KEY=testlocaldev2-👻

UNIFORM_TOKEN_URL=👻
Expand Down
2 changes: 1 addition & 1 deletion api.planx.uk/modules/send/bops/bops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const sendToBOPS = async (req: Request, res: Response, next: NextFunction) => {
adapter: "http",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${bopsToken || process.env.BOPS_API_TOKEN}`,
Authorization: `Bearer ${bopsToken}`,
},
data: exportData,
})
Expand Down
3 changes: 1 addition & 2 deletions api.planx.uk/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import cookieParser from "cookie-parser";
import cookieSession from "cookie-session";
import type { CorsOptions } from "cors";
import cors from "cors";
import type { ErrorRequestHandler, Request } from "express";
import type { ErrorRequestHandler } from "express";
import express from "express";
import pinoLogger from "express-pino-logger";
import helmet from "helmet";
Expand Down Expand Up @@ -106,7 +106,6 @@ app.use(helmet());

assert(process.env.GOVUK_NOTIFY_API_KEY);
assert(process.env.HASURA_PLANX_API_KEY);
assert(process.env.BOPS_API_TOKEN);
assert(process.env.UNIFORM_TOKEN_URL);
assert(process.env.UNIFORM_SUBMISSION_URL);

Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ services:
AWS_S3_BUCKET: ${AWS_S3_BUCKET}
AWS_S3_REGION: ${AWS_S3_REGION}
AWS_SECRET_KEY: ${AWS_SECRET_KEY}
BOPS_API_TOKEN: ${BOPS_API_TOKEN}
# This is controlled via generateCORSAllowList() in staging and production
CORS_ALLOWLIST: ${EDITOR_URL_EXT}, ${API_URL_EXT}, https://login.live.com, https://login.microsoftonline.com
EDITOR_URL_EXT: ${EDITOR_URL_EXT}
Expand Down
2 changes: 0 additions & 2 deletions infrastructure/application/Pulumi.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ config:
secure: AAABAE+ZtQZO26XlmfAS7tG1DkwQ+G5OP82Roe4EOuk/tG1bMsI=
application:airbrake-project-key:
secure: AAABAPIGB+gWevPn0SzWnuSuV1RmdwpLOlWKnu8cM/kxLfslvdCIRcU0n0M0XNJ3jwj4EdFn7/llsL1Kg2XnDA==
application:bops-api-token:
secure: AAABALRtSjQMRjERtkHs6WBOI7MBMw4bFOuHO8qLLPe9Pfg8Nlbp61XalZA1pmXsRt/T+59fGcdqbKA5WRkOZVibhFo=
application:cloudflare-zone-id: a9b9933f28e786ec4cfd4bb596f5a519
application:encryption-key:
secure: AAABAGbTpoRtazwoNFNmaPCW0RdeTqjhEzQuYR1kl4ft7EWNxqswAu8Dc9T+YBxkYr3uaHbu5obzyo8I4QuVgg==
Expand Down
2 changes: 0 additions & 2 deletions infrastructure/application/Pulumi.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ config:
secure: AAABABxcp8r3CZAw1kXuXkwPZ8cKRDQyOg4+gVvqzKuCFWb8BEU=
application:airbrake-project-key:
secure: AAABABujxMHxU8Abj4QpyQTz7bLt3AP2wBFaypVkDZ2khzc6eh6lHLljTEkzpLUncno3gNNDXnrmxzXvqKnQdQ==
application:bops-api-token:
secure: AAABAJx2KnnFeuEmwRB5VyE790TeYxiKmWFuVXVY8Lb7+HDNRYND8Pfd9d61zjwPzi9Jf2ZlT0OH++1MXYafhdQO28Y=
application:cloudflare-zone-id:
secure: AAABAPZz/bzFCZEZd+jzPpYP4HXAOLYQmLGf2YLQE2YPfMBUtDC83KCo2l2DJ4AL4OKL+jFFx8wrrJc6DDwXJQ==
application:encryption-key:
Expand Down
4 changes: 0 additions & 4 deletions infrastructure/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@ export = async () => {
value: config.requireSecret("session-secret"),
},
{ name: "API_URL_EXT", value: `https://api.${DOMAIN}` },
{
name: "BOPS_API_TOKEN",
value: config.requireSecret("bops-api-token"),
},
{ name: "JWT_SECRET", value: config.requireSecret("jwt-secret") },
{ name: "PORT", value: String(API_PORT) },
{
Expand Down

0 comments on commit 95aebb3

Please sign in to comment.