sigstore-oidc

Crates.iosigstore-oidc
lib.rssigstore-oidc
version0.6.0
created_at2025-11-27 10:54:54.835586+00
updated_at2025-12-17 09:08:03.578631+00
descriptionOpenID Connect identity provider for Sigstore
homepage
repositoryhttps://github.com/wolfv/sigstore-rust
max_upload_size
id1953521
size71,873
Wolf Vollprecht (wolfv)

documentation

README

sigstore-oidc

OpenID Connect identity provider for sigstore-rust.

Overview

This crate handles OIDC (OpenID Connect) authentication for Sigstore's keyless signing flow. It supports obtaining identity tokens from various OIDC providers, which are then used to request short-lived signing certificates from Fulcio.

Features

  • OAuth 2.0 device flow: Interactive authentication via browser
  • Ambient credentials: Automatic detection of CI/CD environment tokens
  • Token parsing: OIDC token validation and claim extraction
  • Multiple providers: Support for various identity providers

Supported Environments

Ambient credential detection works in:

  • GitHub Actions (ACTIONS_ID_TOKEN_REQUEST_TOKEN)
  • GitLab CI (SIGSTORE_ID_TOKEN)
  • Google Cloud (Workload Identity)
  • Generic OIDC token files

Usage

use sigstore_oidc::{get_identity_token, OAuthConfig};

// Try ambient credentials first, fall back to OAuth flow
let token = get_identity_token().await?;

// Or use explicit OAuth flow
let config = OAuthConfig::sigstore();
let token = config.get_token().await?;

Related Crates

Used by:

License

BSD-3-Clause

Commit count: 0

cargo fmt