From 83775cd255cb329f3277e695019701f9b2d25182 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Mon, 12 Oct 2026 10:56:42 +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 cdcc6c4..fe7fb79 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -50,7 +50,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 b03a9ec..9c354f2 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -70,5 +70,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 }}