Skip to main content

scm-chainguard

Manage Trusted CA certificates for Outbound Decryption in Strata Cloud Manager

Python License


Beta: This project is under active development. APIs, CLI flags, and behavior may change between releases. Use --dry-run to preview changes before applying them.

Overview

scm-chainguard keeps your Strata Cloud Manager SSL decryption trust store in sync with publicly trusted CA certificates maintained by CCADB. It downloads the latest root (and optionally intermediate) CA certificates from one or more trust stores (Chrome, Mozilla, Microsoft, Apple, or all), compares them against what is already configured in SCM, imports any missing certificates, and adds them to the trusted root CA list used for SSL decryption.

All managed certificates are prefixed with CG_ so they can be identified and cleaned up independently.

Features

  • Fetch trusted root and intermediate CA certificates from CCADB (Chrome, Mozilla, Microsoft, Apple, or all stores)
  • Compare local certificates against SCM predefined and imported certificate stores
  • Sync missing certificates into SCM and configure them as trusted roots
  • Revoke certificates that have been removed or blocked by the trust store
  • Cleanup expired CG_-managed certificates from SCM
  • Dry-run mode for all write operations

Requirements

  • Python >= 3.11
  • An SCM service account with client_id, client_secret, and tsg_id

Installation

pip install scm-chainguard

Or install from source:

git clone https://gitlab.com/dephell/scm-chainguard.git
cd scm-chainguard
pip install -e "."

Configuration

Set environment variables:

export SCM_CLIENT_ID="your-client-id"
export SCM_CLIENT_SECRET="your-client-secret"
export SCM_TSG_ID="your-tsg-id"

Or use a YAML config file:

scm:
  client_id: "your-client-id"
  client_secret: "your-client-secret"
  tsg_id: "your-tsg-id"

Quick Start

# Download Chrome-trusted root CAs from CCADB (default store)
scm-chainguard fetch

# Fetch from a different trust store
scm-chainguard fetch --store mozilla
scm-chainguard fetch --store apple
scm-chainguard fetch --store microsoft

# Fetch from all trust stores at once
scm-chainguard fetch --store all

# Include intermediate certificates
scm-chainguard fetch --store chrome --include-intermediates

# Compare local certs against SCM
scm-chainguard compare
scm-chainguard compare --store mozilla

# Import missing certs and add as trusted roots (dry-run first)
scm-chainguard sync --dry-run
scm-chainguard sync
scm-chainguard sync --store all --include-intermediates

# Full pipeline: fetch -> compare -> sync
scm-chainguard run --dry-run
scm-chainguard run
scm-chainguard run --store mozilla

# Remove CG_-managed certificates distrusted by the trust store
scm-chainguard revoke --dry-run
scm-chainguard revoke
scm-chainguard revoke --store all

# Remove expired CG_-managed certificates
scm-chainguard cleanup --dry-run
scm-chainguard cleanup

Common Options

Option Description
--config / -c Path to YAML config file
--debug Enable debug logging
--log-file Write logs to file
--dry-run / -n Show what would be done without making changes
--include-intermediates / -i Include intermediate certificates
--store / -s Trust store to filter by: chrome (default), mozilla, microsoft, apple, all

Disclaimer

scm-chainguard currently imports all certificates in the 'Global' folder due to an existing SCM API Implementation.

License

Apache 2.0

Metadata

Release files for scm-chainguard 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scm-chainguard 0.1.3
File Size Uploaded Provenance Actions
scm_chainguard-0.1.3.tar.gz 53.9 kB Without provenance Details for scm_chainguard-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scm-chainguard 0.1.3
File Interpreter ABI Platform Actions
scm_chainguard-0.1.3-py3-none-any.whl Python 3 none any Details for scm_chainguard-0.1.3-py3-none-any.whl

Total release size: 92.3 kB

Release files / scm_chainguard-0.1.3.tar.gz

Download URL scm_chainguard-0.1.3.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a631a134124f7caef9872329ac340cd4ddc86fde4dc756eb1ef84733603a4ce9
BLAKE2b-256 checksum
How to use checksums
c61cbc593c7b22869b27ac263fa156285a234359f2462370ee2668df054af466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / scm_chainguard-0.1.3-py3-none-any.whl

Download URL scm_chainguard-0.1.3-py3-none-any.whl
Size 38.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
babf9619d3c2062db3701c75956b558e795fde231cb2ce09f092bc463ba5b35c
BLAKE2b-256 checksum
How to use checksums
9c68de759fb2657a2320c75960faa59e45accae2561f7a0964b10292d2936710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for scm-chainguard 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page