Rotating the CDN header value - AWS Elemental MediaPackage

Rotating the CDN header value

If you change the CDN custom origin HTTP header value, you need to rotate the stored secret value in Secrets Manager. The following procedure describes how to rotate your value in Secrets Manager to make sure that your CDN's HTTP header value and the Secrets Manager stored secret value are in sync.

To rotate the value
  1. Update the stored secret value in Secrets Manager as described in Modifying a secret in the AWS Secrets Manager User Guide.

    To ensure continued playback for active streams, MediaPackage authorizes requests that use either the current value in Secrets Manager or one version back.

  2. Wait 10 minutes for MediaPackage to recognize that the value has changed in Secrets Manager.

  3. In your CDN, update the value in X-MediaPackage-CDNIdentifier to the new authorization code.

  4. Wait for your CDN to update fully with the new value before you send any requests through it to MediaPackage.

    To disable the previous secret value, save the new secret value two times. This way, both the current and previous secret versions have the same value.