Skip to content
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 inital changes for confirmation #7758

Closed
wants to merge 1 commit into from

Conversation

ssonthal
Copy link
Contributor

@ssonthal ssonthal commented Nov 14, 2024

Fixes #7746

Please choose one of the keywords above to refer to the issue this PR solves followed by the issue number (e.g. Fixes #000). If no issue number, remove the line. Also, remove everything marked optional that is not applicable. Remove this note after reading.

Changes

  • List the changes

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

Optional. Remove if not applicable.

Documentation

Requires documentation update

  • Yes
  • No

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

  • Yes
  • No

If yes, fill in the details here. Remove if not applicable.

Remarks

Optional. Remove if not applicable.

@ssonthal ssonthal marked this pull request as ready for review November 14, 2024 09:09
@ssonthal ssonthal marked this pull request as draft November 14, 2024 09:17
@ssonthal ssonthal marked this pull request as ready for review November 16, 2024 18:03
@ssonthal
Copy link
Contributor Author

ssonthal commented Nov 16, 2024

Hey @obasekiosa/ @LukaszRozmej , can you confirm if these changes look good for the issue.

@LukaszRozmej LukaszRozmej requested a review from rubo November 18, 2024 12:05
@LukaszRozmej
Copy link
Member

LukaszRozmej commented Nov 18, 2024

I am not sure if we should update one path based on another or handle it deeper when resolving the path. @rubo ?

Also you accidentally updated submodule.

@ssonthal
Copy link
Contributor Author

Yes, i will fix the submodule changes.

IKeyStoreConfig keyStoreConfig = _api.Config<IKeyStoreConfig>();

// updating jwt-secret path based on data directory.
jsonRpcConfig.JwtSecretFile = String.Concat(keyStoreConfig.KeyStoreDirectory,"/jwt-secret");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change actually introduces another bug disrespecting the JsonRpc.JwtSecretFile setting. I think we should remove the default value of the IJsonRpcConfig.JwtSecretFile and check for null. If null, then apply this change.

@ssonthal ssonthal closed this Nov 18, 2024
@ssonthal ssonthal deleted the 7746_update_jwt_path branch November 18, 2024 13:42
@ssonthal
Copy link
Contributor Author

Creating a new PR for the suggested changes as I wasn't able to undo the submodule changes - #7765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants