-
Notifications
You must be signed in to change notification settings - Fork 441
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
#7746 jwtfile path correction #7765
base: master
Are you sure you want to change the base?
Conversation
@rubo / @LukaszRozmej this PR includes the previously suggested changes. Can continue the thread here. |
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.
I think this change might break setups in one case: if someone used dataDir + jwtSecret, it won’t read the old JWT anymore.
There was a more interesting approach in this pull request: #5979.
This approach will have to be discussed with other teams.
True it would break setups, (same as changing the JwtSecretFile config would break setups unless you move the secrete to the new location and tell the consensus client about it). Note: So A way around that
Also, note there a bit of other things being generated in this directory, even after the change, you might want to change them too in another pr after a bit of discussion on what they are. |
I will start working in this direction, then. |
@obasekiosa can you check once now? |
@ssonthal |
Nope. You can review now. |
there are still requested but pending changes. |
@obasekiosa no I can't see any request changes on my end. |
apologies, seems they've been on pending on my end. you should see them now. |
@obasekiosa can you check now? |
@MarekM25 / @LukaszRozmej / @rubo can you confirm if the changes look fine to you? |
if (File.Exists(defaultPath)) | ||
{ | ||
// move the jwt-secret file | ||
logger.Warn($"jwt-secret already exists at {defaultPath}. Moving it to {newPath} as data directory has been updated"); |
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.
a side note: if you intend to take corrective action then they are info logs and not warning logs.
for now until we decide if we need to move or not based on @MarekM25 response,
we can just leave it as is.
@ssonthal once you do that once, and you don't add any additional changes, then its very unlikely that you'd have conflicts with master for a long long while. |
Got it! |
Fixes #7746, #5948
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs
. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.