-
Notifications
You must be signed in to change notification settings - Fork 261
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: handling of no inline policy for service acc. #3221
Conversation
6e820e2
to
fd03a73
Compare
IIUC, the last failure is not related to this PR - I've tried re-running it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Could I get a review please @bexsoft @prakashsvmx |
Some test is failing can you add more logs here @donatello
|
67e2a49
fd03a73
to
67e2a49
Compare
@harshavardhana @bexsoft It looks like some bug in the console only - the integration test is calling some API endpoints in the console and it is returning 500s - this is not a minio server response I check that running trace and it looks good. These errors are happening in other PRs for console as well. Console responses are logged in this PR now, but they didn't provide much more info:
|
@donatello could you check the lint failure ? |
Please run |
When no inline policy is specified for a service account, stop sending `null` as the policy JSON value to the create service account API endpoint. Also, skip the unnecessary console side validation of the policy JSON as the create-service-account API already does this - no client-server round-trip is saved by doing it. Console was also re-encoding the user provided JSON due to this - now this is prevented as well. This is part of the remaining work mentioned in minio/minio#18945
689d17e
to
35134e8
Compare
PR is rebased |
PTAL @bexsoft @cesnietor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When no inline policy is specified for a service account, stop sending
null
as the policy JSON value to the create service account API endpoint.Also, skip the unnecessary console side validation of the policy JSON as the create-service-account API already does this - no client-server round-trip is saved by doing it. Console was also re-encoding the user provided JSON due to this - now this is prevented as well.
This is part of the remaining work mentioned in
minio/minio#18945