Repository navigation
Description
Problem
Krini's login is provider-agnostic (LOGIN_PROVIDERS), but its examples, docs and image are written for LS Login:
public/ls-login-grey-wide.jpgships in the image, andscripts/check-image.shuses it to check that the image serves optimized images (/_next/image?url=%2Fls-login-grey-wide.jpg…)..env.example: an LS Login provider (idls-login, nameLS Login, logo/ls-login-grey-wide.jpg, issuerhttps://login.aai.lifescience-ri.eu/oidc/,groupsClaimeduperson_entitlement, scopes withoutoffline_access, although the docs say to include it), and possibly a deployment-specificCLOUD_REGISTRY_URL.docs/operator-guide/configuration.md: the same provider, andCLOUD_REGISTRY_URL=https://registry.elixir-cloud.dev.docs/operator-guide/login.md: LS Login in the intro, in the field table (idls-login, the LS Login issuer,/ls-login-grey-wide.jpg,eduperson_entitlementforscopesandgroupsClaim), the "Example for LS Login", and the section "Registering Krini with LS Login" (incl. how LS Login releaseseduperson_entitlement).docs/operator-guide/deployment.md: the LS Login provider in thekrini.envexample, "e.g.eduperson_entitlementof LS Login", and links tologin.md#registering-krini-with-ls-login.docs/operator-guide/index.md(requirements: "e.g. LS Login", quick start links),docs/operator-guide/helm-chart.md(link),docs/operator-guide/upgrading.md(LS Login issuer as example value, link),docs/user-guide/index.md("log in with LS Login"),docs/index.mdandREADME.md("LS Login for the … deployment").- Comments in
deployment/values.yamlanddeployment/templates/_helpers.tplname one hosting provider's cluster as the example of clusters that rejectRuntimeDefault.
Expected
-
The image ships no identity provider's logo:
public/ls-login-grey-wide.jpgis removed, andscripts/check-image.shchecks image optimization with an asset of Krini's own (e.g. its logo). Provider logos arehttpsURLs (already supported). -
.env.exampleand all docs use one generic, clearly fictitious provider, the same everywhere, e.g.:LOGIN_PROVIDERS=[{"id":"example-login","name":"Example Login","logo":"https://login.example.org/logo.png","issuer":"https://login.example.org/oidc/","clientId":"<client ID>","clientSecret":"<client secret>","scopes":["openid","profile","email","groups","offline_access"],"groupsClaim":"groups","computeGroups":["krini-compute"],"adminGroups":["krini-admins"]}]
and
CLOUD_REGISTRY_URL=https://registry.example.org/ga4gh/registry/v1. The scopes of.env.examplematch what the docs require (openid,offline_access, and the scope that releases the groups, if the provider needs one). -
"Registering Krini with LS Login" becomes "Registering Krini with a login provider": the client settings that every provider needs (flow, PKCE,
client_secret_post, redirect and post-logout URIs, scopes, JWT access tokens), plus a short, generic note that some providers release groups only with a specific scope or claim (e.g.eduperson_entitlementin eduPerson-based federations) and thatgroupsClaimnames that claim. All links to the old anchor are updated. -
The login docs state in one place that the providers,
groupsClaim,computeGroups,adminGroupsandCOMPUTE_ACCESS_REQUEST_URLare deployment configuration without provider-specific defaults, and that provider-specific guides belong to deployment-specific documentation. -
The user guide says "log in with your deployment's login provider"; README and
docs/index.mdno longer name a specific provider for a specific deployment. -
upgrading.mdkeeps the old setting names (e.g.LS_LOGIN_URL), which are real, but uses generic example values; it gets a note for this change: deployments that used/ls-login-grey-wide.jpgaslogoset anhttpsURL instead. -
The chart comments describe the cluster behaviour generically (e.g. "some OpenShift clusters reject
RuntimeDefault"). -
The example block in
configuration.mdstill shows exactly the settings of.env.example, as its text says.
Overlaps with open PR #114 (.env.example, configuration.md): start after it merges.
Activity