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
The mc admin info command should be working irrespective to the regions #5919
Conversation
@Praveenrajmani this is not the only place which needs fixing, it is completely okay to have the check for region. In-fact pkg/madmin should be able to support different regions. Will need to discuss this with @abperiasamy on how to achieve this specifically for Admin API. There are two options
|
9df7ce4
to
000d18c
Compare
Codecov Report
@@ Coverage Diff @@
## master #5919 +/- ##
==========================================
- Coverage 59.65% 59.64% -0.02%
==========================================
Files 217 217
Lines 30939 30941 +2
==========================================
- Hits 18458 18455 -3
- Misses 10933 10938 +5
Partials 1548 1548
Continue to review full report at Codecov.
|
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.
This change should happen comprehensively for all Admin API calls not just ServerInfoHandler.
Also actively deprecate region usage in pkg/madmin package
dcb4c6d
to
b9a36dc
Compare
@harshavardhana the changes are Done |
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.
Everything looks good. Commit message can be a bit more concise. We don't have to write Cause
and Solution
in separate paragraphs. We don't follow such type of patterns. Also make sure that the commit message and the respective description each line shouldn't go beyond perhaps 100 to 120 characters.
b9a36dc
to
e7a0b2c
Compare
yes @harshavardhana got it ! have changed it |
Admin API is not an S3 API and hence it is not required to honor server region while validating admin API calls. Fixes minio#2411
e7a0b2c
to
2b9a322
Compare
@harshavardhana @balamurugana have modified the git commit message |
Mint Automation
5919-2b9a322/mint-dist-xl.sh.log:
5919-2b9a322/mint-gateway-s3.sh.log:
|
Admin API is not an S3 API and hence it is not required to honor server region while validating admin API calls. Fixes minio#2411
Description
The mc admin info command was throwing signature mismatch in #5918 , as the server validates the request signature with the globalServerConfig.Region,
So, if the region in config.json is set to some other except 'us-east-1' ,
the signature mismatch happens, as the mc admin info always signs with 'us-east-1' as per the spec.
Motivation and Context
The mc admin info was throwing signature mismatch for any other region in config.json except
'us-east-1'
solves: #5918
Types of changes
Checklist:
mint
PR # here: )