From ab668791dc171656491cdf701f87446b696fb481 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Mon, 12 Oct 2026 10:56:50 +0100 Subject: [PATCH] Use separate staging and production function admin API keys Co-Authored-By: Claude Opus 5.5 --- .github/workflows/production-deploy.yml | 3 ++- .github/workflows/staging-deploy.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml index 87b0ac7..72a4016 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -53,7 +53,8 @@ jobs: secrets: aws-key-id: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }} aws-secret-key: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}} - function-admin-api-key: ${{ secrets.FUNCTION_ADMIN_API_KEY}} + function-admin-api-key-staging: ${{ secrets.FUNCTION_ADMIN_API_KEY_STAGING }} + function-admin-api-key-production: ${{ secrets.FUNCTION_ADMIN_API_KEY_PRODUCTION }} gcp_credentials: ${{ secrets.GCP_DEPLOY }} TEST_API_ENDPOINT: ${{ secrets.TEST_API_ENDPOINT }} DB_USER: ${{ secrets.DB_USER }} diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index c4b74e7..6c17609 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -67,5 +67,5 @@ jobs: secrets: aws-key-id: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_ID }} aws-secret-key: ${{ secrets.LAMBDA_CONTAINER_PIPELINE_AWS_SECRET}} - function-admin-api-key: ${{ secrets.FUNCTION_ADMIN_API_KEY}} + function-admin-api-key-staging: ${{ secrets.FUNCTION_ADMIN_API_KEY_STAGING }} gcp_credentials: ${{ secrets.GCP_DEPLOY }}