Skip to content

Enhancement | Use OIDC instead of static AWS keys in the ref-arch integration test #337

Open

Description

@diego-ojeda-binbash

Describe the Feature

Have the ref-arch integration test (integration_tests_cli_refarch in .github/workflows/tests-integration.yaml) authenticate to AWS with GitHub OIDC role assumption instead of the long-lived DeployMaster access keys stored as repository secrets.

Split out of #330 (item 5, optional), so the modernization of the job does not wait on it.

Why

  • The job holds long-lived keys (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) able to assume DeployMaster in apps-devstg and security.
  • With OIDC, credentials are short-lived and scoped by a trust policy (repository, branch/environment, workflow).
  • It would also let the release gate and pull requests use different roles if needed.

Considerations

  • The cli reads credentials from ~/.aws/<project>/ profiles, so the OIDC credentials still need to be written there as a profile (e.g. bb-deploymaster) that the bb-apps-devstg-devops / bb-security-oaar profiles source from.
  • Needs an IAM OIDC provider and a role in the account the job authenticates against, with a trust policy restricted to repo:binbashar/leverage:* (ideally narrower).
  • Requires permissions: id-token: write on the job, and on the integration_tests call in the release workflow.
  • The SSO path (what users actually run) would still not be covered; that is a separate gap.

Activity

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

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions