Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sigstore/sigstore-rs
An experimental Rust crate for sigstore
https://github.com/sigstore/sigstore-rs
rust-lang rust-libraries sigstore
Last synced: 7 days ago
JSON representation
An experimental Rust crate for sigstore
- Host: GitHub
- URL: https://github.com/sigstore/sigstore-rs
- Owner: sigstore
- License: apache-2.0
- Created: 2021-10-04T17:17:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T08:15:08.000Z (about 2 months ago)
- Last Synced: 2024-12-28T08:02:15.082Z (14 days ago)
- Topics: rust-lang, rust-libraries, sigstore
- Language: Rust
- Homepage: https://sigstore.github.io/sigstore-rs/sigstore/
- Size: 1.4 MB
- Stars: 177
- Watchers: 12
- Forks: 54
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
Continuous integration | Docs | License | Crate version | Crate downloads
----------------------|------|---------|---------------|-----------------
[![Continuous integration](https://github.com/sigstore/sigstore-rs/actions/workflows/tests.yml/badge.svg)](https://github.com/sigstore/sigstore-rs/actions/workflows/tests.yml) | [![Docs](https://img.shields.io/badge/docs-%20-blue)](https://docs.rs/sigstore/latest/sigstore) | [![License: Apache 2.0](https://img.shields.io/badge/License-Apache2.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0) | [![Crate version](https://img.shields.io/crates/v/sigstore?style=flat-square)](https://crates.io/crates/sigstore) | [![Crate downloads](https://img.shields.io/crates/d/sigstore?style=flat-square)](https://crates.io/crates/sigstore)A crate to interact with [sigstore](https://sigstore.dev/).
This crate is under active development and will not be considered
stable until the 1.0 release.## Features
### Cosign Sign and Verify
The crate implements the following verification mechanisms:
* Sign using a cosign key and store the signature in a registry
* Verify using a given key
* Verify bundle produced by transparency log (Rekor)
* Verify signature produced in keyless mode, using Fulcio Web-PKISignature annotations and certificate email can be provided at verification time.
### Fulcio Integration
For use with Fulcio ephemeral key signing, an OpenID connect API is available,
along with a fulcio client implementation.### Rekor Client
All rekor client APIs can be leveraged to interact with the transparency log.
### Key Interface
Cryptographic key management with the following key interfaces:
* Generate a key pair
* Sign data
* Verify signature
* Export public / (encrypted) private key in PEM / DER format
* Import public / (encrypted) private key in PEM / DER format#### Known limitations
* The crate does not handle verification of attestations yet.
## Examples
The `examples` directory contains demo programs using the library.
* [`openidflow`](examples/openidflow/README.md)
* [`key_interface`](examples/key_interface/README.md)
* [`rekor`](examples/rekor/README.md)
* [`cosign/verify`](examples/cosign/verify/README.md)
* [`cosign/verify-blob`](examples/cosign/verify-blob/README.md)
* [`cosign/verify-bundle`](examples/cosign/verify-bundle/README.md)
* [`cosign/sign`](examples/cosign/sign/README.md)Each example can be executed with the `cargo run --example ` command.
For example, `openidconnect` can be run with the following command:
```bash
cargo run --example openidconnect
```## WebAssembly/WASM support
To embedded this crate in WASM modules, build it using the `wasm` cargo feature:
```bash
cargo build --no-default-features --features wasm --target wasm32-unknown-unknown
```NOTE: The wasm32-wasi target architecture is not yet supported.
## Contributing
Contributions are welcome! Please see the [contributing guidelines](CONTRIBUTORS.md)
for more information.## Security
Should you discover any security issues, please refer to sigstores [security
process](https://github.com/sigstore/community/security/policy)