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

Unexpirable API keys for AWS Amplify Appsync GraphQL API #828

Closed
2 tasks
R4Y-R4Y opened this issue Sep 26, 2022 · 1 comment
Closed
2 tasks

Unexpirable API keys for AWS Amplify Appsync GraphQL API #828

R4Y-R4Y opened this issue Sep 26, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists transferred

Comments

@R4Y-R4Y
Copy link

R4Y-R4Y commented Sep 26, 2022

Is this related to a new or existing framework?

React Native

Is this related to a new or existing API?

GraphQL API

Is this related to another service?

Appsync

Describe the feature you'd like to request

It would be really great if there's a way to have an unexpirable api key so i don't have to get a 401 response from the app when requesting queries, mutations or anything related to that.

Describe the solution you'd like

I think that an unexpirable API Key would be the best solution

Describe alternatives you've considered

Or maybe have it as a built-in function to repeatedly request for the latest API key if its not expired otherwise generate one when it does.

Additional context

@chrisbonifacio mentioned to me this article about creating a lambda function for this feature to happen but i wanted it to be included with Amplify instead
https://www.cloudxs.ch/2021/06/rotate-appsync-api-key-in-an-aws-amplify-project/

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@R4Y-R4Y R4Y-R4Y added the feature-request New feature or request label Sep 26, 2022
@abdallahshaban557 abdallahshaban557 transferred this issue from aws-amplify/amplify-js Sep 27, 2022
@josefaidt josefaidt added transferred and removed feature-request New feature or request labels Oct 6, 2022
@ykethan
Copy link
Member

ykethan commented Oct 6, 2022

Hey, there is a effort currently in place to support rotatable API key with Amplify CLI. Please refer to #598 for additional information. Implementing a unexpirable API key would not follow API best practices.

@ykethan ykethan added duplicate This issue or pull request already exists and removed pending-triage labels Oct 6, 2022
@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists transferred
Projects
None yet
Development

No branches or pull requests

4 participants