Repository navigation
feat(gateway): serve devantler.tech, www and portal for business-site #6188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
973852b
feat(business-site): reconcile the public staging app behind its hold
devantler 6a7a6d0
test(policies): count the new business-site admission fixtures
devantler 6a193eb
feat(gateway): serve devantler.tech, www and portal for business-site
devantler e9034d8
chore(security): regenerate the approved publish-workflow revisions
botantler-1[bot] 11c93c1
Merge the publisher regeneration (#6197) so the business-site upgrade…
devantler 0ccd870
feat(business-site): move the tenant to its signed v3.2.1 release
devantler 44a659d
Merge remote-tracking branch 'origin/main' into claude/portal-hosts-6177
devantler bfdd67a
fix(business-site): move the tenant to v3.2.2, signed by a publisher …
devantler 2341366
fix(business-site): list the approval being moved from first
devantler 49b46de
Merge remote-tracking branch 'origin/main' into claude/portal-hosts-6177
devantler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Platform-applied DNS-01 issuance for the names the business-site package | ||
| # routes: the public site (devantler.tech, www) and the portal. The shared | ||
| # Cloudflare ClusterIssuer already issues the zone's other names (see | ||
| # world-at-ruin/certificate.yaml); the Gateway listeners in | ||
| # infrastructure/patches/add-devantler-tech-listeners.yaml read this Secret | ||
| # through reference-grant.yaml. Issuance needs no listener and no DNS record, | ||
| # so it can complete before the apex and www leave GitHub Pages | ||
| # (devantler-tech/monorepo#3939). | ||
| apiVersion: cert-manager.io/v1 | ||
| kind: Certificate | ||
| metadata: | ||
| name: devantler-tech | ||
| namespace: business-site | ||
| spec: | ||
| secretName: devantler-tech-tls | ||
| dnsNames: | ||
| - devantler.tech | ||
| - www.devantler.tech | ||
| - portal.devantler.tech | ||
| issuerRef: | ||
| group: cert-manager.io | ||
| kind: ClusterIssuer | ||
| name: letsencrypt-prod | ||
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
18 changes: 18 additions & 0 deletions
18
k8s/providers/hetzner/apps/business-site/reference-grant.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Lets the shared platform Gateway (kube-system) terminate TLS for the | ||
| # devantler.tech listeners with the platform-issued certificate.yaml Secret. | ||
| # Gateway API refuses a cross-namespace certificateRef without this grant | ||
| # (ResolvedRefs=False / RefNotPermitted). It names that one Secret only. | ||
| apiVersion: gateway.networking.k8s.io/v1beta1 | ||
| kind: ReferenceGrant | ||
| metadata: | ||
| name: platform-gateway-devantler-tech-tls | ||
| namespace: business-site | ||
| spec: | ||
| from: | ||
| - group: gateway.networking.k8s.io | ||
| kind: Gateway | ||
| namespace: kube-system | ||
| to: | ||
| - group: "" | ||
| kind: Secret | ||
| name: devantler-tech-tls |
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
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
83 changes: 83 additions & 0 deletions
83
k8s/providers/hetzner/infrastructure/patches/add-devantler-tech-listeners.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| # Serve the business-site package's public and portal names on the shared | ||
| # platform Gateway (platform#6177). SNI picks the most specific listener, so | ||
| # these terminate TLS with the names' own certificate while every other | ||
| # hostname keeps the hostname-less `https` listener and its ${domain} wildcard. | ||
| # JSON patch, not strategic merge: Gateway is a CRD, so a strategic-merge patch | ||
| # would replace the whole listeners list instead of appending. | ||
| # | ||
| # The section names are the ones the package's HTTPRoutes attach to | ||
| # (business-site deploy/http-route-public.yaml and http-route-portal.yaml). | ||
| # The certificateRefs point cross-namespace at the platform-issued | ||
| # business-site/devantler-tech-tls Secret (apps/business-site/certificate.yaml), | ||
| # which apps/business-site/reference-grant.yaml lets this Gateway read. Until the | ||
| # certificate issues, a listener stays ResolvedRefs=False while the Gateway | ||
| # stays Programmed, so it never gates reconciliation. | ||
| # | ||
| # external-dns creates portal.devantler.tech from its route. The apex and www | ||
| # keep their GitHub Pages records until the cutover hands them to external-dns | ||
| # (devantler-tech/monorepo#3939), because external-dns never overwrites a record | ||
| # it does not own. | ||
| # | ||
| # Each listener pins `allowedRoutes.kinds` to HTTPRoute, matching the base | ||
| # Gateway's listeners; see k8s/bases/infrastructure/gateway/gateway.yaml for why | ||
| # an unpinned HTTPS listener is a hostname-claiming gap. | ||
| - op: add | ||
| path: /spec/listeners/- | ||
| value: | ||
| name: https-devantler-tech | ||
| hostname: devantler.tech | ||
| port: 443 | ||
| protocol: HTTPS | ||
| tls: | ||
| mode: Terminate | ||
| certificateRefs: | ||
| - kind: Secret | ||
| group: "" | ||
| namespace: business-site | ||
| name: devantler-tech-tls | ||
| allowedRoutes: | ||
| namespaces: | ||
| from: All | ||
|
devantler marked this conversation as resolved.
Resolved
|
||
| kinds: | ||
| - group: gateway.networking.k8s.io | ||
| kind: HTTPRoute | ||
| - op: add | ||
| path: /spec/listeners/- | ||
| value: | ||
| name: https-www-devantler-tech | ||
| hostname: www.devantler.tech | ||
| port: 443 | ||
| protocol: HTTPS | ||
| tls: | ||
| mode: Terminate | ||
| certificateRefs: | ||
| - kind: Secret | ||
| group: "" | ||
| namespace: business-site | ||
| name: devantler-tech-tls | ||
| allowedRoutes: | ||
| namespaces: | ||
| from: All | ||
| kinds: | ||
| - group: gateway.networking.k8s.io | ||
| kind: HTTPRoute | ||
| - op: add | ||
| path: /spec/listeners/- | ||
| value: | ||
| name: https-portal-devantler-tech | ||
| hostname: portal.devantler.tech | ||
| port: 443 | ||
| protocol: HTTPS | ||
| tls: | ||
| mode: Terminate | ||
| certificateRefs: | ||
| - kind: Secret | ||
| group: "" | ||
| namespace: business-site | ||
| name: devantler-tech-tls | ||
| allowedRoutes: | ||
| namespaces: | ||
| from: All | ||
| kinds: | ||
| - group: gateway.networking.k8s.io | ||
| kind: HTTPRoute | ||
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.