Repository navigation
🐛 fix(demo): enable allowPrivateSinks for hero Forgejo - #258
Merged
Merged
Conversation
In-cluster Forgejo is ClusterIP; without NET-01 opt-in the inventory stays SinkUnreachable and demo-up / GIF recording never reach Ready.
There was a problem hiding this comment.
Pull request overview
Updates the hero demo harness to opt in to NET-01’s allowPrivateSinks so the in-cluster Forgejo ClusterIP endpoint is permitted under the SSRF/resolved-address policy, and adds a smoke-test guard to prevent regressions.
Changes:
- Add a dedicated Helm values overlay for the hero demo (
hero-values.yaml) enablingallowPrivateSinks: true. - Point the hero demo harness default values file to
hero-values.yaml. - Extend the hero smoke test to assert the values file contains the required opt-in and that the harness references it.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| hack/test/demo_03_hero_smoke_test.sh | Adds smoke-test assertions that the hero demo values enable allowPrivateSinks and that the hero harness references the new values file. |
| hack/demo/hero/lib.sh | Switches the default HERO_DEV_VALUES path to charts/kollect/ci/hero-values.yaml for hero installs. |
| charts/kollect/ci/hero-values.yaml | Introduces a hero-specific Helm values overlay with allowPrivateSinks: true while keeping other dev-like defaults. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+186
to
+191
| LIB="${ROOT}/hack/demo/hero/lib.sh" | ||
| [[ -f "${HERO_VALUES}" ]] || fail "missing ${HERO_VALUES}" | ||
| grep -Eq '^allowPrivateSinks:[[:space:]]*true[[:space:]]*$' "${HERO_VALUES}" || | ||
| fail "hero-values.yaml must set allowPrivateSinks: true (Forgejo ClusterIP)" | ||
| grep -Eq 'hero-values\.yaml' "${LIB}" || | ||
| fail "lib.sh HERO_DEV_VALUES must point at hero-values.yaml" |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Summary
Test plan