-
Notifications
You must be signed in to change notification settings - Fork 75
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
Make TLS and Authorization Configuration Fields Optional #589
Open
yorozunouchu
wants to merge
12
commits into
tlsnotary:dev
Choose a base branch
from
yorozunouchu:notary-server-configration
base: dev
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.
Open
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9fb64ac
feat: Add optional fields for TLS private key and certificate paths
yorozunouchu f500ef3
Add optional field for whitelist_csv_path
funkyenough 920e5a7
Merge branch 'tlsnotary:main' into notary-server-configration
yorozunouchu 275bbb8
Merge branch 'notary-server-configration' of https://github.com/yoroz…
funkyenough 8429035
fix test cases for whitelist_csv_path
funkyenough 77d5d99
Merge branch 'main' of https://github.com/tlsnotary/tlsn into notary-…
funkyenough 9b38607
fix issues pointed out by yuroitaki
funkyenough 2f168c7
Merge branch 'dev' into notary-server-configration
yorozunouchu 3348797
Add error handling for missing PEM paths when TLS is enabled
yorozunouchu e3388b9
Fix formatting and linting
funkyenough c966cf2
Merge branch 'dev' into notary-server-configration
funkyenough 9662f70
throw error if pem files do not exist
funkyenough 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 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 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 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
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.
if the pem paths are not set when
tls.enabled
is true, we should throw an error — like your line 297There 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.
we have updated pr to be based on the dev branch instead of the main branch and added validation to throw an error when TLS is enabled but PEM paths are not set.
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.
@yorozunouchu i didn't see the error throwing fix yet, have you guys pushed it? right now if paths are not set it's still returning
None
, but we need it to throw error — so instead of doingif let Some(path)...
just directly do something likepath.ok_or_else(...)?