OpenAPITools / OpenAPITools/openapi-generator

[REQ] Feature Request Description

Open
#9,467 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

Providing the inputs for AWS Signature V4 requires parsing the well defined default credential chain and config values for AWS and then passing them in a context. It would be convenient if when generating a go lang client, I could specify to always use the default credential chain and config for getting AWS credentials and AWS Region. If I know that the client will always need to authorize a request using AWS Signature V4, it would be nice if the client did not require a context value to be passed specifying I want to authorize using AWS Signature V4. Furthermore, it would be nice to be able to specify the service name for use in the AWS Signature V4 at client generation if it will be a value.

Describe the solution you'd like

A configuration option that will generate a client that always uses AWS Signature V4 for authorization, a configuration option that specifies the service name that will be used for the AWS Signature V4 authorization, and behavior that will pull the credentials and region from the default AWS configuration and credentials chain that AWS recommends as the mechanism for getting said information.

Describe alternatives you've considered

Creating a helper method in our own code base which would populate the ContextAWSv4 that is made available with the existing "withAWSV4Signature" configuration.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Go client generation configuration and the existing "withAWSV4Signature" option. Investigate how generated clients receive ContextAWSv4, then determine the scope for default AWS credential and region loading, fixed service names, and always-on signing. Done should include agreed configuration behavior and coverage for generated clients, but the issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
cloud, security, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.