fix(google-cloud-logging): add missing config#9622
Conversation
docs: add client_email field for google-cloud-logging plugin
docs: add client_email field and log_format default value for google-cloud-logging plugin in zh
|
hi @kindomLee, you'd better add the missing config in schema too: |
This commit adds the client_email field to the auth_config schema of the google-cloud-logging plugin. This field is required for the Google OAuth2 authentication process.
|
Thank you @monkeyDluffy6017 for your suggestion. I have added the missing config in schema as you advised. Could you please review my PR again and approve it if everything looks good? I hope we can merge this soon. |
|
We need to set up Google authentication to authenticate to Logging, according to the existing code [1], we are currently using OAuth2.0 as our authentication method, and this method requires us to provide the [1] https://github.com/apache/apisix/blob/7ec3c0f583510ebcdf9c414f83792e1ac247a5b9/apisix/plugins/google-cloud-logging/oauth.lua#LL103C15-L103C15 |
|
Could you add |
Could you create a issue about this? |
Sorry, I'm not very familiar with the lua testing framework, this part might need some other partners to help
I should say this, we have already provided two ways to read Google authentication when using the google cloud logging plugin, which are calling and passing in [1] |
|
@kindomLee just add |
I misunderstood you, I thought you wanted to add actual test cases |
|
I will take over the PR and add test cases. Thanks for the initial contribution @kindomLee. |
|
Raised #9836 |
|
@shreemaan-abhishek you can add test cases in this PR |
… levels in v3.x sections (#13360) - Replace `## Doc improvements` (3.13.0 / 3.14.0 / 3.14.1) and `## Developer productivity` (3.13.0) with H3 so they nest under the release header instead of starting a new top-level section. - 3.12.0: correct OpenResty version typo `v1.27.11` -> `1.27.1.1` (#11936). - 3.11.0: fix plugin name typo `attach-consmer-label` -> `attach-consumer-label` (#11604). - 3.5.0: the `google-cloud-logging` `client_email` entry referenced #9813 (proxy-rewrite); the actual PR is #9622. - 3.0.0: fix `APSISIX` typo in the `enable_cpu_affinity` entry. Refs #13359.
… levels in v3.x sections (apache#13360) - Replace `## Doc improvements` (3.13.0 / 3.14.0 / 3.14.1) and `## Developer productivity` (3.13.0) with H3 so they nest under the release header instead of starting a new top-level section. - 3.12.0: correct OpenResty version typo `v1.27.11` -> `1.27.1.1` (apache#11936). - 3.11.0: fix plugin name typo `attach-consmer-label` -> `attach-consumer-label` (apache#11604). - 3.5.0: the `google-cloud-logging` `client_email` entry referenced apache#9813 (proxy-rewrite); the actual PR is apache#9622. - 3.0.0: fix `APSISIX` typo in the `enable_cpu_affinity` entry. Refs apache#13359.

Description
Add missing config field for google cloud logging plugin
Fixes # (issue)
Checklist