Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration/headlamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To add it to a platform installed without it:
session.

Grafana is the exception to step 1: it opens on its own login form, with the
local admin and **Sign in with Keycloak**. See
local admin and **Sign in with Toolkit Manager**. See
[Observability](observability.md#sign-in).

The first administrator is `platform-admin` (group `platform-admins`). Its
Expand Down
7 changes: 4 additions & 3 deletions docs/configuration/observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ kubectl -n monitoring get secret grafana-admin-credentials -o jsonpath='{.data.p

To choose it yourself, see [Admin passwords](configuration.md#admin-passwords).

### Sign in with Keycloak
### Sign in with Toolkit Manager

1. Click **Sign in with Keycloak** on the login form.
1. Click **Sign in with Toolkit Manager** on the login form (set the label with
`observability_grafana_sso_name`).
2. Sign in with a `platform` realm account. The first one is `platform-admin`;
its temporary password, which you must change at first login, is in a Secret:

Expand Down Expand Up @@ -77,7 +78,7 @@ Then open `http://localhost:3000/`.
`./toolkit_manager.sh validate observability --env <name>` checks that:

- `/login` shows the login form through the gateway, without a redirect;
- **Sign in with Keycloak** starts at the `platform` realm;
- **Sign in with Toolkit Manager** starts at the `platform` realm;
- Grafana's own pod reaches Keycloak with its client credentials. When this
fails, the button ends in "Login failed: Failed to get token from provider".
The check names the cause: rejected credentials, or no route to Keycloak
Expand Down
2 changes: 1 addition & 1 deletion docs/faq-and-troubleshooting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Cluster-side logs are in Loki, browsable from Grafana.
| The `platform-admin` password from the Secret is refused | It is the temporary one, and it was changed at first login. Reset it in the [Keycloak admin console](../configuration/configuration.md#keycloak-admin-console): realm `platform` → **Users** → `platform-admin` → **Credentials**. |
| `platform-admin` cannot sign in to the Keycloak admin console | Expected: the console uses the `master` realm `admin` account. See [Keycloak admin console](../configuration/configuration.md#keycloak-admin-console). |
| `403` at Headlamp or the LiteLLM UI after signing in | The user is in neither `platform-admins` nor `platform-viewers`. See [Who gets in](../configuration/headlamp.md#who-gets-in). |
| Grafana has no **Sign in with Keycloak** button | `observability_grafana_sso` is `false`, or Keycloak is off. Sign in as the local `admin`: [Observability](../configuration/observability.md#sign-in). |
| Grafana has no **Sign in with Toolkit Manager** button | `observability_grafana_sso` is `false`, or Keycloak is off. Sign in as the local `admin`: [Observability](../configuration/observability.md#sign-in). |
| No Headlamp at all | It is skipped on OpenShift, when `headlamp_enabled: false`, and on a BYO cluster in `apiserver` mode until the API server trusts the realm (the install prints a warning): see [Bring your own Kubernetes](../configuration/headlamp.md#bring-your-own-kubernetes-byo). |

## Models and requests
Expand Down
6 changes: 4 additions & 2 deletions roles/observability/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ observability_grafana_url: >-
{{ 'https://' ~ base_domain_name ~ observability_grafana_path if _obs_grafana_path_mode | bool
else 'https://' ~ observability_grafana_hostname }}

# Adds "Sign in with Keycloak" (platform realm) to Grafana's login form, beside
# Adds "Sign in with Toolkit Manager" (platform realm) to Grafana's login form, beside
# the local admin: keycloak_platform_admin_group members are Admin, others Viewer.
observability_grafana_sso: "{{ keycloak_enabled | default(true) | bool }}"
# Button label: Grafana shows "Sign in with <name>".
observability_grafana_sso_name: "Toolkit Manager"
observability_grafana_oidc_client_id: "grafana"
# Groups Grafana admits through Keycloak; empty admits every realm user.
observability_grafana_allowed_groups: []
Expand All @@ -58,7 +60,7 @@ _obs_grafana_oidc_internal: "{{ keycloak_client_issuer_internal | default('') }}
_obs_grafana_ini_sso:
auth.generic_oauth:
enabled: "true"
name: Keycloak
name: "{{ observability_grafana_sso_name }}"
auto_login: "false"
allow_sign_up: "true"
client_id: "{{ observability_grafana_oidc_client_id }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/observability/tasks/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
{%- endfor -%}
{{ names }}

# The login form's "Sign in with Keycloak" button starts at /login/generic_oauth.
# The login form's "Sign in with Toolkit Manager" button starts at /login/generic_oauth.
- name: "observability | Grafana signs people in through Keycloak"
ansible.builtin.include_role:
name: keycloak
Expand Down