openedx / openedx/paragon

Compatibility with Subresource Integrity (SRI) in consuming Paragon CSS via external CDN

Open
#3,139 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

design tokens
Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

As part of a security review of the public, open-source CDN jsDelivr that 2U/edX.org frontends intend to use to consume Paragon's design tokens external CSS, it was asked we support Subresource Integrity (SRI), if possible.

However, using CDNs also comes with a risk, in that if an attacker gains control of a CDN, the attacker can inject arbitrary malicious content into files on the CDN (or replace the files completely)

Subresource Integrity enables you to mitigate some risks of attacks such as this, by ensuring that the files your web application or web document fetches (from a CDN or anywhere) have been delivered without a third-party having injected any additional content into those files — and without any other changes of any kind at all having been made to those files.

<link
  href="https://example.com/example-framework.css"
  integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
  crossorigin="anonymous"
  rel="stylesheet"></link>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Start by tracing how Paragon's design-token CSS is published and consumed through jsDelivr, then review the SRI requirements and existing distribution documentation. Done should be defined by maintainers as a specific, testable way to support or document SRI for the external CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, security, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.