Skip to content

Commit dd9be53

Browse files
bipuladhmergify[bot]
authored andcommitted
Enables auth by default for sidecar and manager communication
Signed-off-by: Bipul Adhikari <badhikar@redhat.com>
1 parent 4526e5a commit dd9be53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/manager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func main() {
100100
flag.BoolVar(&secureMetrics, "metrics-secure", true, "If set, the metrics endpoint is served securely via HTTPS. Use --metrics-secure=false to use HTTP instead.")
101101
flag.BoolVar(&showVersion, "version", false, "Print Version details")
102102
flag.StringVar(&cfg.SchedulePrecedence, "schedule-precedence", "", "The order of precedence in which schedule of reclaimspace and keyrotation is considered. Possible values are sc-only")
103-
flag.BoolVar(&enableAuth, "enable-auth", false, "Enables TLS and adds bearer token to the headers (disabled by default)")
103+
flag.BoolVar(&enableAuth, "enable-auth", true, "Enables TLS and adds bearer token to the headers (enabled by default)")
104104
opts := zap.Options{
105105
Development: true,
106106
TimeEncoder: zapcore.ISO8601TimeEncoder,

sidecar/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func main() {
5656
leaderElectionLeaseDuration = flag.Duration("leader-election-lease-duration", 15*time.Second, "Duration, in seconds, that non-leader candidates will wait to force acquire leadership. Defaults to 15 seconds.")
5757
leaderElectionRenewDeadline = flag.Duration("leader-election-renew-deadline", 10*time.Second, "Duration, in seconds, that the acting leader will retry refreshing leadership before giving up. Defaults to 10 seconds.")
5858
leaderElectionRetryPeriod = flag.Duration("leader-election-retry-period", 5*time.Second, "Duration, in seconds, the LeaderElector clients should wait between tries of actions. Defaults to 5 seconds.")
59-
enableAuthChecks = flag.Bool("enable-auth", false, "Enable Authorization checks and TLS communication (disabled by default)")
59+
enableAuthChecks = flag.Bool("enable-auth", true, "Enable Authorization checks and TLS communication (enabled by default)")
6060
)
6161
klog.InitFlags(nil)
6262

0 commit comments

Comments
 (0)