Repository navigation
feat: remove LS Login values from examples - #141
Conversation
Reviewer's GuideConfigurationReplace the bundled LS Login logo with Krini’s logo and update the container-image check to validate the new asset.
Clarify OpenShift security-context comments by removing the deployment-specific CSC Rahti reference.
DocumentationReplace LS Login-specific configuration examples and guidance with provider-neutral OIDC settings and generic group-claim examples.
Remove LS Login branding and references from the introductory and user-facing guides.
Update the citation metadata for the release.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #141 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 28 28
Lines 856 856
Branches 233 233
=========================================
Hits 856 856 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 4f1653a #115 feat!: remove LS Login values from examples · 7 of 8 met
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/operator-guide/upgrading.md" line_range="55" />
<code_context>
| Before | 0.1.0 |
| --- | --- |
-| `LS_LOGIN_URL` | `issuer` of the provider: `LS_LOGIN_URL` followed by `/oidc/`, e.g. `https://login.aai.lifescience-ri.eu/oidc/` |
+| `LS_LOGIN_URL` | `issuer` of the provider: `LS_LOGIN_URL` followed by `/oidc/`, e.g. `https://login.example.org/oidc/` |
| `OIDC_CLIENT_ID` | `clientId` of the provider |
| `OIDC_CLIENT_SECRET` | `clientSecret` of the provider |
</code_context>
<issue_to_address>
**Migration uses a fake issuer**
When an operator migrating an old deployment copies the example issuer instead of substituting their existing `LS_LOGIN_URL`, operators copying this example for the legacy LS Login setting configure `login.example.org` as the issuer, so OIDC discovery fails and login does not work.
Use an explicit placeholder such as `https://<your-login-provider>/oidc/` and state that it must be derived from the deployment's existing `LS_LOGIN_URL`.
</issue_to_address>
### Comment 2
<location path="docs/operator-guide/configuration.md" line_range="58" />
<code_context>
# (endpoints are discovered via <issuer>/.well-known/openid-configuration)
# One line only: env files can't carry a multiline value
-LOGIN_PROVIDERS=[{"id":"ls-login","name":"LS Login","logo":"/ls-login-grey-wide.jpg","issuer":"issuer-url","clientId":"your-client-id","clientSecret":"your-client-secret","scopes":["openid","profile","email","eduperson_entitlement","offline_access"],"groupsClaim":"eduperson_entitlement","computeGroups":["your-compute-group"],"adminGroups":["your-admin-group"]}]
+LOGIN_PROVIDERS=[{"id":"example-login","name":"Example Login","logo":"https://login.example.org/logo.png","issuer":"issuer-url","clientId":"your-client-id","clientSecret":"your-client-secret","scopes":["openid","profile","email","groups","offline_access"],"groupsClaim":"groups","computeGroups":["your-compute-group"],"adminGroups":["your-admin-group"]}]
# Optional override of the callback URL (default: <APP_ORIGIN>/auth/api/callback)
</code_context>
<issue_to_address>
**Configuration example diverges**
`configuration.md` says its block has all settings of `.env.example`, but its `LOGIN_PROVIDERS` value uses different issuer, client, and group values. Make the block match `.env.example` exactly.
</issue_to_address>Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: docs/operator-guide/upgrading.md:55, docs/operator-guide/configuration.md:58
closes #115
Summary by Sourcery
Remove LS Login-specific values and branding from examples so deployments can configure their own OpenID Connect provider.
Enhancements:
Documentation:
Chores: