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
| Concern | Always-/latest CDN | ept enterprise embed |
|---|---|---|
| Surprise updates mid-quarter | Possible on every page load | You choose track or exact pin |
| Prove script bytes | Usually not documented | Loader integrity= (SRI) |
| Rollback after a bad release | Vendor-dependent | Re-pin the previous data-version + prior hash |
| Immutable app assets | Often floating | Versioned CDN assets for pinned builds |
Recommended production pattern
- Stage on
data-track="beta"or a candidatedata-version. - Approve a specific patch (for example
2.0.51). - Pin that version in production with loader SRI.
- Record the
data-versionandintegrityvalue in your change ticket. - 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 currentloader.js. The browser refuses to run the script if CDN bytes do not match.crossorigin="anonymous"— required for SRI on cross-origin scripts.
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:
- Restore the previous known-good snippet: same
data-versionandintegrityfrom your change ticket (or Git history). - Redeploy your site HTML / tag manager snippet.
- Hard-refresh and confirm Network requests hit the prior versioned assets.
- Optionally keep staging on
betawhile 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_idonly on the server; browser receives short-lived tokens - CSP allowlist includes ept hosts (CSP Allowlist)
- Production uses
data-version+ loaderintegrity(or documented acceptance ofdata-track="stable") - Previous pin + hash recorded for rollback
- Token endpoint rate-limited (Security & tokens)