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

fix(coresmd): trim quotes on cert path to actually ignore if empty #5

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

synackd
Copy link
Collaborator

@synackd synackd commented Nov 8, 2024

Passing '' or "" as an empty argument would see the cert path be literally quotes (e.g. "" or ''). This PR ensures those characters are trimmed from the output (shallowly) so the string appears as empty when checking if the cert path is set. The certificate path should be optional and this PR ensures that that is enforced.

Passing '' or "" as an empty argument would see the cert path be
literally quotes (e.g. "" or ''). This commit ensures those characters
are trimmed from the output (shallowly) so the string appears as empty
when checking if the cert path is set.
@synackd
Copy link
Collaborator Author

synackd commented Nov 8, 2024

@rainest Your second bullet in your comment here mentioned having to put in a fake certificate when operating SMD without TLS. Specifying the CA certificate path was always meant to be optional, so I took a look and found that specifying empty quotes wasn't being picked up as an empty argument so that is fixed here.

@alexlovelltroy alexlovelltroy merged commit 3bdf93c into main Nov 13, 2024
@synackd synackd deleted the synackd/ignore-cert-if-empty branch November 13, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants