GeezerVison is showing github.com — Require configured platform email name on new installs by Storypapst · Pull Request #391 · OpenResilienceInitiative/ORISO-Helm
Conversation
Storypapst
commented
Sep 29, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What happened
The generic Helm chart currently gives a fresh installation the literal platform name “ORISO” for email. A customer using this chart could send a platform mail under the wrong name without ever choosing one. This PR requires the installer to supply that name and stops chart rendering with a clear message when it is missing or blank.
What we need to do
The base chart now leaves userService.emailBrandingName empty. Dev and Pre-Dev explicitly keep their existing ORISO identity in their own overlays. The generic Prod overlay deliberately supplies no name: its operator must set the real platform name in installation values. The production example shows the exact setting. The UserService ConfigMap trims the value and fails the Helm render when none remains; the Deployment already imports that ConfigMap key. CI lint uses a render-only name instead of relying on a product default.
This is the Helm companion to OpenResilienceInitiative/ORISO-UserService#1316. Refs OpenResilienceInitiative/ORISO-Frontend#869 and OpenResilienceInitiative/ORISO-UserService#1252. Both PRs need human review before a Dev deployment can prove received-mail branding.
How to test it quickly
- Render the base chart with otherwise valid install values but no
userService.emailBrandingName, then with whitespace only. Expect a Helm error naming that exact setting; no chart is installed.
- Supply a different platform name and render again. Expect that name in UserService
EMAIL_BRANDING_NAME, with no ORISO fallback.
- Render the committed Dev and Pre-Dev overlays. Expect their explicitly configured ORISO name. Render Prod without an operator name and expect failure; add one and expect success.
- After UserService #1316 and this PR merge and deploy to Dev, inspect an actually received platform mail and verify subject, HTML and text use the configured name. Repeat with a tenant name to confirm tenant branding still takes precedence.
- Render Dev with the pending-language exception enabled, then explicitly disable it. Expect the service flag and Pod rollout annotation to change together; the existing Dev platform name remains configured.
What else I found
The previous PR CI lint rendered bare base values; that would correctly fail after this change. Its lint invocation now supplies a test-only name. The separate release validation workflow also rendered bare base values and had a pre-existing Matrix placeholder failure. Commit aaafb89 uses the existing render-only Matrix fixture and an explicit test-only email name for release lint and template commands; its negative case still clears the public domain and reports global.domainName. This changes validation only, not deployment values. Locally, the new branding render test was red before the change and green afterward. All 35 render scripts, 56 Python unit tests, Helm lint for base and Dev/Pre-Dev/Prod overlays, chart packaging, both shell guardrails and git diff --check passed. The exact release lint/render and no-domain negative commands also passed locally. Before the integration below, CI passed for head aaafb89: workflow run 36629650055 linted, packaged, ran unit tests, render contracts and shell guardrails. CodeRabbit did not review that head because its rate limit was reached. Human review, merge, deployment and received-mail proof are separate.
Current integration state
This feature branch now includes the exact history from Helm #390. The two shared-file conflicts are resolved. A fresh installation still has to choose its own email name. Dev can send the seven available language variants before their later human language review; other environments retain the default restriction. Turning that Dev exception off changes the Pod template so restarted service instances receive the restriction.
Local verification of the combined branch passed: both focused mail render contracts, all 36 chart render scripts, 56 Python unit tests, Helm lint, chart packaging, both shell guardrails and source/staged whitespace checks. Current-head CI is green: the render, unit and guardrail workflow passed at the exact head below. This proves the current feature-branch checks, not deployment or received mail. This is a merge between feature branches, not a merge into dev. Human review, Dev deployment and received-mail verification remain open. The original #390 review history is preserved, and that PR's body and branch have not been changed.
For developers — combined feature history and scope:
Head: 97be522f6fa73b9b4ab2792dcc118b38551d49f0
Parents: aaafb89eacebbd5682c8a9f36a4ce6b491f2b8b3, e6057e63a11b2e0e38faf70d52d10d7f42fb5c51
Base target: dev (unchanged)
Conflict resolutions: templates/userservice/userservice-configmap-env.yaml, values-dev.yaml
Both retained: required EMAIL_BRANDING_NAME and EMAIL_ALLOW_UNREVIEWED_LOCALES
Locale value: userService.emailAllowUnreviewedLocales
Base / Pre-Dev / Prod: false; Dev: true
Pod template annotation: oriso.org/email-allow-unreviewed-locales, derived from the same flag
Added regression: explicit Dev opt-out changes ConfigMap and rollout annotation to false while retaining ORISO in the existing Dev overlay
Scope: no SMTP provider, credential, setting or deployment changes
For developers — exact chart contract and local evidence:
Base: dev
Head: 97be522
Value: userService.emailBrandingName
Environment: EMAIL_BRANDING_NAME
Generic base and Prod overlay: empty, required at render/install
Existing Dev and Pre-Dev overlays: ORISO explicitly
Production example: --set-string userService.emailBrandingName='<your platform name>'
Commands: python3 tests/render_required_email_branding_test.py
Commands: for test_file in tests/render_*_test.py; do python3 "$test_file"; done
Commands: helm package . --destination /tmp/oriso-helm-branding-package
Environment/image: local Helm render and package only; no deployment or image proof
Summary by CodeRabbit
- New Features
- Development deployments can send emails to unreviewed locales. This setting defaults to off elsewhere and can be disabled in development.
- Configuration
- Fresh and production installations must set an email branding name; rendering fails if it is missing or blank.
- Pre-Dev and development deployments use “ORISO” as the email branding name.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Sep 29, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
Configuration used: Repository: OpenResilienceInitiative/ORISO-Helm/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Team
Run ID: 5cc62d13-7609-48c4-a70a-6dce3c79ae66
📥 Commits
Reviewing files that changed from the base of the PR and between 97be522 and 71de643.
📒 Files selected for processing (3)
templates/userservice/userservice-configmap-env.yaml
templates/userservice/userservice-deployment.yaml
tests/render_pending_mail_locale_optin_test.py
___________________________________________
< Sending Skynet back to the drawing board. >
-------------------------------------------
\
\ (\__/)
(•ㅅ•)
/ づ
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: OpenResilienceInitiative/ORISO-Helm/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Team
Run ID: 0fe506a5-2030-4da5-8ba8-78defb856a92
📥 Commits
Reviewing files that changed from the base of the PR and between 9678bf6 and 97be522.
📒 Files selected for processing (13)
.github/workflows/release-helm-chart.yml
.github/workflows/validate-helm-chart.yml
templates/userservice/userservice-configmap-env.yaml
templates/userservice/userservice-deployment.yaml
tests/fixtures/values-render-domain.yaml
tests/render_adr005_test.py
tests/render_pending_mail_locale_optin_test.py
tests/render_required_email_branding_test.py
tests/render_required_public_urls_test.py
values-dev.yaml
values-pre-dev.yaml
values-prod.yaml
values.yaml.default
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
📜 Recent review details
🧰 Additional context used
📓 Path-based instructions (2)
Values must be environment-driven — never hardcode a host, IP or credential in a template.
⚙️ CodeRabbit configuration file
Files:
templates/userservice/userservice-deployment.yaml
templates/userservice/userservice-configmap-env.yaml
For Helm chart template or `values.yaml` changes, validation passes only when the PR demonstrates that the chart still lints, renders, and packages, or that the equivalent CI job succeeds.
📄 CodeRabbit inference engine (Custom checks)
Files:
templates/userservice/userservice-deployment.yaml
templates/userservice/userservice-configmap-env.yaml
🪛 ast-grep (0.45.3)
tests/render_required_public_urls_test.py
[error] 104-123: Command coming from incoming request
Context: subprocess.run(
[
"helm",
"template",
"required-public-urls",
CHART_DIR,
"-f",
os.path.join(CHART_DIR, "values.yaml.default"),
"-f",
os.path.join(CHART_DIR, "secrets.yaml.default"),
"-f",
os.path.join(CHART_DIR, "tests", "fixtures", "render-required-secrets.yaml"),
*SMTP_CREDENTIALS,
*MATRIX_IDENTITY,
"--set-string", "userService.emailBrandingName=Render Test Platform",
*args,
],
capture_output=True,
text=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
tests/render_pending_mail_locale_optin_test.py
[error] 32-32: Use of unsanitized data to create processes
Context: subprocess.run(args, capture_output=True, text=True, check=False)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(os-system-unsanitized-data)
[error] 32-32: Command coming from incoming request
Context: subprocess.run(args, capture_output=True, text=True, check=False)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
[error] 46-46: Avoid HTML built in strings
Context: render(overlay)
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 61-61: Avoid HTML built in strings
Context: render("dev")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 62-62: Avoid HTML built in strings
Context: render("dev", opt_in=False)
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
tests/render_required_email_branding_test.py
[error] 30-30: Use of unsanitized data to create processes
Context: subprocess.run(args, capture_output=True, text=True, check=False)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(os-system-unsanitized-data)
[error] 30-30: Command coming from incoming request
Context: subprocess.run(args, capture_output=True, text=True, check=False)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
[error] 57-57: Avoid HTML built in strings
Context: render(overlay, brand)
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 61-61: Avoid HTML built in strings
Context: render(brand="Community Care")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 62-62: Avoid HTML built in strings
Context: render("prod", "Independent Platform")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 63-63: Avoid HTML built in strings
Context: render("dev")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
[error] 64-64: Avoid HTML built in strings
Context: render("pre-dev")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(html-string-from-parameters)
🪛 Ruff (0.16.6)
tests/render_required_public_urls_test.py
[error] 106-121: Starting a process with a partial executable path
(S607)
tests/render_pending_mail_locale_optin_test.py
[warning] 16-16: Boolean-typed positional argument in function definition
(FBT001)
[error] 33-33: subprocess call: check for execution of untrusted input
(S603)
tests/render_required_email_branding_test.py
[error] 31-31: subprocess call: check for execution of untrusted input
(S603)
🔇 Additional comments (12)
values.yaml.default (1)
342-344: LGTM!
Also applies to: 421-424
values-dev.yaml (1)
49-53: LGTM!
values-pre-dev.yaml (1)
22-23: LGTM!
values-prod.yaml (1)
7-7: LGTM!
Also applies to: 43-44
templates/userservice/userservice-configmap-env.yaml (1)
20-20: LGTM!
templates/userservice/userservice-deployment.yaml (1)
18-21: LGTM!
Also applies to: 167-171
tests/fixtures/values-render-domain.yaml (1)
17-19: LGTM!
.github/workflows/release-helm-chart.yml (1)
89-115: LGTM!
.github/workflows/validate-helm-chart.yml (1)
51-51: LGTM!
tests/render_adr005_test.py (1)
138-138: LGTM!
tests/render_required_public_urls_test.py (1)
119-119: LGTM!
tests/render_pending_mail_locale_optin_test.py (1)
1-79: LGTM!
📝 Walkthrough
Walkthrough
The chart now requires a non-empty email branding name for fresh and production renders. It also exposes an unreviewed-locale setting, defaults it off, and enables it in Dev. Render tests cover both settings and their Deployment wiring.
Changes
UserService chart settings
| Layer / File(s) |
Summary |
Values and UserService rendering values.yaml.default, values-dev.yaml, values-pre-dev.yaml, values-prod.yaml, templates/userservice/userservice-configmap-env.yaml, templates/userservice/userservice-deployment.yaml |
The default branding name is empty, and the ConfigMap template rejects empty or whitespace-only values. Dev and Pre-Dev set branding to ORISO; production instructions tell operators to set a name. The locale setting defaults to false and is true in Dev. The Deployment exposes it through a ConfigMap-backed environment variable and a Pod-template annotation. |
Email branding render checks tests/fixtures/values-render-domain.yaml, tests/render_required_email_branding_test.py, tests/render_adr005_test.py, tests/render_required_public_urls_test.py, .github/workflows/release-helm-chart.yml, .github/workflows/validate-helm-chart.yml |
Render tests check required and environment-specific branding values. Render fixtures, existing tests, and Helm workflow commands supply a branding name. |
Unreviewed-locale render checks tests/render_pending_mail_locale_optin_test.py |
Render tests check the default and environment-specific locale values, ConfigMap and Deployment wiring, and explicit opt-out in Dev. |
Priority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Merge Risk: ⚪ Minimal · up to 97be5
The chart requires explicit email branding while preserving Dev and Pre-Dev identities and wiring locale opt-in changes to Pod rollouts. No actionable merge-blocking issue remains; proceed with normal Helm validation checks.
🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
| Check name |
Status |
Explanation |
| Docstring Coverage |
✅ Passed |
Docstring coverage is 87.50% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 4 files. (9 skipped: 9 u… |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Validation Evidence |
✅ Passed |
The PR includes CI validation for the Helm chart. The pull-request workflow runs helm lint, executes every tests/render_*_test.py render contract, and runs helm package. The release workflow als… |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly describes the main change: requiring a configured platform email name for new installations. It is concise and directly related to the Helm chart changes, although it does not explic… |
✨ Finishing Touches
📝 Generate docstrings
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
- Commit to this branch
- Create a new PR
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 29, 2026
This was referenced Sep 29, 2026
Installations whose own values file lacks
userService.emailAllowUnreviewedLocales rendered an empty ConfigMap value
and Pod annotation instead of "false". Default the flag in both places and
add a render regression for the missing key.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 30, 2026
Reviewers
shazia-k
Awaiting requested review from shazia-k
Shirloin
Awaiting requested review from Shirloin
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|