Skip to content

fix: route /shared/skills through custom domain ingress - #5088

Open
simplesagar wants to merge 1 commit into
mainfrom
skill-share-ingress-shared-path
Open

fix: route /shared/skills through custom domain ingress#5088
simplesagar wants to merge 1 commit into
mainfrom
skill-share-ingress-shared-path

Conversation

@simplesagar

@simplesagar simplesagar commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up fix for #5023: shared skill pages on custom domains returned a bare nginx 404 (e.g. https://chat.speakeasy.com/shared/skills/<token>).

Root cause: the app route existed, but the custom-domain Kubernetes Ingress (server/internal/k8s/ingress_provisioner.go) only forwards an allowlist of paths to the Gram server — /mcp, /oauth, and specific /.well-known/* entries. /shared/skills/* was never routed, so requests died at the edge before reaching the handler.

Fix: add /shared/skills (PathType Prefix, same backend service) to the main custom-domain ingress spec, mirroring /mcp.

Rollout note

Existing domains keep their old Ingress object until the next re-apply — there is no reconcile-all on deploy. After this deploys, trigger a re-apply per affected domain via the domain edit flow (saving domain settings runs CustomDomainUpdateWorkflowReconcileCustomDomainprovisioner.Apply with the new spec).

Testing

  • Added a path assertion to ingress_provisioner_test.go; go test ./server/internal/k8s/ passes.
  • mise lint:server clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SJMDX91x4yiwU5PWyv6m6p


Summary by cubic

Route /shared/skills through the custom-domain Kubernetes Ingress so public skill share pages work on custom domains instead of returning an NGINX 404.

  • Bug Fixes

    • Added /shared/skills (PathType Prefix) to the custom-domain ingress to forward to the Gram server.
    • Added a path assertion test in server/internal/k8s/ingress_provisioner_test.go.
  • Migration

    • Existing custom domains need an ingress re-apply. Save domain settings to trigger CustomDomainUpdateWorkflowReconcileCustomDomain.

Written for commit bfb78ab. Summary will update on new commits.

Review in cubic

The skill share page shipped in #5023 mounted the app route, but the
custom-domain Kubernetes Ingress only forwards an allowlist of paths
(/mcp, /oauth, specific /.well-known entries) to the Gram server, so
/shared/skills/{token} died at nginx with a bare 404. Add the path to
the ingress spec; existing domains pick it up on their next re-apply.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SJMDX91x4yiwU5PWyv6m6p
@simplesagar simplesagar added the bug Something isn't working label Aug 8, 2026
@simplesagar
simplesagar requested a review from a team as a code owner August 8, 2026 20:59
@simplesagar simplesagar added the bug Something isn't working label Aug 8, 2026
@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bfb78ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

@simplesagar
simplesagar requested a review from danielkov August 9, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants