Skip to content

security: remove staging smoke access keys - #3044

Open
P0NDER0SA wants to merge 1 commit into
mainfrom
security/remove-staging-access-keys
Open

P0NDER0SA wants to merge 1 commit into
mainfrom
security/remove-staging-access-keys

Conversation

@P0NDER0SA

Copy link
Copy Markdown
Contributor

Summary

Remove long-lived staging AWS access-key usage from the API repository's test paths.

Changes

  • Removed the static STAGING_AWS_ACCESS_KEY_ID / STAGING_AWS_SECRET_ACCESS_KEY credential step from .github/workflows/docker.yaml. The job already authenticates to ECR through GitHub Actions OIDC.
  • Removed the optional SMOKE_AWS_ACCESS_KEY_ID / SMOKE_AWS_SECRET_ACCESS_KEY fallback from tests_smoke/smoke/common.py. Smoke tests now always use the ambient AWS credential provider chain, including OIDC-provided credentials.

Validation

  • YAML parsing passed
  • Python compilation passed
  • git diff --check passed
  • Ruff passed
  • Ruff-format passed
  • No tracked workflow or smoke-test code consumes staging AWS access-key secrets

Terraform IAM-user deactivation should be performed separately after this change is deployed and staging behavior is observed, so any remaining consumers can be identified without disabling the identity prematurely.

Copilot AI lite review requested due to automatic review settings September 3, 2026 18:02

@andrewleith andrewleith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you still run the smoke tests without that?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes cleanly remove long-lived AWS keys with no remaining references in code and preserve existing OIDC-based authentication in the workflow.

Pull request overview

This PR removes long-lived AWS access key usage from the repository’s CI workflow and smoke-test configuration, standardizing on GitHub Actions OIDC and the default AWS credential provider chain.

Changes:

  • Removed the STAGING_AWS_ACCESS_KEY_ID / STAGING_AWS_SECRET_ACCESS_KEY credentials configuration step from the Docker deploy GitHub Actions workflow.
  • Removed the SMOKE_AWS_ACCESS_KEY_ID / SMOKE_AWS_SECRET_ACCESS_KEY fallback path from smoke tests so boto3 always uses ambient credentials.
File summaries
File Description
tests_smoke/smoke/common.py Removes explicit access-key environment fallback and always uses the default boto3 credential chain.
.github/workflows/docker.yaml Removes static staging AWS access key configuration, relying on the existing OIDC role assumption for AWS auth.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants