feat: allow to use environment variables for openid-connect plugin
Description
feat: allow to use environment variables for openid-connect plugin
Checklist
- [x] I have explained the need for this PR and the problem it solves
- [x] I have explained the changes or the new features added to this PR
- [x] I have added tests corresponding to this change
- [x] I have updated the documentation to reflect this change
- [x] I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)
hi good morning @shreemaan-abhishek clould you kindly review this PR for me ?
please write a test case that uses vault as well.↳ hi @shreemaan-abhishek I tried to add a test for valut but I am not sure if it is correct, may need your help to have a look
Great contribution!! I'm looking forward to this fix, as we are using AWS Secrets Manager as a secrets provider and we need to configure the secret as an environment variable. I hope this fix is merged and released soon :pray:
the test cases for secret resource seems correct to me, please resolve the conflicts with master so that the tests can run↳
hi @shreemaan-abhishek The conflict has been resolved. Please help approve it when you are free so that can run the test
Are there any updates on this? At the moment we have to keep a secret in our repo because of the bug that it is fixing this PR, and we need to move it to environment variables. So it would be awesome if we could have this fixed in a patch soon
Are there any updates on this? At the moment we have to keep a secret in our repo because of the bug that it is fixing this PR, and we need to move it to environment variables. So it would be awesome if we could have this fixed in a patch soon
We need another good Samaritan to approve this change, then this PR will have three approve and be merged
Are there any updates on this? At the moment we have to keep a secret in our repo because of the bug that it is fixing this PR, and we need to move it to environment variables. So it would be awesome if we could have this fixed in a patch soon
We need another good Samaritan to approve this change, then this PR will have three approve and be merged
@shreemaan-abhishek @nic-6443
Could any of you help approve this PR at your convenience? It has been pending here for a long time and only needs the last approver
Are there any updates on this? At the moment we have to keep a secret in our repo because of the bug that it is fixing this PR, and we need to move it to environment variables. So it would be awesome if we could have this fixed in a patch soon
We need another good Samaritan to approve this change, then this PR will have three approve and be merged
@shreemaan-abhishek @nic-6443
Could any of you help approve this PR at your convenience? It has been pending here for a long time and only needs the last approver
hi @kayx23 @membphis @Revolyssup Could any of you help?
I have left a comment: https://github.com/apache/apisix/pull/11451/files#r1896868940
I have left a comment: https://github.com/apache/apisix/pull/11451/files#r1896868940
i think fetch_sercets should already return a clone conf instead of modify origianl plugin_conf
anyway, i just adopted your suggestion and committed the change which clone plugin_conf before fetch_sercets to avoid possible problems
pls have to review at your convinence, many thanks
In addition, I noticed that two tests failed, but I don't know how to fix them. Is there anyone who is kind enough to help 😢
1th tip
=====bad style===== reindex: t/plugin/openid-connect.t: done.
- echo 'you need to run '''reindex''' to fix them. Read CONTRIBUTING.md for more details.' you need to run 'reindex' to fix them. Read CONTRIBUTING.md for more details.
- exit 1 make: *** [Makefile:173: lint] Error 1
2th tip
you can merge the latest master branch
1th tip
=====bad style===== reindex: t/plugin/openid-connect.t: done.↳
- echo 'you need to run '''reindex''' to fix them. Read CONTRIBUTING.md for more details.' you need to run 'reindex' to fix them. Read CONTRIBUTING.md for more details.
- exit 1 make: *** [Makefile:173: lint] Error 1
2th tip
you can merge the latest master branch↳
1th tip
=====bad style===== reindex: t/plugin/openid-connect.t: done.↳
- echo 'you need to run '''reindex''' to fix them. Read CONTRIBUTING.md for more details.' you need to run 'reindex' to fix them. Read CONTRIBUTING.md for more details.
- exit 1 make: *** [Makefile:173: lint] Error 1
2th tip
you can merge the latest master branch↳
merged latest master branch
for 1th tip, cloud you kindly help to run reindex for me ? my local windows pc no apisix source code env, we do development related to apisix use apisix offical docker image
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the [email protected] list. Thank you for your contributions.
Hi @darkSheep404, can you merge the latest master branch to trigger all the tests?
Hi @darkSheep404, can you merge the latest master branch to trigger all the tests?
hi @Baoyuantop just merged
Hi @darkSheep404, please fix failed ci
Hi @darkSheep404, Is there still time for this PR?
Hi @darkSheep404, any updates?
Hi @darkSheep404, any updates?
cloud you help to fix the lint issue for me? my local pc no apisix runtime now
openid-connect.t
@Baoyuantop tried to fix the lint,but i'm not sure will it works ..
seems ./utils/reindex t/plugin/openid-connect9.t works
seems
./utils/reindex t/plugin/openid-connect9.tworks
hi @Baoyuantop test lint issue fixed. Could help to review and approve PR ? dead ci is about mcp bridge test,this not related to this PR
Hi @darkSheep404, after re-run CI, it still fails. Can you merge the latest code from the master branch?
Hi @darkSheep404, after re-run CI, it still fails. Can you merge the latest code from the master branch?
hi @Baoyuantop updated
hi @Baoyuantop pls help to review or approve at your convinence
Merging the latest master branch can make the failing test pass.
Merging the latest master branch can make the failing test pass.
merged
Merging the latest master branch can make the failing test pass.
merged
by the way,i merged at last week and seems mcp-bridge test still fail after i merged lateset master branch
Hi @darkSheep404, there are still some lint errors that need to be fixed.