Skip to content

Dependency policies#1622

Open
ericmj wants to merge 10 commits into
mainfrom
dependency-policies
Open

Dependency policies#1622
ericmj wants to merge 10 commits into
mainfrom
dependency-policies

Conversation

@ericmj

@ericmj ericmj commented Jun 2, 2026

Copy link
Copy Markdown
Member
2026-06-09 12 28 49 localhost 29ed519ebb89 2026-06-09 12 29 02 localhost bf8610bc58fb 2026-06-09 12 29 19 localhost fa8a224f0d65 2026-06-09 12 29 32 localhost bc847df23f66

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 7 package(s) with unknown licenses.
See the Details below.

License Issues

mix.exs

PackageVersionLicenseIssue Type
bandit1.12.0NullUnknown License
hexpm/hex_core4e787a1813ad7a020a12093c271a267b4ade13c3NullUnknown License
idna7.1.0NullUnknown License
mdex0.13.0NullUnknown License
mdex_native0.1.5NullUnknown License
rustler_precompiled0.9.0NullUnknown License
swoosh1.26.0NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
unknown/bandit 1.12.0 UnknownUnknown
unknown/hexpm/hex_core 4e787a1813ad7a020a12093c271a267b4ade13c3 UnknownUnknown
unknown/idna 7.1.0 UnknownUnknown
unknown/mdex 0.13.0 UnknownUnknown
unknown/mdex_native 0.1.5 UnknownUnknown
unknown/rustler_precompiled 0.9.0 UnknownUnknown
unknown/swoosh 1.26.0 UnknownUnknown

Scanned Files

  • mix.exs

@ericmj ericmj marked this pull request as ready for review June 2, 2026 20:04
attr :value, :string, default: "1"
attr :rest, :global

def toggle_switch(assigns) do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's another similar-ish toggle in hexpm_web/components/pricing.ex, billing_toggle. At some point it may be worth having a generic toggle component in the app.

@ericmj ericmj force-pushed the dependency-policies branch from 7936750 to 246aff6 Compare June 9, 2026 09:26
@ericmj ericmj marked this pull request as draft June 9, 2026 10:48
ericmj added 8 commits June 10, 2026 17:10
- Make policy names immutable after creation so the signed bucket object
  key never changes and old objects can't be orphaned; the editable name
  field and rename action are removed from the edit form.
- Reject reserved policy names (new, package-suggestions,
  version-suggestions) that would shadow the policy sub-routes.
- Scope the policy rebuild advisory lock to the policy id so rebuilds of
  different policies run in parallel.
- Replace the per-policy audit-log count on the list page with a single
  grouped query.
- Hide the save and delete affordances from non-admins on the edit form
  and show a read-only notice instead.
- Give the repository tablist aria-selected, a roving tabindex, and
  arrow-key navigation.
PolicyBuilder writes signed policies to the repo bucket, but the
TestController routes that stand in for the CDN locally had no policy
endpoint, so client policy fetches always 404ed against a local server.
The Organization prefix was inconsistent with everything else around it:
the Policies context, PolicyBuilder, the policy.* audit keys, the
/policies routes, and the Policy/RepositoryPolicy proto messages are all
unprefixed, and ownership is already expressed by belongs_to. The
organization_policies table is renamed to policies in the original
migration since the feature is unreleased; already-migrated databases
are converged with manual renames.
The CSP plug generates the style-src directive itself when inserting the
nonce, and every stylesheet link in the layout carries the nonce, so the
emitted policy is nonce-only. Listing 'self' and fonts.googleapis.com as
host sources alongside the nonce only allowed un-nonced stylesheets to
load, weakening the policy for no benefit.
@ericmj ericmj marked this pull request as ready for review June 12, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants