Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional filesystem caching of AWS Credentials #4

Open
strideynet opened this issue Nov 11, 2024 · 0 comments
Open

Optional filesystem caching of AWS Credentials #4

strideynet opened this issue Nov 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@strideynet
Copy link
Collaborator

strideynet commented Nov 11, 2024

Today, AWS SDKs will cache the credentials returned by aws-spiffe-workload-helper in-memory and reuse them until they are close to expiry.

This works fine for long-lived consumers, but causes problems for short-lived consumers, as each invocation will trigger a call to the AWS API to exchange the X509 SVID for AWS credentials.

We could offer the ability to specify a local "cache" file, that can be shared between invocations of aws-spiffe-workload-helper.

Some various things we should establish before working on this ticket:

  • Should the cache "bust" if the X509 SVID changes? If so, then we still need to connect to the Workload API on each invocation in order to determine if the upstream X509 SVID changes?
  • How complex this "cache" needs to be? Do we need to break it down into individual caches for each SPIFFE ID?
  • How users should configure the location of this cache?
@strideynet strideynet added the enhancement New feature or request label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant