mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
feat(registry): add support for custom CA certificates and TLS validation
- Introduced `--registry-ca` and `--registry-ca-validate` flags for configuring TLS verification with private registries. - Implemented in-memory token caching with expiration handling. - Updated documentation to reflect new CLI options and usage examples. - Added tests for token cache concurrency and expiry behavior.
This commit is contained in:
parent
76f9cea516
commit
e1f67fc3d0
18 changed files with 738 additions and 17 deletions
|
|
@ -385,6 +385,21 @@ Should only be used for testing.`)
|
|||
envString("WATCHTOWER_WARN_ON_HEAD_FAILURE"),
|
||||
"When to warn about HEAD pull requests failing. Possible values: always, auto or never")
|
||||
|
||||
flags.Bool(
|
||||
"insecure-registry",
|
||||
envBool("WATCHTOWER_INSECURE_REGISTRY"),
|
||||
"Disable TLS verification when contacting registries for HEAD/manifest requests (INSECURE; use only for testing)")
|
||||
|
||||
flags.String(
|
||||
"registry-ca",
|
||||
envString("WATCHTOWER_REGISTRY_CA"),
|
||||
"Path to a PEM encoded CA certificate bundle to trust for private registries")
|
||||
|
||||
flags.Bool(
|
||||
"registry-ca-validate",
|
||||
envBool("WATCHTOWER_REGISTRY_CA_VALIDATE"),
|
||||
"If set, watchtower will fail to start if the provided registry CA bundle cannot be loaded or parsed")
|
||||
|
||||
flags.Bool(
|
||||
"notification-log-stdout",
|
||||
envBool("WATCHTOWER_NOTIFICATION_LOG_STDOUT"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue