Skip to main content
Website Embed

Enterprise Embed Control

Pin chatbot versions, verify loader bytes with SRI, and roll back by re-pinning — enterprise release control vs always-latest CDN embeds.

Enterprise Embed Control

Many website agents ship an unversioned or /latest script. That is convenient for demos and hard for change boards: you cannot freeze a known artifact, prove bytes with Subresource Integrity (SRI), or roll back without hoping the vendor CDN still serves what you tested.

ept AI treats release control as a first-class embed feature: pin an exact patch, verify the loader with SRI, and roll back by restoring a prior pin.

Why this matters​

ConcernAlways-/latest CDNept enterprise embed
Surprise updates mid-quarterPossible on every page loadYou choose track or exact pin
Prove script bytesUsually not documentedLoader integrity= (SRI)
Rollback after a bad releaseVendor-dependentRe-pin the previous data-version + prior hash
Immutable app assetsOften floatingVersioned CDN assets for pinned builds
  1. Stage on data-track="beta" or a candidate data-version.
  2. Approve a specific patch (for example 2.0.51).
  3. Pin that version in production with loader SRI.
  4. Record the data-version and integrity value in your change ticket.
  5. Roll back by restoring the previous pin if needed.

Pin + SRI (copy-paste)​

<script
src="https://assets.ept.ai/chatbot/loader.js"
integrity="sha384-HP/hwp5tHPgL3EFaUavUJ4zwdIZShNNWf355hX/PAneoUERSiBripTjz3oQCQDhp"
crossorigin="anonymous"
data-version="2.0.51"
async>
</script>
  • data-version — loads that immutable widget build; the loader applies SRI from the version manifest to app JS/CSS.
  • integrity — SHA-384 of the current loader.js. The browser refuses to run the script if CDN bytes do not match.
  • crossorigin="anonymous" — required for SRI on cross-origin scripts.
Loader URL vs widget version

loader.js lives at a fixed URL and changes only when the loader itself is redeployed. After you approve a new loader build, recompute integrity and update your pages. Widget app code still follows data-version.

Recompute the loader hash​

curl -sS https://assets.ept.ai/chatbot/loader.js \
| openssl dgst -sha384 -binary \
| openssl base64 -A

Prefix the result with sha384- for the integrity attribute.

Rollback by re-pin​

When a new pin misbehaves in production:

  1. Restore the previous known-good snippet: same data-version and integrity from your change ticket (or Git history).
  2. Redeploy your site HTML / tag manager snippet.
  3. Hard-refresh and confirm Network requests hit the prior versioned assets.
  4. Optionally keep staging on beta while you investigate.

You do not need a vendor “promote/rollback” console for this path: immutable pins make rollback a configuration change on your side.

<!-- Example: roll back from 2.0.51 to 2.0.50 -->
<script
src="https://assets.ept.ai/chatbot/loader.js"
integrity="sha384-YOUR_PREVIOUS_LOADER_HASH"
crossorigin="anonymous"
data-version="2.0.50"
async>
</script>

Tracks when you want automatic updates​

If your risk posture allows continuous approved updates without a freeze:

<script
src="https://assets.ept.ai/chatbot/loader.js"
data-track="stable"
async>
</script>

Track-based embeds always pull the latest approved build on that track. Prefer pin + SRI for regulated or change-controlled sites. Details: Tracks & Version Pinning.

Security checklist for embed approval​

  • Domain allowlist configured on the channel
  • client_id only on the server; browser receives short-lived tokens
  • CSP allowlist includes ept hosts (CSP Allowlist)
  • Production uses data-version + loader integrity (or documented acceptance of data-track="stable")
  • Previous pin + hash recorded for rollback
  • Token endpoint rate-limited (Security & tokens)