Skip to content

Improve secret management #196

Open
Open
@marcoieni

Description

@marcoieni

Current situation

At the moment, we store secrets in AWS KMS or GitHub Actions secrets.

KMS:

  • Pros:
    • logging into aws leaves a trail
  • Cons:
    • an admin can read the value of the secret easily without leaving a trail

GitHub Actions secrets:

  • Pros:
    • GitHub secrets are not readable from the UI
  • Cons:
    • One can read GitHub secrets by pushing code that edits them and print them (e.g. write the secret to a file, separate each character with a , and print the content of the file). In theory this leaves a trail in GitHub Actions logs, but an admin can delete a workflow run from the UI.

Solution

Consider using a secret manager that audits when secrets are accessed. E.g. GitHub Actions read secrets from this manager and the manager logs that a secret was accessed from the action.

Example: AWS Secrets Manager

Context

discussion started in zulip#t-infra > meeting 2025-03-24 @ 💬

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions