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

fix(secret): rectify the way to fetch secret resource by id #11164

Conversation

shreemaan-abhishek
Copy link
Contributor

@shreemaan-abhishek shreemaan-abhishek commented Apr 18, 2024

Description

Instead of caching the secrets resource and iterating over all of them in a loop to find the correct secret resource, it's better to directly use the get function. This also maintains consistency with other parts of the apisix code.

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@starsz starsz self-requested a review April 22, 2024 07:06
@shreemaan-abhishek shreemaan-abhishek merged commit 77258c4 into apache:master Apr 25, 2024
46 checks passed
@shreemaan-abhishek shreemaan-abhishek deleted the fix/better-way-to-fetch-secret-by-id branch April 25, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants