secrets-provider-tests

Crates.iosecrets-provider-tests
lib.rssecrets-provider-tests
version0.4.14
created_at2026-01-04 11:21:43.115649+00
updated_at2026-01-18 18:05:55.532706+00
descriptionShared conformance test harness for Greentic secrets providers.
homepage
repositoryhttps://github.com/greentic-ai/greentic-secrets
max_upload_size
id2021743
size24,279
Greentic - the greener Agentic AI (greentic-ai)

documentation

README

secrets-provider-tests

Shared conformance test harness for Greentic secrets providers. Intended for integration tests run by individual provider crates.

Environment contract

  • GREENTIC_TEST_PREFIX (optional): override the base prefix for all secrets. Defaults to:
    • ci/<provider>/<repo>/<run_id>/<attempt>/... when GitHub Actions env vars are present.
    • local/<provider>/<timestamp>/<pid>/... otherwise.
  • GREENTIC_TEST_CLEANUP: whether to delete secrets after the suite (default: true; set 0/false to skip).
  • GREENTIC_TEST_KEEP: hard override to disable cleanup when set to a truthy value.

Provider-specific environment variables should be documented alongside each provider’s conformance test.

Usage

Add a dev-dependency on secrets-provider-tests, gate your conformance test with #[cfg(feature = "integration")] and #[ignore], and call ConformanceSuite::new("provider-name", &client, Capabilities::default()).run().await.

Notes

  • No secrets values are logged; failures include the provider name and key path only.
  • Prefixes are unique per test run to keep parallel runs isolated.
  • retry_async is provided for eventual-consistency reads.
Commit count: 107

cargo fmt