Skip to content

ci: pass the inbox hub settings to the backend-pn Playwright app - #16

Merged
renemadsen merged 1 commit into
masterfrom
ci/15-inbox-hub-env
Oct 6, 2026
Merged

renemadsen merged 1 commit into
masterfrom
ci/15-inbox-hub-env

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Closes #15

Run 37216811181 (v10.0.285): backend-pn-playwright-test (i) failed on every attempt with Signed hub call catalog (GET /api/backend-configuration-pn/inbox/hub/catalog) failed: HTTP 401 in inbox.spec.ts's beforeAll.

The inbox spec (microting/eform-backendconfiguration-plugin#1407) signs its hub calls with the CI-only key CI_INBOX_SIGNING_KEY and starts a stub hub on port 4399 on the runner. The plugin's own workflows start the app with the matching settings; this job did not, so the app had no signing key and refused every call, as designed.

This adds the same three flags as the plugin's dotnet-core-pr.yml, only to backend-pn-playwright-test's app start:
--add-host=host.docker.internal:host-gateway -e InboundMailHub__TenantSigningKey=… -e InboundMailHub__HubUrl=http://host.docker.internal:4399

The key is CI-only and must be known to the spec, so it is not a secret. Other shards see "hub unavailable" in Indbakke settings, as in the plugin's CI. No product change; users are unaffected.

Verification: YAML parses; only that job's docker run changed; values match the plugin workflow and the spec byte for byte. This workflow runs only on tags, so the next tag is the real test.

🤖 Generated with Claude Code

The new backend-configuration inbox spec signs its hub calls with a
CI-only key and serves a stub hub on the runner. Start the app with the
same signing key, hub URL and host-gateway mapping as the plugin's own
workflows; without a key every signed hub call is refused (401).

closes #15

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 08:20

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.

Copilot review overview

🟢 Approval recommended

The focused workflow change matches the plugin’s CI configuration and test constants.

Review effort: Balanced
Findings: None

What changed in this PR

Configures the backend Playwright container so inbox hub tests can authenticate and reach the runner-hosted stub.

Changes:

  • Adds the host gateway, CI signing key, and stub hub URL to the backend Playwright app container.
File Description
.github/​workflows/​dotnet-core-docker.yml Supplies inbox hub settings to the backend Playwright container.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@renemadsen
renemadsen merged commit a4b98cc into master Oct 6, 2026
2 checks passed
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.

backend-pn-playwright-test (i): inbox hub calls fail with HTTP 401

2 participants