Private static websites, without making the storage public. An authenticated gateway, direct-to-storage package publishing, a visual editor, version-based recovery, and identity-aware analytics—followed by a deliberately smaller SAML-only gateway.
A personal proof of concept and its documented evolution. Application source, infrastructure archives and setup guides establish the design—not a fresh verification of the live Azure deployment. Evidence & limitations ↓
1 website originApp Service serves private content
2 data pathsGateway reads · browser uploads
15-minute SASScoped staging write access
Versioned contentDrafts, revisions and rollback
Entra sign-inHuman identity ≠ storage identity
Track A · Private delivery
A gateway, not a public Blob website
Microsoft Entra authenticates the viewer. Node/Express resolves the requested site path and reads private files through Azure credentials. The browser remains on the Web App origin for ordinary viewing.
Track B · Content operations
Upload, edit, publish, recover
The browser transfers package bytes to staging. The gateway controls publication. A visual editor separates drafts from live pages, while deployment records and Blob versions support recovery.
Track C · Separate authentication test
Strip the system back to SAML
A later standalone sample keeps only native SAML and private-folder delivery. It intentionally excludes the editor, uploader, administration, analytics, staging and infrastructure code.
How to read this case study
Evidence & limitations
Source-backed implementation. The full editor app and supplied infrastructure archive establish capabilities and configuration intent. They do not prove the live Azure state. [S1][S2]
Two distinct SAML implementations. The full app’s staged migration and the separate read-only sample have different redirect and state controls. They are not interchangeable. [S3][S4]
Demonstration, not deployment proof. The editor image is a local demo; acceptance checks are requirements, not fresh cloud results. [S5]
Explore the application responsibilities, identity boundary and storage operations. This map follows the full project repository; it does not imply that the SAML migration is already deployed.
Open full diagram ↗Inspect components, switch themes or export in the viewer.
Reading the map: the browser requests content from the gateway and uploads packages directly to staging. The gateway authenticates with Entra and reads, publishes or restores site blobs. Browser analytics go to Application Insights.
Explore interactive project map Expand / collapse
This detailed map is wider than a phone. Use the pan buttons, swipe the map frame, or focus the frame and press ← / →. Pan right to reach all viewer controls.
The delivery boundary
Keep the files private. Give people normal website URLs.
A folder of HTML is easy to host anonymously. The harder problem is giving assigned users a usable website while keeping direct storage access out of the viewing experience. Here, App Service is the delivery layer, not just a sign-in page in front of a public bucket.
Resolve the path after authentication
The gateway applies authentication before its catch-all site route. It validates path encoding and reserved prefixes, maps directory URLs to index.html, and serves exact asset paths. A directory found without its trailing slash is redirected so relative assets resolve correctly.
For ordinary viewing, the browser receives the content through App Service—not a Blob URL or read SAS. Large or non-HTML responses stream through the gateway; eligible HTML is read and augmented with shared resources before delivery.
Separate the human from the application
Entra answers “who may sign in?” Managed identity and Azure RBAC answer “may this Web App read or change Blob content?” Those are independent trust decisions. A SAML Entity ID is not a storage credential, and the managed identity principal is not the signed-in user.
Editing has another check: ADMIN_OBJECT_IDS can list specific Entra object IDs or allow every authenticated, assigned user. That broad test configuration is not per-site authorization or tenant isolation.
Friendly URLs map to objects inside the private sites container
Browser path
Blob name
Meaning
/site1/
site1/index.html
Site landing page
/site2/about/
site2/about/index.html
Nested directory page
/site2/assets/app.css
site2/assets/app.css
Asset under the same site prefix
Private container does not mean private endpoint. The supplied v3 Terraform allows the storage public network endpoint while disabling anonymous container access. Managed identity does not create network reachability. A corporate private-network variant needs its own VNet integration, Blob private endpoint and private DNS configuration.
The engineering build path
From private files to a manageable publishing system
These are the implementation layers visible in the supplied materials, not a claim that every phase passed a new cloud acceptance test.
01
Hosting foundation
Put the identity-aware gateway in front of storage
The full project runs Node/Express on a Linux App Service plan. The supplied infrastructure archive defines a system-assigned identity, private sites and staging containers, a custom hostname and a managed certificate. Content lives under site prefixes rather than requiring a separate Web App per package.
Source boundary: Terraform is present in the supplied v3 archive, but deliberately absent from the application-only repository.
02
Authentication ownership
Retain Easy Auth while staging native SAML
The application defaults to App Service Easy Auth/OIDC and also implements native SAML behind AUTH_MODE. In Easy Auth mode, Azure must establish trusted identity headers before requests reach Node. In native mode, the application owns the SAML callback, validation and signed session cookie.
Migration boundary: the repository calls SAML a staged cutover. The later setup documents do not independently prove that the live switch happened. [S3]
03
Package preparation
Normalize a website before transferring it
A publisher selects a ZIP archive or an extracted folder. The browser extracts ZIPs locally, filters packaging debris, normalizes the root and checks the manifest. A root index.html is required. Existing site names cannot be overwritten accidentally: replacement must be explicitly requested.
Configured limits, not performance results: 25,000 files and 5 GB per package; ZIP selection has a separate 1 GB compressed-file ceiling.
04
Direct upload
Send the bulk bytes to Blob Storage, not through Node
The gateway prepares per-blob user-delegation SAS URLs for the staging container. Each permits HTTPS create/write operations and expires after 15 minutes. The browser uploads with Blob PUT requests; the managed identity supplies the gateway’s Azure access without putting an account key in browser code.
Important distinction: upload SAS URLs are intentionally visible to the publisher. “No Blob URL in the browser” describes ordinary viewing, not this upload path. [S1]
05
Publication control
Validate staging, copy content and record a deployment
After the upload, the gateway lists and validates the staged package, checks replacement permission, and copies its objects into the site prefix. It records the resulting Blob version IDs in a deployment manifest, then removes staging objects and writes an audit event.
Consistency boundary: replacement deletes and copies individual objects. It is not an atomic folder swap; partial publication remains a failure mode to handle.
06
Visual authoring
Keep draft work separate from the live page
The editor exposes components, layers, history, device previews, code view, media and reusable templates. Saving a draft creates a revision containing edited HTML and the original live version reference. Publishing is a separate action that writes the reviewed revision to the website.
Content boundary: ordinary HTML opens with scripts disabled. Supported JavaScript-assembled exports use a guarded canvas; this does not make arbitrary uploaded JavaScript trustworthy. [S1]
07
Recovery
Restore a known version without silently replacing a newer edit
Deployment history supports site recovery from recorded Blob versions. Page rollback verifies that the chosen revision is still the live publication before restoring its original version; a newer publication causes a conflict instead of a blind overwrite. Site deletion asks the operator to type the exact site name.
Infrastructure intent: the v3 archive enables versioning and seven-day soft delete. Those settings support recovery; they do not make multi-file publication transactional.
08
Operational visibility
Attach analytics at the delivery layer
For eligible HTML responses, the gateway injects a self-hosted Application Insights browser SDK and shared tracking script. Browser events include page views, application session starts, marked-element clicks and active/elapsed page time. The administration experience also exposes deployment and publishing audit information.
Privacy boundary: this is identity-linked activity, not anonymous traffic. Browser session-start events are not authoritative Entra sign-in logs. [S1]
09
Native SAML
Preserve the requested site across one common callback
Entra posts to one /saml/acs endpoint. RelayState carries the intended local destination, so the reader can return to the requested folder instead of a generic homepage. The full application loads signing certificates from application-specific federation metadata and stores SAML request-correlation records in private staging blobs.
Do not merge implementations: the full app sanitizes its return path; the separate minimal sample adds explicitly HMAC-signed, five-minute RelayState.
10
A smaller test surface
Extract only the corporate SAML and folder-delivery problem
The standalone gateway removes publishing, analytics and editing to isolate authentication and path preservation. It uses strict SAML validation, a regenerated Express session and managed-identity Blob reads. Its session and request stores remain in memory, making it a one-instance initial test—not the full project with features merely hidden.
Acceptance boundary: all assigned users can access all folders. Shared state, per-site authorization and production approval remain separate work. [S4]
Inside the authoring experience
Visual editing is the interface. Revision control is the important boundary.
The visible tools make static packages easier to maintain. Behind them, the gateway distinguishes draft creation, live publication and version-based recovery. That distinction matters more than treating every save as a deployment.
Bundled sample rendered in local demo mode. This is not evidence of Azure sign-in or a deployed customer website. Source: project repository screenshot. Open full size ↗
Different tools need different content policies
The uploader can use a restrictive Content Security Policy. The editor needs inline styling and, for supported assembled packages, package JavaScript. That makes authenticated authors part of the trust model. Sensitive or untrusted content needs stronger origin isolation and a separate security review.
Optional AI is not the delivery architecture
The full application includes configurable Foundry-assisted editing hooks. They are not required to read a site, transfer a package or publish a revision, and the supplied evidence does not establish model quality or a verified AI deployment. The SAML-only sample excludes AI entirely.
Technology inventory
What each Azure service is responsible for
A small platform can still have clear ownership. These are responsibilities established by source and configuration—not a live resource census.
App Service
Application runtime
Linux Node/Express gateway, site routing, authentication integration, administrator checks and content operations.
Microsoft Entra ID
Human identity
Assigned-user sign-in. Easy Auth/OIDC and native SAML are alternative integration modes, not two simultaneous login requirements.
Managed identity + RBAC
Application identity
The full publishing app needs Blob write/delegation capabilities. The read-only SAML sample can use Storage Blob Data Reader.
Blob Storage
Content and recovery
Private site and staging containers, versioned content and deployment metadata. Full-app SAML request state also uses staging blobs.
Application Insights
Browser telemetry
Shared tracking captures page activity and authenticated context in the full app. The minimal sample contains no analytics.
Log Analytics
Queryable monitoring
Workspace-backed monitoring and dashboard queries. The supplied infrastructure configures retention and ingestion controls.
Custom domain + TLS
Browser origin
Hostname and certificate binding belong to App Service configuration. DNS resolves the name; it does not authenticate a user or proxy file bytes.
Terraform
Archive-only foundation
Bootstrap and foundation definitions exist in the supplied Azure v3 ZIP. They are not shipped in the application-only repository or the SAML-only sample.
Separate deliverable · Not an upgrade assertion
The SAML-only gateway, kept deliberately small
The September corporate-test package isolates one question: can an assigned user sign in and return to the correct private site folder? Its stricter redirect token and simpler runtime should not be attributed to the full editor application.
Open full diagram ↗Design and source-package evidence; no corporate sign-in was performed for this article.
Reading the map: Entra authenticates the assigned user, the Web App validates the SAML response and creates a session, then managed identity reads the requested folder from private Blob Storage. There is no editor, uploader or analytics in this sample.
Explore interactive SAML map Expand / collapse
This detailed map is wider than a phone. Use the pan buttons, swipe the map frame, or focus the frame and press ← / →. Pan right to reach all viewer controls.
Strict validation, explicit redirect protection
The sample requires both the SAML response and assertion to be signed. It validates audience, timestamps and request correlation, then checks the exact identity-provider issuer. Its RelayState is independently HMAC-signed, expires after five minutes and permits only a safe local path. After validation, the application regenerates and saves the session before redirecting.
Native SAML does not require an Entra client-secret exchange. The public signing certificate verifies Entra’s assertion; a separate application secret protects sessions and RelayState. The read-only sample takes explicit issuer, login URL and certificate settings, unlike the full app’s metadata-driven configuration.
One instance means one failure domain
Express sessions and pending SAML requests live in memory. Restarting the process clears them; requests landing on another instance cannot assume the same state. A shared session and correlation store is a prerequisite for scaling this sample. Entra single logout is also outside its initial scope.
The sample marks authenticated files private, no-store. Do not assume the full app has the same policy: its gateway can return public five-minute asset caching. Cache headers and intermediary behavior need review before sensitive-content use.
Guardrails and trade-offs
Useful controls, with their limits left visible
Scoped transfer credentials
Short-lived write SAS links reduce exposure compared with an account key. They are still bearer capabilities: avoid logging them, limit their scope and treat an exposed URL as usable until expiry.
Authenticated is not isolated
Assignment controls who enters the application. It does not decide which site each user may open. Neither reviewed variant establishes per-site tenant isolation.
Recovery is not atomicity
Versioning, soft delete and recorded version IDs make recovery possible. Package replacement can still expose an incomplete set of files while individual copies are in progress.
Identity-aware means personal data
Telemetry attaches signed-in identity, page paths and activity. IP masking does not anonymize those records. Collection, access, retention and query-string handling need a deliberate privacy decision.
Caps are not a bill guarantee
The archive configures 0.1 GB/day ingestion settings and 30-day monitoring retention, alongside one-day staging cleanup. These are controls, not a promise of zero overshoot or a fixed total bill.
Test cost is not production cost
The B1 plan is the documented fixed-cost baseline. Storage, transactions, transfer, monitoring, domain and optional AI remain relevant. The one-week ₹2,000 figure in the notes is a target, not measured savings or an enforced spending stop.
Operational lessons
The checks behind a convincing demo
The materials document these pitfalls and troubleshooting steps. They are not all claimed here as independently reproduced incidents.
A CLI timeout can conceal a successful deployment
The project README warns that Azure CLI can return a 504 while a build continues. Inspect the deployment record before repeating the operation; a client timeout alone does not establish failure.
A successful sign-in can still lose the destination
Use one ACS endpoint and validate the original local return path. Test a nested page as well as a homepage. In the minimal sample, expired or altered RelayState must be rejected.
Working identity does not imply working storage
A valid SAML session proves the user was authenticated. Blob reads can still fail because of missing RBAC, the wrong endpoint, a firewall or private-DNS configuration.
Loading HTML is not the same as loading a site
A root-relative asset such as /assets/app.css can escape the site prefix. Test relative assets, nested pages and slash redirects—not just the first successful HTML response.
Acceptance, not a victory checklist
What needs to be proven in the target environment
Source review explains the implementation. A real acceptance run still needs assigned and unassigned identities, the intended Azure resources and approved data-handling settings. The checks below are requirements, not freshly passed cloud results.
01
Identity and path preservation
Assigned users return to their requested root or nested page; unassigned users fail at the intended identity boundary.
02
Negative SAML cases
Invalid signatures, audience, issuer, expired assertions and unknown request IDs fail. Altered or expired RelayState fails in the standalone sample.
03
Content and permission boundaries
No anonymous site read; ordinary viewing uses the gateway. Uploads require administrator permission and narrowly scoped staging credentials.
04
Publication and recovery
Reject an incomplete package and accidental overwrite. Test draft isolation, publication, stale rollback conflicts, version recovery and interrupted multi-file replacement.
05
Privacy, caching and operations
Inspect telemetry fields, shared-cache behavior, storage retention, staging cleanup, certificate rotation, restart behavior and the actual cost controls.
Evidence boundary. The corporate-test guide reports 28 automated tests and clean package checks at creation time. That is a historical statement about the standalone sample—not a fresh dependency audit, browser SSO result or test result for the full editor project.
The project turns a folder of web files into an authenticated publishing workflow by separating identity, transfer, publication, editing and recovery. The smaller SAML gateway then demonstrates how much can be removed when the only goal is private reading and correct sign-in return paths.
It is a useful proof of concept, not a production-equivalence claim. Per-site authorization, content isolation, cache safety, failure-consistent releases, privacy approval and environment-specific verification are the next boundaries to resolve—not implied outcomes of choosing Azure.
This article describes a personal project, not the separate employer implementation. Example paths are generic. Cloud identifiers, account names, certificates, session secrets and raw deployment files are not included.
[S1] Full application · private source: repository snapshot 4c6f3bb09b25ee14eeca8d0dd86071ebe7eafbf4. Upload preparation/publication: app/gateway/server.js:250–338; drafts and rollback: 627–677, 747–773; routing: 1003–1033; telemetry: public/shared/analytics.js:10–77. The application repository excludes Terraform.
[S2] Infrastructure · supplied archive:azure-private-static-sites-source-v3.zip; foundation storage.tf, webapp.tf, monitoring.tf and domain.tf. Configuration intent is not live resource verification. The archive is not published here.
[S3] Native SAML · private source and supplied guide: Azure-Native-SAML-SSO-Web-App-Configuration-Guide, SAML-SETUP.md and app/gateway/saml-auth.js:19–99, 122–169, 241–295. Documentation that says “native SAML” does not override the repository’s current-mode caveat.
[S4] Minimal sample · supplied archive:azure-saml-folder-gateway.zip, September design specification and Corporate Test Guide. Relevant files: src/app.js, src/saml-client.js, src/relay-state.js and src/blob-reader.js. This separate deliverable has stricter response-signature and RelayState requirements, but in-memory state.
[S5] Visual evidence · local demonstration: one previously reviewed local-demo screenshot; two Archify architecture diagrams. Their automated validation, delivery, provenance and browser checks passed. Diagram checks do not verify Azure runtime behavior.
This article describes the personal proof of concept and supplied source packages. It is not an employer implementation report or a new live-cloud acceptance test.