Repository navigation
fix(docker): make auth bootstrap safe for mounted and upgraded configs #3192
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
Open
Adarsh-Me
wants to merge
25
commits into
apache:master
Choose a base branch
from
Adarsh-Me:fix-entrypoint-auth-bootstrap
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,349
−37
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d4e77ac
fix(docker): make auth bootstrap safe for mounted and upgraded configs
Adarsh-Me 564e08b
fix(docker): close review gaps in auth bootstrap alignment
Adarsh-Me 548391f
fix(docker): close review gaps in auth bootstrap parsing and rewrite
Adarsh0087 ff07e3f
fix(docker): keep the config inode when rewriting properties
Adarsh-Me 77543d4
fix(docker): refuse one-sided auth bootstrap and pre-create tmp 0600
6c0751d
fix(docker): close the remaining auth bootstrap review gaps
Adarsh-Me 843f588
test(docker): cover the rollback branch where restoring also fails
Adarsh-Me 71d9ad1
fix(docker): decide authentication by side, not by class
Adarsh-Me 7a35508
fix(docker): read properties and yaml the way the server does
Adarsh-Me 698a6ae
fix(docker): let enable-auth.sh answer what the entrypoint asks
Adarsh-Me 857a211
fix(docker): read the authenticator value the server actually reads
Adarsh-Me 2e7ed31
fix(docker): answer the config questions the guards cannot resolve
Adarsh-Me d456d43
fix(docker): fail closed on layouts the guards resolved too optimisti…
Adarsh-Me 5208f7c
fix(docker): read the yaml shapes the scanner still answered wrongly
Adarsh-Me 87aec28
fix(docker): refuse to arm REST when the yaml names no authenticator
Adarsh-Me 76058c6
fix(docker): reject an unusable AUTHENTICATOR_CLASS before writing it
Adarsh-Me 642d3d2
fix(docker): read a flow collection that a child value leaves open
Adarsh-Me 8d52034
fix(docker): answer yamlscan with what Settings.read() actually loads
Adarsh-Me 5ac1e88
fix(docker): read a BOM, a node property and a CR as SnakeYAML does
Adarsh-Me eb07eb5
fix(docker): state get's real exit status, and drop the has mode noth…
Adarsh-Me bd1b888
fix(docker): read every value the script decides on before the first …
Adarsh-Me 4d762f6
fix(docker): refuse a config the run cannot write, and do not call it…
Adarsh-Me 5150e07
fix(docker): collapse a properties key the older image left defined t…
Adarsh-Me cf1f9a8
fix(docker): refuse duplicate authenticator definitions that disagree
Adarsh-Me 91491bc
fix(docker): ship auth readers consistently
imbajin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
BACKEND=rocksdb; the entrypoint maps it toHG_SERVER_BACKENDand overwrites this fixture's escapedhstore, so the assertion at line 436 fails. This reproduces withBACKEND=rocksdband passes whenBACKENDandHG_SERVER_BACKENDare unset. Clear inherited backend variables for these config-driven cases rather than changing production environment precedence.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.
Fixed in 5940fa5. The harness now unsets inherited BACKEND/HG_SERVER_BACKEND/PD_PEERS/HG_SERVER_PD_PEERS at the top, so the escaped hstore fixture decides the stabilization check instead of the CI matrix value. Production env precedence is unchanged; env-driven cases set it per invocation. Reproduced: the test failed under BACKEND=rocksdb before, passes after.