Skip to content

Token Rotation support for Credentials #911

@klopfdreh

Description

@klopfdreh

Type: Feature

Is your feature request related to a problem? Please describe.
As of now it is only possible to assign credentials once at the start of an application. It would be great if the credentials are lazy fetched each time they are accessed.

For example spring.cloud.aws.s3.credentials.accessKey and spring.cloud.aws.s3.credentials.secretKey are configured once. If they are assigned via environment variables they could be configured with a ConfigMap in Kubernetes environments. When a token rotation is configured those environment variables may change within the infrastructure.

If the credentials in this example changed - the S3Clients created by spring need to be recreated with the new credentials.

Describe the solution you'd like
Lazy load the credential properties each time they are accessed.

Describe alternatives you've considered
N/A

Additional context
N/A

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