Skip to content

fix: simplify openbanking-values.yaml and fix docs#2692

Merged
moabu merged 4 commits intomainfrom
fix-flex-ob-values
Mar 9, 2026
Merged

fix: simplify openbanking-values.yaml and fix docs#2692
moabu merged 4 commits intomainfrom
fix-flex-ob-values

Conversation

@misba7
Copy link
Contributor

@misba7 misba7 commented Mar 7, 2026

closes #2691

Summary by CodeRabbit

  • New Features

    • Added admin UI ingress controls and expanded Open Banking JWKS, signing and transport certificate/key configuration options.
  • Documentation

    • Updated install guide wording and concrete token/config endpoints to demoexample.gluu.org; renamed certificate/key section and removed microK8s instructions.
  • Chores

    • Simplified and flattened deployment values by removing extensive nested defaults, examples, and legacy blocks while keeping core deployment scaffolding.

misba7 added 2 commits March 7, 2026 22:18
Signed-off-by: Amro Misbah <amromisba7@gmail.com>
Signed-off-by: Amro Misbah <amromisba7@gmail.com>
@misba7 misba7 requested review from iromli and moabu as code owners March 7, 2026 20:22
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 7, 2026

📝 Walkthrough

Walkthrough

Removed many nested defaults from charts/gluu/openbanking-values.yaml, flattened deployment values, added global Open Banking JWKS/certificate fields and global.admin-ui ingress knobs; updated docs/openbanking/install-cn.md with concrete demo URLs, TLS mounting examples, and removed microK8s instructions.

Changes

Cohort / File(s) Summary
Chart values (Open Banking)
charts/gluu/openbanking-values.yaml
Large removal of nested defaults and example blocks (tolerations, topologySpreadConstraints, pdb, hpa, lifecycle, probes, volumes, many legacy/aux sections). Added/expanded Open Banking JWKS and certificate/key fields and new global.admin-ui ingress configuration; retained top-level fqdn, image, gateway and fido2 scaffolding.
Documentation
docs/openbanking/install-cn.md
Updated example endpoints to demoexample.gluu.org, adjusted nginx-ingress indentation/annotations, clarified certificate/key injection and TLS secret mounting examples, updated token/config PATCH examples, and removed microK8s installation instructions.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~40 minutes

Possibly related issues

  • #2691 — Fix: simplify openbanking-values.yaml and fix docs — Matches intent to simplify values file and update documentation.

Possibly related PRs

Suggested reviewers

  • iromli
  • moabu

Poem

🐇 I hop through values, prune the old heap,
Nibble defaults until the chart sleeps deep.
New certs on my paw, ingress gates shine,
Docs point true to the demoline.
A tidy burrow — ready to ship!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The linked issue #2691 lacks detailed coding requirements, making full compliance validation impossible. The PR changes align with the general title intent but cannot be comprehensively verified against specific objectives. Review the linked issue #2691 to ensure it contains explicit coding requirements and objectives that can be validated against the implemented changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main changes: simplifying openbanking-values.yaml (856 lines removed) and fixing documentation (indentation, URL updates, heading changes).
Out of Scope Changes check ✅ Passed All changes appear directly related to simplifying the values file and fixing documentation. No extraneous modifications to unrelated components were identified.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-flex-ob-values

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mo-auto mo-auto added area-documentation Documentation needs to change as part of issue or PR comp-charts-flex Touching folder /flex-cn-setup/pygluu/kubernetes/templates/helm kind-bug Issue or PR is a bug in existing functionality labels Mar 7, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/openbanking/install-cn.md (1)

84-91: ⚠️ Potential issue | 🟠 Major

Add the missing : after global.

This block is still invalid YAML, so users cannot enable authServerProtectedToken or authServerProtectedRegister by copying it from the install guide.

Corrected example
global:
  auth-server:
    ingress:
      authServerProtectedToken: true
      authServerProtectedRegister: true
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/openbanking/install-cn.md` around lines 84 - 91, The YAML sample is
invalid because the top-level key "global" is missing its trailing colon; update
the snippet so "global" becomes "global:" and ensure the nested keys
"auth-server", "ingress", and the boolean flags "authServerProtectedToken" and
"authServerProtectedRegister" remain correctly indented under it to produce
valid YAML.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@charts/gluu/openbanking-values.yaml`:
- Around line 45-47: Move the adminUiEnabled flag out of the global.admin-ui
scope and keep it with the service-specific ingress configuration: add
adminUiEnabled under the service's ingress block (the existing ingress:
adminUiEnabled key) and remove any duplicate under global.admin-ui; follow the
chart pattern where global.<service>.enabled holds only the top-level enable
boolean and all other service-specific settings (like ingress.adminUiEnabled)
live under the service block so look for the ingress section and the
global.admin-ui entry to update accordingly.
- Around line 12-16: The two flags authServerProtectedToken and
authServerProtectedRegister are currently at the top-level ingress key but the
templates (auth-server-protected-ingress.yaml and
auth-server-protected-virtual-services.yaml) read them from
global.auth-server.ingress.*, so move these two keys under
global.auth-server.ingress (i.e., add them as children of global -> auth-server
-> ingress with correct YAML indentation) and remove the old top-level ingress
entries so the templates pick up the true values.

In `@docs/openbanking/install-cn.md`:
- Around line 126-149: The config job's secret mount is using wrong key names
and incorrect YAML nesting; update the config block (volumes and volumeMounts)
to define a single secret volume (e.g., name: web-https) with secret: ->
secretName: tls-ob-ca-certificates and items: listing key: tls.crt -> path:
web_https.crt and key: tls.key -> path: web_https.key, then reference that same
volume name in two volumeMounts with mountPath and subPath set to
/etc/certs/web_https.crt (subPath: web_https.crt) and /etc/certs/web_https.key
(subPath: web_https.key) so the cert and key are actually mounted; ensure
secretName, items, mountPath and subPath are properly nested under their parent
keys.
- Around line 67-79: The example YAML nests the hosts as a sibling of tls
instead of under the tls entry, so it won't produce
nginx-ingress.ingress.tls[0].hosts; fix the indentation so the tls block
contains secretName and its hosts list (i.e., move the second hosts key to be a
child of the tls array item alongside secretName) so the resulting shape matches
nginx-ingress.ingress.tls and nginx-ingress.ingress.hosts expectations.
- Around line 242-250: The docs currently use curl -k (in the TOKEN assignment
and the PATCH request) which disables server certificate validation; update both
examples (the TOKEN curl that sets TOKEN and the PATCH curl that updates
jans-auth-server config) to stop using -k and instead either remove the flag to
use the system trust store or replace it with --cacert /path/to/ca-bundle.pem
(and mention the placeholder CA path) so the examples validate the server cert
against the provisioned CA bundle.

---

Outside diff comments:
In `@docs/openbanking/install-cn.md`:
- Around line 84-91: The YAML sample is invalid because the top-level key
"global" is missing its trailing colon; update the snippet so "global" becomes
"global:" and ensure the nested keys "auth-server", "ingress", and the boolean
flags "authServerProtectedToken" and "authServerProtectedRegister" remain
correctly indented under it to produce valid YAML.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 927fd4e6-1bb6-4c14-9c6e-34a14038dabf

📥 Commits

Reviewing files that changed from the base of the PR and between b423c0f and 39ab3f2.

📒 Files selected for processing (2)
  • charts/gluu/openbanking-values.yaml
  • docs/openbanking/install-cn.md

Signed-off-by: Amro Misbah <amromisba7@gmail.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/openbanking/install-cn.md (1)

78-83: ⚠️ Potential issue | 🟡 Minor

Fix YAML syntax error: missing colon after global.

Line 78 is missing the required colon after global, which will cause a YAML parse error if users copy this example.

📝 Proposed fix
-      global
+      global:
         auth-server:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/openbanking/install-cn.md` around lines 78 - 83, YAML snippet has a
syntax error: the mapping key "global" is missing its colon; update the snippet
so "global" is a proper map key (add the ":" after global) and ensure the nested
keys "auth-server", "ingress", "authServerProtectedToken", and
"authServerProtectedRegister" remain indented under "global" so the YAML parses
correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/openbanking/install-cn.md`:
- Line 118: Remove the trailing whitespace at the end of the line containing the
text "Inject OBIE certificates, keys and URI:" in the
docs/openbanking/install-cn.md file; edit that line to delete the extra space
character so the line ends exactly after the colon, then save the file to clear
the static analysis warning.

---

Outside diff comments:
In `@docs/openbanking/install-cn.md`:
- Around line 78-83: YAML snippet has a syntax error: the mapping key "global"
is missing its colon; update the snippet so "global" is a proper map key (add
the ":" after global) and ensure the nested keys "auth-server", "ingress",
"authServerProtectedToken", and "authServerProtectedRegister" remain indented
under "global" so the YAML parses correctly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: dd9ee075-9f14-408f-9e15-4027f64a1c6c

📥 Commits

Reviewing files that changed from the base of the PR and between 39ab3f2 and 2fffc2e.

📒 Files selected for processing (2)
  • charts/gluu/openbanking-values.yaml
  • docs/openbanking/install-cn.md

Signed-off-by: Amro Misbah <amromisba7@gmail.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (3)
docs/openbanking/install-cn.md (3)

219-219: ⚠️ Potential issue | 🟠 Major

Replace -k with proper certificate validation.

The -k flag disables server certificate validation. Use --cacert ca.crt instead to properly validate the server certificate against the provisioned CA bundle.

🔒 Proposed fix
-curl -k -X PATCH "https://demoexample.gluu.org/jans-config-api/api/v1/jans-auth-server/config" \
+curl --cacert ca.crt -X PATCH "https://demoexample.gluu.org/jans-config-api/api/v1/jans-auth-server/config" \
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/openbanking/install-cn.md` at line 219, In the curl invocation string
'curl -k -X PATCH
"https://demoexample.gluu.org/jans-config-api/api/v1/jans-auth-server/config"',
remove the insecure '-k' option and replace it with a CA bundle option such as
'--cacert ca.crt' (or '--cacert /path/to/provisioned-ca.pem') so the request
performs proper server certificate validation against the provisioned CA; ensure
'-k' is deleted and the new '--cacert' flag is added to the same curl command.

211-211: ⚠️ Potential issue | 🟠 Major

Replace -k with proper certificate validation.

The -k flag disables server certificate validation, which undermines the security of the mTLS setup. The guide already instructs users to provision a CA bundle (line 107), so use --cacert ca.crt instead to validate the server certificate.

🔒 Proposed fix
-TOKEN=$(curl -s -k -u $TESTCLIENT:$TESTCLIENTSECRET https://demoexample.gluu.org/jans-auth/restv1/token -d "grant_type=client_credentials&scope=https://jans.io/oauth/jans-auth-server/config/properties.write" --cert obtransport.pem --key obtransport.key | grep -o '"access_token":"[^"]*' | cut -d'"' -f4)
+TOKEN=$(curl -s --cacert ca.crt -u $TESTCLIENT:$TESTCLIENTSECRET https://demoexample.gluu.org/jans-auth/restv1/token -d "grant_type=client_credentials&scope=https://jans.io/oauth/jans-auth-server/config/properties.write" --cert obtransport.pem --key obtransport.key | grep -o '"access_token":"[^"]*' | cut -d'"' -f4)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/openbanking/install-cn.md` at line 211, The curl invocation that sets
TOKEN currently uses the insecure -k option; remove -k and use the CA bundle
provisioned earlier by adding --cacert ca.crt to the curl command (keep the
existing --cert obtransport.pem and --key obtransport.key and the same
URL/parameters) so the server certificate is properly validated instead of being
skipped.

120-120: ⚠️ Potential issue | 🟡 Minor

Remove trailing whitespace.

Static analysis flagged a trailing space at the end of this line.

📝 Proposed fix
-1.  Inject OBIE certificates, keys and URI: 
+1.  Inject OBIE certificates, keys and URI:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/openbanking/install-cn.md` at line 120, Remove the trailing whitespace
at the end of the line containing "Inject OBIE certificates, keys and URI:" so
the line ends immediately after the colon; update the Markdown to remove that
extra space and re-save (or run your editor/formatter to trim trailing
whitespace) and optionally scan the rest of docs/openbanking/install-cn.md for
any other trailing spaces.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/openbanking/install-cn.md`:
- Line 219: In the curl invocation string 'curl -k -X PATCH
"https://demoexample.gluu.org/jans-config-api/api/v1/jans-auth-server/config"',
remove the insecure '-k' option and replace it with a CA bundle option such as
'--cacert ca.crt' (or '--cacert /path/to/provisioned-ca.pem') so the request
performs proper server certificate validation against the provisioned CA; ensure
'-k' is deleted and the new '--cacert' flag is added to the same curl command.
- Line 211: The curl invocation that sets TOKEN currently uses the insecure -k
option; remove -k and use the CA bundle provisioned earlier by adding --cacert
ca.crt to the curl command (keep the existing --cert obtransport.pem and --key
obtransport.key and the same URL/parameters) so the server certificate is
properly validated instead of being skipped.
- Line 120: Remove the trailing whitespace at the end of the line containing
"Inject OBIE certificates, keys and URI:" so the line ends immediately after the
colon; update the Markdown to remove that extra space and re-save (or run your
editor/formatter to trim trailing whitespace) and optionally scan the rest of
docs/openbanking/install-cn.md for any other trailing spaces.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e6496f59-cd18-40f3-8adb-b6ef02f7237c

📥 Commits

Reviewing files that changed from the base of the PR and between 2fffc2e and 28bd3eb.

📒 Files selected for processing (1)
  • docs/openbanking/install-cn.md

@moabu moabu merged commit 959fb63 into main Mar 9, 2026
8 checks passed
@moabu moabu deleted the fix-flex-ob-values branch March 9, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-documentation Documentation needs to change as part of issue or PR comp-charts-flex Touching folder /flex-cn-setup/pygluu/kubernetes/templates/helm kind-bug Issue or PR is a bug in existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: simplify openbanking-values.yaml and fix docs

3 participants