Skip to content

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

Merged
shreemaan-abhishek merged 2 commits into
apache:masterfrom
shreemaan-abhishek:fix/better-way-to-fetch-secret-by-id
Apr 25, 2024
Merged

fix(secret): rectify the way to fetch secret resource by id#11164
shreemaan-abhishek merged 2 commits into
apache:masterfrom
shreemaan-abhishek:fix/better-way-to-fetch-secret-by-id

Conversation

@shreemaan-abhishek

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

Copy link
Copy Markdown
Contributor

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
@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