Skip to content

--register-aws does not detect AWS Bedrock API credentials — users get false sense of security #278

Description

@gugacyber

Bug description

git-secrets --register-aws registers patterns for classic AWS credential types (AKIA, ASIA, AGPA, etc.) but does not cover AWS Bedrock API keys, which use a distinct short-lived credential format.

A developer using Bedrock who runs git-secrets --register-aws will see no warnings when committing Bedrock credentials, creating a false sense of security.

PR #271 (open since October 2025) attempts to add a Bedrock pattern but has not been merged. This issue documents the gap so it is tracked independently of that PR.

To reproduce

  1. Install git-secrets and run git-secrets --register-aws
  2. Create a file containing a Bedrock short-lived credential
  3. Attempt to commit — git-secrets does not block it

Expected behavior

--register-aws should cover all active AWS credential types, including Bedrock API keys, or the documentation should explicitly state which credential types are not covered so users know to add patterns manually.

Environment

  • git-secrets version: latest (master)
  • OS: Linux / macOS

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions