From d5892aed3fdbfca936cfb563fdd676db9ca91cf9 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Mon, 12 Oct 2026 11:03:32 +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 e8aa7be..fa9e78b 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -52,7 +52,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 6443ef7..5a4b5d5 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -64,5 +64,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 }}