Repository navigation
fix(chart): rename plugins.existingSecret - #650
Conversation
Read the secret of the plugin store from pluginStore.existingSecret. Gateway app charts use top-level plugins for their own settings and render them into the config overlay, where FOCA refuses unknown keys. Renaming is cheap only while foca-common 0.4.0 is unpublished. The environment variable and FOCA's setting stay. Add a checklist for app charts going from foca-common 0.2.0 to 0.4.0 to the migration guide, and a caveat on configured access control rules during a rollout to the Helm docs. Closes #644 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
State the values of app charts once, name the chart versions in the checklist, and say that a late start can also drop a new rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
Reviewer's GuideThe PR separates plugin-store Secret configuration from application-owned top-level File-Level Changes
Possibly linked issues
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 #650 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 7142 7142
=========================================
Hits 7142 7142
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#644 fix(chart): rename plugins.existingSecret · 3 of 3 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Rename the value to pluginStore.existingSecret in templates, schema, petstore example, tests, migration guide and Helm docs; keep the environment variable and app setting unchanged. |
✅ Met | The templates and schemas use pluginStore.existingSecret, the example, tests and docs are updated, and FOCA_PLUGINS_STORE_KEY_SECRET plus plugins.defaults.store.key_secret remain unchanged. |
| 2 | Add a checklist for app charts going from foca-common 0.2.0 to 0.4.0 covering replicas and budget, probes, and plugin store. | ✅ Met | The migration guide checklist covers the foca-common dependency and schema, replicas and disruption budget, probes, and the plugin-store value. |
| 3 | Add a caveat on configured access control rules during a rollout to “Several replicas”. | ✅ Met | The “Several replicas” section explains how a late-starting worker from an old pod can restore a revoked rule or drop a newly added one, and advises restarting pods after old ones are gone. |
Sourcery assessment
Needs a human reviewer. If a deployment still supplies plugins.existingSecret, the chart will no longer pass that secret to the app or worker, so plugin-store hashes may change and existing entries can become unreachable. Setting the secret under pluginStore.existingSecret restores the prior key, but any records written while it was missing may remain under different keys.
Summary
Renames the chart value
plugins.existingSecrettopluginStore.existingSecretwhile foca-common 0.4.0 is unpublished. Gateway app charts use top-levelpluginsfor their own settings and render them into the config overlay, so the old name needed a special case in each of them. The environment variableFOCA_PLUGINS_STORE_KEY_SECRETand FOCA's setting stay.Also, in the pages this touches:
Closes #644
How it was verified
pytest charts/foca-common/testswith Helm 3.22.1: 275 passed, including a new test that top-levelpluginsvalues are ignored.helm lint --strictfor both charts and all petstore CI values: passed.ruff check,ruff format --check,mkdocs build --strict: passed.adversarial-reviewerandquality-reviewer, one round.Declined review findings
foca/gunicorn_config.pydoesn't preload, so it does.The quality reviewer's other medium (versions in the checklist) was docs wording, fixed in a docs-only commit, so no second round.
🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
Summary by Sourcery
Rename the common chart’s plugin-store secret value to
pluginStore.existingSecretand update chart validation, tests, examples, and migration documentation accordingly.Bug Fixes:
pluginsvalues as the plugin-store secret configuration.Enhancements:
plugins.existingSecrettopluginStore.existingSecretwhile preserving the existing environment variable and FOCA setting.Documentation:
pluginStore.existingSecretand explain the migration and rollout caveats.Tests:
pluginsvalues are ignored and validate the renamedpluginStorevalues.