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

Add support for AWS Secrets Manager as an external key value store #6563

Open
jonathanfoster opened this issue Sep 20, 2024 · 1 comment
Open

Comments

@jonathanfoster
Copy link

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

I'm an enterprise Tyk Cloud customer and I have a ton of APIs that require auth tokens for upstream API authorization. I use AWS Secrets Manager for external secrets, but this isn't natively supported by Tyk. Instead I have to run External Secrets Operator to inject secrets as environment variables, which requires me to store all secret key-value pairs in one external secret (e.g., TYK_GW_SECRETS=key:value,key2:value2). There's no way for me to allow individual API owners to manage their own secrets.

Describe the solution you'd like

A solution would be to natively support AWS Secrets Manager as an external key-value store.

Describe alternatives you've considered

The current workaround is to use External Secrets Operator to map secrets from AWS to environment variables in Tyk. This has the limitation of only supporting one secret with all key-value pairs.

Another option I've consider is installing Vault and have it integrate with AWS. This would require an enterprise license for Vault though.

@jonathanfoster jonathanfoster changed the title Add support for AWS Secrets Manager as an external key value storage Add support for AWS Secrets Manager as an external key value store Sep 20, 2024
@jonathanfoster
Copy link
Author

I started looking into implementing this myself and found I can inject individual secrets as environment variables named TYK_SECRET_${key}, there's no need to combine all secrets into key-value pairs in TYK_GW_SECRETS. This certainly makes secrets more manageable with ESO, but it would still be nice if Secrets Manager was natively supported.

The TYK_SECRET_${key} feature wasn't 100% clear after initially reading the KV store docs so maybe there's an opportunity to clarify. Actually, I would say that's true for the KV store docs in general. It's been tough to wrap my head around what notation is required for what location and whether the reference supports a path or uses the hardcoded tyk-apis path.

jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 26, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 27, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 27, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 27, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 27, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 28, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 28, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 28, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Sep 28, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 2, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 3, 2024
jonathanfoster added a commit to jonathanfoster/tyk that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant