Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ the metadata. Signature verification checks the authenticity of the metadata
itself:

- Verify the signature against the given policy. The default policy only accepts
kernels signed by workflows in the `huggingface/kernels-community` GitHub
repository.
kernels signed by workflows in the `huggingface/kernels-community` and
`huggingface/kernels-community-rs` GitHub repositories.
- Verify the authenticity of `metadata.json` using the signature.

Signature verification is only performed for kernels downloaded from the Hub.
Expand Down
6 changes: 6 additions & 0 deletions kernels/src/kernels/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def verify(self, cert: Certificate) -> None:
"https://github.com/huggingface/kernels-community/.github/workflows/sign-old-builds.yaml@refs/heads/main",
],
),
GitHubWorkflowPolicy(
repo_id="huggingface/kernels-community-rs",
signer_uris=[
"https://github.com/huggingface/kernels-community-rs/.github/workflows/build.yaml@refs/heads/main",
],
),
]
)
"""
Expand Down
Loading