Skip to content

feat: remove LS Login values from examples - #141

Merged
AnonymousXC merged 2 commits into
devfrom
fix/remove-ls-login-values
Nov 26, 2026
Merged

AnonymousXC merged 2 commits into
devfrom
fix/remove-ls-login-values

Conversation

@AnonymousXC

@AnonymousXC AnonymousXC commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

closes #115

Summary by Sourcery

Remove LS Login-specific values and branding from examples so deployments can configure their own OpenID Connect provider.

Enhancements:

  • Replace LS Login-specific examples, references, and branding with provider-neutral configuration and documentation.
  • Use a generic Krini logo in place of the LS Login image and update image checks accordingly.

Documentation:

  • Update operator and user documentation to describe configuring and registering Krini with any OpenID Connect provider.

Chores:

  • Remove the bundled LS Login logo and provider-specific deployment values from examples.

@AnonymousXC
AnonymousXC requested a review from uniqueg as a code owner November 26, 2026 06:50
@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Replace the bundled LS Login logo with Krini’s logo and update the container-image check to validate the new asset.

  • scripts/check-image.sh L9-11, L60
  • public/logo.png
  • public/ls-login-grey-wide.jpg

Clarify OpenShift security-context comments by removing the deployment-specific CSC Rahti reference.

  • deployment/templates/_helpers.tpl L181-182
  • deployment/values.yaml L161

Documentation

Replace LS Login-specific configuration examples and guidance with provider-neutral OIDC settings and generic group-claim examples.

  • docs/operator-guide/configuration.md L55-65, L70-82
  • docs/operator-guide/deployment.md L86, L150-151, L260-262
  • docs/operator-guide/helm-chart.md L27-28
  • docs/operator-guide/index.md L16-74 (4 small edits)
  • docs/operator-guide/login.md L4-9, L49-56, L71-79 (+3 small edits)
  • docs/operator-guide/upgrading.md L55, L63-65, L88-93

Remove LS Login branding and references from the introductory and user-facing guides.

  • README.md L22
  • docs/index.md L5
  • docs/user-guide/index.md L18

Update the citation metadata for the release.

  • CITATION.cff L10-11

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e6f47c5) to head (9fbedd5).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@read-the-docs-community

read-the-docs-community Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 4f1653a

#115 feat!: remove LS Login values from examples · 7 of 8 met

# Requirement Status Notes
1 Remove the bundled LS Login logo and check image optimization with Krini's own asset. ✅ Met The LS Login image is removed, public/logo.png is added, and scripts/check-image.sh uses /logo.png.
2 Use a generic provider and registry example instead of deployment-specific LS Login and Cloud Registry values. ✅ Met The examples use Example Login and registry.example.org; the provider scopes include openid, offline_access, and groups.
3 Make the configuration.md example show exactly the settings of .env.example. 🟡 Partly met The example uses the same generic provider and registry, but its provider issuer, client placeholders, and group values differ from .env.example.
4 Generalize the provider registration section, including its client settings, group-claim guidance, and links. ✅ Met The registration guidance covers the required client settings and explains provider-specific group scopes and groupsClaim.
5 State that provider and access settings have no provider-specific defaults, and provider-specific guides belong in deployment documentation. ✅ Met This is stated in docs/operator-guide/login.md.
6 Use deployment-neutral login wording in the user guide, README, and landing-page documentation. ✅ Met The user guide refers to the deployment's login provider, and the README and docs/index.md no longer name a provider for a specific deployment.
7 Keep legacy setting names in the upgrade guide, use generic example values, and explain replacing the old logo path with an HTTPS URL. ✅ Met The guide retains LS_LOGIN_URL, uses a generic issuer example, and adds the logo migration note.
8 Describe the RuntimeDefault behavior generically in the chart comments. ✅ Met The comments refer to some OpenShift clusters rather than naming a hosting provider's cluster.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/operator-guide/upgrading.md Resolved
Comment thread docs/operator-guide/configuration.md Resolved
@AnonymousXC
AnonymousXC merged commit ac6d223 into dev Nov 26, 2026
42 checks passed
@AnonymousXC
AnonymousXC deleted the fix/remove-ls-login-values branch November 26, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat!: remove LS Login values from examples

1 participant