-
Notifications
You must be signed in to change notification settings - Fork 68
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
[bug]: pulsarctl 3.1 branch can't work with client credentials error #1266
Comments
@tuteng @zymap @mattisonchao Could you help check this issue? |
encountered same error |
change to Release Version: v2.10.5.11-5ce22c is working. |
Same here, when using latest version and
However, when downgrading to Not that using service account admin credentials works fine with both version, but we need to use |
@balticore According to the error, do you have the |
As I'm wokring with @balticore I'll ad more details since we've encountered this again with multiple people after updating to 3.1+ This is with latest 3.3.0.5 qa_clients.json: {
"type": "client_credentials",
"client_id": "My random guid",
"client_secret": "VERYSECRETGOESHERE",
"issuer_url": "https://login.microsoftonline.com/TenantId/v2.0",
"scope": "api://PulsarIdentityGuid/.default"
} pulsarctl context set "sn-qa-clients" `
--admin-service-url "https://adminserviceurl `
--issuer-endpoint "https://login.microsoftonline.com/TENANTID/v2.0" `
--audience "api://PulsarIdentityGuid" `
--scope "api://PulsarIdentityGuid/.default" `
--key-file "file://qa_clients.json" |
As @Nikolajls mentioned yes scope is part of the parameters and exactly same command works with version |
@Nikolajls From my understanding, the issue that apache/pulsar-client-go#1244 fixes is not the same as this one, right? They are not the same errors. |
The fix i proposed in that PR would make at least @balticore 's comment work( and we have multiple colleagues getting the same issue) You're correct that the initial error from @ericsyh I've not seen, but when I debugged through Pulsarctl code all the way through pulsar admin, pulsar auth and the the code I modified in the PR i saw that would fix the "required field scope is missing" issue, that it seems multiple people are experincing. The call chain sort of is: pulsarctl/pkg/cmdutils/config.go Line 204 in ddb962b
My change would then make so the scope is read from the actual oauth2 config key file. It could also be modified to work by changing so: |
Background
I tested and found that pulsarctl 3.1 branch release can't work now which will get error like
But I the pulsarctl 3.0 branch works well and won't get this client credentials error.
How to reproduce
I upgraded the pulsarctl on local Mac laptop the version is
Then run any kind of regular commands will get the client crediential error
The text was updated successfully, but these errors were encountered: