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

introduce --tls-min-version flag to karmada-webhook #1278

Merged

Conversation

carlory
Copy link
Member

@carlory carlory commented Jan 19, 2022

What type of PR is this?

/kind feature

What this PR does / why we need it:

Some users want to config the TLS MinVersion for karmada-webhook.

Which issue(s) this PR fixes:
Fixes #1272

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

karmadactl: Introduced `--tls-min-version` flag to specify the minimum TLS version.

@karmada-bot karmada-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 19, 2022
@carlory carlory force-pushed the introduce-tls-flag-to-webhook branch from f8c8d7e to fc698b9 Compare January 19, 2022 02:41
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

LGTM. Just proposed some comments on it.

cmd/webhook/app/options/options.go Outdated Show resolved Hide resolved
@carlory carlory force-pushed the introduce-tls-flag-to-webhook branch 3 times, most recently from 6b75281 to f23ea9d Compare January 19, 2022 07:04
@carlory
Copy link
Member Author

carlory commented Jan 19, 2022

kubectl logs info:
386
      --skip_headers                     If true, avoid header prefixes in the log messages
387
      --skip_log_headers                 If true, avoid headers when opening log files
388
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
389
      --tls-min-version string           Minimum TLS version supported. Possible values: VersionTLS10, VersionTLS11, VersionTLS12, VersionTLS13. (default "VersionTLS13")
390
  -v, --v Level                          number for the log level verbosity (default 0)
391
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
392

393
ada-webhook [command] --help" for more information about a command.
394

395
invalid TLSMinVersion VersionTLS13: expects 1.0, 1.1, 1.2, 1.3 or empty

@carlory carlory force-pushed the introduce-tls-flag-to-webhook branch from f23ea9d to 9441e9c Compare January 19, 2022 07:58
@RainbowMango
Copy link
Member

invalid TLSMinVersion VersionTLS13: expects 1.0, 1.1, 1.2, 1.3 or empty

Sorry my bad.

@carlory carlory force-pushed the introduce-tls-flag-to-webhook branch from 7f4eb96 to 403de9c Compare January 19, 2022 08:09
@carlory
Copy link
Member Author

carlory commented Jan 19, 2022

/cc @RainbowMango It's ready for review.

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2022
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2022
@karmada-bot karmada-bot merged commit e3c8d39 into karmada-io:master Jan 20, 2022
@carlory carlory deleted the introduce-tls-flag-to-webhook branch July 13, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce --tls-min-version flag to karmada-webhook
3 participants