• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / sonde / 25999285343
82%

Build:
DEFAULT BRANCH: main
Ran 17 May 2026 06:45PM UTC
Jobs 1
Files 126
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 May 2026 06:35PM UTC coverage: 82.941% (-0.01%) from 82.953%
25999285343

push

github

web-flow
feat: add custom domain support for SPA (WEB-0608) (#940)

* feat: add custom domain support for SPA (WEB-0608)

Add optional custom domain binding for the Azure Static Web App so
operators can access the SPA via a branded URL (e.g.,
`https://sondeplatform.com`) alongside the default
`*.azurestaticapps.net` hostname.

Bicep changes:
- New `dns-record.bicep` module creates an ALIAS A record in an
  external Azure DNS zone pointing to the SWA resource.
- `main.bicep` gains three optional parameters: `customDomainName`,
  `customDomainDnsResourceGroup`, `customDomainDnsZoneName`.  When
  the first two are non-empty the DNS module is deployed and CORS is
  expanded.  New output: `customDomainUrl`.
- `stack.bicep` conditionally adds the custom domain origin to the
  Function App `corsAllowedOrigins` array and exposes
  `staticWebAppResourceId`.

Deploy script (`deploy.sh`):
- Discovers custom domains via `az staticwebapp hostname list`.
- Registers each custom domain as an additional SPA redirect URI on
  the Entra app registration (additive merge).
- Adds each custom domain as a CORS allowed origin on the Function
  App.

Bootstrap integration:
- `BootstrapArgs` gains `--custom-domain-name`,
  `--custom-domain-dns-resource-group`, and
  `--custom-domain-dns-zone-name` flags (also via env vars).
- `build_container_env` forwards these to the bootstrap container.
- `bootstrap.sh` passes custom domain parameters to the Bicep
  deployment and registers the custom domain redirect URI on the
  Entra app registration.

SPA (`app.js`):
- Sets MSAL `redirectUri` to `window.location.origin` explicitly so
  authentication works on both the default and custom domain hostnames.

Docs:
- `web-ui-design.md`: new §9.5 Custom Domain, updated §8 and §9.1.
- `web-ui-validation.md`: eight new test entries (T-WEB-0508,
  T-WEB-0604b, T-WEB-0608a-c, T-WEB-0609a-b, T-WEB-0610).
- Bicep `README.md`: documented new parameters.

Existing deployments are unaffected — all custom doma... (continued)

12 of 15 new or added lines in 1 file covered. (80.0%)

7 existing lines in 1 file now uncovered.

35161 of 42393 relevant lines covered (82.94%)

256.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
80.78
-0.3% crates/sonde-azure-companion/src/main.rs

Coverage Regressions

Lines Coverage ∆ File
7
80.78
-0.3% crates/sonde-azure-companion/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 25999285343.1 17 May 2026 06:45PM UTC 126
82.94
GitHub Action Run
Source Files on build 25999285343
  • Tree
  • List 126
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25999285343
  • 160439ca on github
  • Prev Build on main (#25997743297)
  • Next Build on main (#26000128271)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc