Skip to content

Commit

Permalink
be able to configure /api endpoint to require credentials (#865)
Browse files Browse the repository at this point in the history
When auth.strategy is not anonymous, users can still see the /api endpoint version and config information.
This new config allows users to disable that unauthenticated access, requiring users to authenticate with the server in order to see the /api info.
  • Loading branch information
jmazzitelli authored Jan 20, 2025
1 parent abf99b7 commit 8a8f6a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions crd-docs/cr/kiali.io_v1alpha1_kiali.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ spec:
port: 20001
profiler:
enabled: false
require_auth: false
web_fqdn: ""
web_history_mode: ""
web_port: ""
Expand Down
3 changes: 3 additions & 0 deletions crd-docs/crd/kiali.io_kialis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,9 @@ spec:
enabled:
description: "When 'true', the profiler will be enabled and accessible at /debug/pprof/ on the Kiali endpoint."
type: boolean
require_auth:
description: "When true, the /api endpoint will require users to authenticate themselves. When false, users need not authenticate with Kiali in order to get basic runtime info about the server via the /api endpoint. This setting is ignored if auth.strategy is 'anonymous'."
type: boolean
web_fqdn:
description: "Defines the public domain where Kiali is being served. This is the 'domain' part of the URL (usually it's a fully-qualified domain name). For example, `kiali.example.org`. When empty, Kiali will try to guess this value from HTTP headers. On non-OpenShift clusters, you must populate this value if you want to enable cross-linking between Kiali instances in a multi-cluster setup."
type: string
Expand Down
1 change: 1 addition & 0 deletions roles/default/kiali-deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ kiali_defaults:
port: 20001
profiler:
enabled: false
require_auth: false
web_fqdn: ""
web_history_mode: ""
web_port: ""
Expand Down
1 change: 1 addition & 0 deletions roles/v2.4/kiali-deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ kiali_defaults:
port: 20001
profiler:
enabled: false
require_auth: false
web_fqdn: ""
web_history_mode: ""
web_port: ""
Expand Down

0 comments on commit 8a8f6a1

Please sign in to comment.