Security hardening and lifecycle improvements for the Shaka Player Data SDK
The Shaka Player Data SDK is now hardened against tampered third-party code and unsafe input, with cleaner player lifecycle management.
What’s new:
-
Subresource Integrity for the CDN script: the Shaka Player CDN script now ships with an SRI hash and a
crossoriginattribute, so tampered third-party code will not execute. -
Validated manifest URLs: user-provided manifest URLs are trimmed and validated before playback, and the test harness is hardened against SonarQube findings.
-
Safer global access:
windowreferences were replaced withglobalThisfor environment-agnostic global access. -
Cleaner lifecycle handling: dedicated load and destroy controls with proper teardown prevent resource leaks.
-
Automated quality gates: Azure Pipelines and SonarQube static analysis were added to the build.