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

security/advancedtls: add min/max TLS version option #5797

Closed
wants to merge 5 commits into from

Conversation

ZhenLian
Copy link
Contributor

@ZhenLian ZhenLian commented Nov 15, 2022

Adding an "TlsVersionOption" for users to select their desired min/max TLS versions, if advanced TLS is used, per request by #5667

RELEASE NOTES:

  • security/advancedtls: add min/max TLS version selection options

@ZhenLian ZhenLian added the Type: Security A bug or other problem affecting security label Nov 15, 2022
@ZhenLian ZhenLian self-assigned this Nov 15, 2022
@ZhenLian ZhenLian added this to the 1.52 Release milestone Nov 15, 2022
Copy link
Member

@dfawley dfawley left a comment

Choose a reason for hiding this comment

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

Please make sure to add tests where the client uses a version under the server's min and over the server's max, and the reverse for server/client.

security/advancedtls/advancedtls.go Outdated Show resolved Hide resolved
@dfawley dfawley changed the title advancedtls: add min/max TLS version option security/advancedtls: add min/max TLS version option Nov 22, 2022
@github-actions
Copy link

This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

@github-actions github-actions bot added the stale label Nov 29, 2022
@arvindbr8 arvindbr8 removed the stale label Dec 7, 2022
@ZhenLian
Copy link
Contributor Author

ZhenLian commented Dec 8, 2022

In regards to the comments for testing client-server behavior, It would require setting up a real server, and I thought probably it would be better to do it in the integration tests. Would it be fine if we submit that in a separate PR?
Thank you so much!

@dfawley
Copy link
Member

dfawley commented Dec 9, 2022

I would prefer to include tests for functionality in the same PR that adds that functionality, unless there are very strong reasons not to (e.g. this feature is urgently needed and the tests will take too long to write).

@github-actions
Copy link

This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

@github-actions github-actions bot added the stale label Dec 15, 2022
@ZhenLian
Copy link
Contributor Author

@dfawley Done with adding the integration tests. Would you mind taking a look again? Thank you so much!

Comment on lines +846 to +853
{
desc: "Good TLS version settings",
clientMinVersion: tls.VersionTLS12,
clientMaxVersion: tls.VersionTLS13,
serverMinVersion: tls.VersionTLS12,
serverMaxVersion: tls.VersionTLS13,
expectError: false,
},
Copy link
Member

Choose a reason for hiding this comment

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

For completeness, can you also add:

  • client 12-13, server 12-12 (and/or 11-12)
  • client 12-13, server 13-13 (and/or 13-14)
  • server 12-13, client 12-12 (and/or 11-12)
  • server 12-13, client 13-13 (and/or 13-14)

These should all pass IIUC?

@github-actions
Copy link

This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

@github-actions github-actions bot added the stale label Dec 26, 2022
@github-actions github-actions bot closed this Jan 2, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants