Skip to content

Commit

Permalink
feat: sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
James Reed committed Dec 23, 2024
1 parent 2e87a75 commit 1348394
Show file tree
Hide file tree
Showing 12 changed files with 1,861 additions and 115 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN CYPRESS_INSTALL_BINARY=0 npm ci --no-audit
ENV NODE_ENV='production'

COPY . .
RUN npm run build
RUN --mount=type=secret,id=sentry SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry) npm run build

RUN npm prune --no-audit --omit=dev

Expand Down
4 changes: 4 additions & 0 deletions helm_deploy/hmpps-allocate-key-workers-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ generic-service:
AUTH_CODE_CLIENT_SECRET: 'AUTH_CODE_CLIENT_SECRET'
CLIENT_CREDS_CLIENT_ID: 'CLIENT_CREDS_CLIENT_ID'
CLIENT_CREDS_CLIENT_SECRET: 'CLIENT_CREDS_CLIENT_SECRET'
SENTRY_AUTH_TOKEN: SENTRY_AUTH_TOKEN
SESSION_SECRET: 'SESSION_SECRET'
elasticache-redis:
REDIS_HOST: 'primary_endpoint_address'
REDIS_AUTH_TOKEN: 'auth_token'
application-insights:
APPLICATIONINSIGHTS_CONNECTION_STRING: "APPLICATIONINSIGHTS_CONNECTION_STRING"
hmpps-allocate-key-workers-sentry:
SENTRY_DSN: "SENTRY_DSN"
SENTRY_LOADER_SCRIPT_ID: "SENTRY_LOADER_SCRIPT_ID"
# This secret will need to be created in your namespace (note it isn't in hmpps-templates-dev)
# IRSA configuration in your namespace will also be required, and then uncomment serviceAccountName above.
# sqs-hmpps-audit-secret:
Expand Down
1 change: 1 addition & 0 deletions helm_deploy/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ generic-service:
TOKEN_VERIFICATION_API_URL: "https://token-verification-api-dev.prison.service.justice.gov.uk"
ENVIRONMENT_NAME: DEV
AUDIT_ENABLED: "false"
SENTRY_ENVIRONMENT: DEV

generic-prometheus-alerts:
alertSeverity: move-and-improve-alerts-non-prod
1 change: 1 addition & 0 deletions helm_deploy/values-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ generic-service:
TOKEN_VERIFICATION_API_URL: "https://token-verification-api-preprod.prison.service.justice.gov.uk"
ENVIRONMENT_NAME: PRE-PRODUCTION
AUDIT_ENABLED: "false"
SENTRY_ENVIRONMENT: PRE-PRODUCTION

generic-prometheus-alerts:
alertSeverity: move-and-improve-alerts-non-prod
1 change: 1 addition & 0 deletions helm_deploy/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ generic-service:
HMPPS_AUTH_URL: "https://sign-in.hmpps.service.justice.gov.uk/auth"
TOKEN_VERIFICATION_API_URL: "https://token-verification-api.prison.service.justice.gov.uk"
AUDIT_ENABLED: "false"
SENTRY_ENVIRONMENT: PRODUCTION

generic-prometheus-alerts:
alertSeverity: move-and-improve-alerts
Loading

0 comments on commit 1348394

Please sign in to comment.