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: TLS support #1617

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Fix: TLS support #1617

merged 1 commit into from
Apr 17, 2024

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Apr 8, 2024

What:
Fix: TLS support

Why:
The server didn't start if the client certs were missing. With this fix, it is possible to start the server in TLS or mTLS modes

How:
Start openvasd without client cert options, without a valid directory or an empty directory.

Checklist:

  • Tests
  • PR merge commit message adjusted

@jjnicola jjnicola requested a review from a team as a code owner April 8, 2024 13:39
nichtsfrei
nichtsfrei previously approved these changes Apr 9, 2024
Copy link
Member

@Kraemii Kraemii left a comment

Choose a reason for hiding this comment

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

Not sure about this fix, as the root cause why there are no client certs is not stated, even if it is clear, that either no path is configured, the given path is empty or the given path does not exist. Also not giving a client certs path could be wanted, when just TLS is sufficient

@jjnicola
Copy link
Member Author

Not sure about this fix, as the root cause why there are no client certs is not stated, even if it is clear, that either no path is configured, the given path is empty or the given path does not exist. Also not giving a client certs path could be wanted, when just TLS is sufficient

Fix: Improved the warnings and clarify why is running in TLS mode if client certs are not found.

rust/openvasd/src/tls.rs Outdated Show resolved Hide resolved
rust/openvasd/src/tls.rs Outdated Show resolved Hide resolved
Kraemii
Kraemii previously approved these changes Apr 12, 2024
@jjnicola jjnicola enabled auto-merge (squash) April 16, 2024 05:48
rust/openvasd/src/tls.rs Outdated Show resolved Hide resolved
rust/openvasd/src/tls.rs Outdated Show resolved Hide resolved
rust/openvasd/src/tls.rs Outdated Show resolved Hide resolved
The server didn't start if the client certs were missing. With this fix, it is possible to start the server in TLS or mTLS modes
@jjnicola jjnicola merged commit fcd5794 into main Apr 17, 2024
7 of 8 checks passed
@jjnicola jjnicola deleted the tls branch April 17, 2024 08:54
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.

4 participants