Skip to content

[Feature Request]: Add SigV4 signature authentication #114

@devops-rob

Description

@devops-rob

Github handle

devops-rob

Please describe the feature you would like added to TerraCurl.

Add an auth method that mints SigV4 sigantures and passes it as an auth Header

Please detail the use case for this feature request?

Currently TerraCurl can not be used with AWS due to the fact that every API call needs a SigV4 signature. This stops normal CRUD operations from working and blocks retries as each attampt would require its own signature

Please add any pseudo code to demonstrate how this feature would work

resource "terracurl_request" "digest_auth_example" {
  url     = "https://api.example.com/protected/resource"
  method  = "GET"

  # Digest Authentication credentials
  auth {
    type     = "SigV4"
    service  = "ssm"
    region   = "eu-west-1"

    # optional auth sources (default = AWS default chain)
    profile  = "prod"               # ~/.aws/config profile
    role_arn = "arn:aws:iam::123:role/Deploy"  # assume role
    session_name = "terracurl"      # optional, default auto
    external_id  = null             # optional
    # web_identity = true           # auto-picks envs if present

  }

  # The rest of request config...
}

Access key and secret ID will be read from environment variables

Are you interested in working on this feature?

Yes

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions