Skip to content

🐛 fix(demo): enable allowPrivateSinks for hero Forgejo - #258

Merged
konih merged 1 commit into
mainfrom
fix/demo-hero-allow-private
Aug 4, 2026
Merged

konih merged 1 commit into
mainfrom
fix/demo-hero-allow-private

Conversation

@konih

@konih konih commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Hero Forgejo uses ClusterIP; default SSRF policy blocks it
  • Add hero-values.yaml with allowPrivateSinks: true

Test plan

  • Contract test + live Ready
  • CI hero-demo-smoke

In-cluster Forgejo is ClusterIP; without NET-01 opt-in the inventory
stays SinkUnreachable and demo-up / GIF recording never reach Ready.
Copilot AI lite review requested due to automatic review settings August 4, 2026 22:04
@konih
konih merged commit 25ab9df into main Aug 4, 2026
@konih
konih deleted the fix/demo-hero-allow-private branch August 4, 2026 22:04

Copilot AI 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.

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) enabling allowPrivateSinks: 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

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

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.

2 participants