-
Notifications
You must be signed in to change notification settings - Fork 183
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
feat(config/server): Add option for TLS and mTLS server #508
Merged
Merged
Changes from 1 commit
Commits
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
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.
I'm afraid it will create confusion for end users. We have 2 different mTLS:
So we can't use the same folder as they might have conflicts with the
ca.crt
, wdyt?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 agree it could be confusing that the default path is the same folder. They could rename the
ca.crt
for the server to something else if they need two different ones though.One solution I see is that we could use
etc/certs/server
for the new ones and/etc/certs/client
for the already existing ones - this sounds more logical in my mind but this would mean breaking change for those who used the default option.Other path name that I would suggest is
/etc/tls/server
and leave the client one as is. Just to have something different and in the end everyone can set it to whatever they want.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.
Let me propose you something, it's mostly to avoid to break anything:
/etc/certs/
remains as is, for client and not break anything/etc/certs/client/
is for client too, withclient.key
,client.crt
andca.crt
/etc/certs/server/
is for server, withserver.key
,server.crt
andca.crt
I'll add a message in the changelog and blog post to explain the
/etc/certs
is obsolete and will be replaced by/etc/certs/client/
in the falcosidekick-ui in futureThere 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.
Just to be clear, you mean something like this?
Not sure how to resolve the issue of which one gets priority in this case, this is what I could come up with:
By not setting default value for
mutualtlsclient
file values for now, it will be set to those values if they are set manually and themutualtlsfilespath
+ hardcoded file names ifmutualtlsfilespath
is set or if it's empty (thus backfalls to the default/etc/certs
value.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.
Ok with your solution.
For the
mutualtls
, do you think we could enforce deploy if it's true?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.
Great!
I think that would be confusing eg. if I turn off the
deploy
for debugging, then I would expect that the whole TLS part is turned off, but it would still be on. Maybe I could set a warning log message for thedeploy == false && mutualtls == true
case.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.
Ok for the warning, thanks
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.
Added the modifications in a new commit, let me know if it's okay with you or I should change something!