Skip to main content

swarmauri_certs_azure

Swarmauri SDK

swarmauri_certs_azure

Azure Key Vault oriented Swarmauri certificate service for PKCS#10 CSR generation, PEM formatting, and certificate workflow helpers.

pypi: swarmauri_certs_azure Source version: 0.11.0 Python: >=3.10,<3.15 Layer: community Lifecycle: active License: Apache-2.0 Notice: attribution

Monthly PyPI downloads: swarmauri_certs_azure README hits: swarmauri_certs_azure

README standards: CI gate Tests: example source Certification: not certified Governance: repository policy Evidence: source and CI

Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License


Overview

Summary

swarmauri_certs_azure provides AzureKeyVaultCertService, a Swarmauri certificate-service adapter for Azure-oriented certificate workflows. The current implementation authenticates with Azure credentials, prepares an Azure Key Vault key client, and creates PKCS#10 certificate signing requests from exportable PEM private key material supplied through Swarmauri KeyRef objects.

Why This Package

Use this package when a Swarmauri deployment needs certificate request generation that fits Azure Key Vault operational patterns. It gives certificate code one Swarmauri interface while preserving Azure authentication through DefaultAzureCredential and keeping CSR construction, RFC 5280 serial helpers, and RFC 7468 PEM formatting in a package-local certificate service.

When to Use

Choose swarmauri_certs_azure when your integration needs azure Key Vault oriented Swarmauri certificate service for PKCS#10 CSR generation, PEM formatting, and certificate workflow helpers. Match the imports below to your application boundary and install its declared dependencies before using the example.

Features

  • AzureKeyVaultCertService class for Swarmauri certificate-service workflows.
  • Azure Identity integration through DefaultAzureCredential or a caller-provided credential.
  • Azure Key Vault key client construction for the configured vault URL.
  • PKCS#10 CSR creation from PEM private keys.
  • Common-name subject handling for CSR generation.
  • RFC 5280-oriented serial number helper.
  • RFC 7468 PEM certificate formatting helper.
  • Capability metadata reporting RSA-2048, RSA-SHA256, and CSR support.
  • Python 3.10, 3.11, 3.12, 3.13, and 3.14 support.

Non-Goals

swarmauri_certs_azure owns azure Key Vault oriented Swarmauri certificate service for PKCS#10 CSR generation, PEM formatting, and certificate workflow helpers. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.


Getting Started

Prerequisites

Python >=3.10,<3.15 is required. The manifest declares runtime dependencies including swarmauri-core, swarmauri-base, azure-identity, azure-keyvault-keys, cryptography, asn1crypto. Read the example’s inputs and service requirements before execution.

Installation

Install with uv:

uv add swarmauri_certs_azure

Install with pip:

pip install swarmauri_certs_azure

uv

uv add swarmauri_certs_azure

pip

python -m pip install swarmauri_certs_azure

Poetry

poetry add swarmauri_certs_azure

Quick Start

Example

Source: docs/readme/quick_start.py.

from azure.identity import DefaultAzureCredential

from swarmauri_certs_azure.certs import AzureKeyVaultCertService

service = AzureKeyVaultCertService(
    "https://example-vault.vault.azure.net/",
    credential=DefaultAzureCredential(),
)

print(service.supports()["features"])

Expected Result

The example demonstrates the documented swarmauri_certs_azure source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.


Usage

Common Workflows

Source: docs/readme/usage.py.

from azure.identity import DefaultAzureCredential

from swarmauri_certs_azure.certs import AzureKeyVaultCertService

service = AzureKeyVaultCertService(
    "https://example-vault.vault.azure.net/",
    credential=DefaultAzureCredential(),
)

print(service.supports()["features"])

Create a service for an Azure Key Vault URL:

Generate a CSR from local exportable key material:

import asyncio
from pathlib import Path

from azure.identity import DefaultAzureCredential

from swarmauri_certs_azure.certs import AzureKeyVaultCertService
from swarmauri_core.crypto.types import KeyRef


async def main() -> None:
    service = AzureKeyVaultCertService(
        "https://example-vault.vault.azure.net/",
        credential=DefaultAzureCredential(),
    )
    key_ref = KeyRef(material=Path("app-private-key.pem").read_bytes())

    csr = await service.create_csr(
        key=key_ref,
        subject={"CN": "app.example.com"},
    )
    Path("app.csr").write_bytes(csr)


asyncio.run(main())

Check helper behavior for PEM output:

from swarmauri_certs_azure.certs.AzureKeyVaultCertService import _serial_or_random

serial = _serial_or_random(None)
assert 0 < serial < 2**128

Configuration

Configure swarmauri_certs_azure through the APIs in package source; its manifest describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.

Error Handling

The inspected swarmauri_certs_azure source raises NotImplementedError. Handle these at the calling boundary and consult the implementation for the triggering conditions.

Best Practices

  • Prefer managed identities or workload identity federation over long-lived client secrets.
  • Keep Key Vault permissions scoped to the minimum operations required by the surrounding workflow.
  • Store generated CSRs and issued certificate chains in auditable storage.
  • Use a dedicated cloud CA or Azure certificate workflow for issuance/import operations outside this package.

Package Boundary

What It Owns

swarmauri_certs_azure is located in community and owns azure Key Vault oriented Swarmauri certificate service for PKCS#10 CSR generation, PEM formatting, and certificate workflow helpers. Source-declared APIs include AzureKeyVaultCertService. The manifest records its direct dependency boundary.

Public API and Import Surfaces

Import namespace: swarmauri_certs_azure.

Source-declared exports or types: AzureKeyVaultCertService.

Inspect package source for exact signatures; this inventory does not designate every internal module as stable.

Entry Points

This package declares no command-line, GUI, or plugin entry points in its manifest.

Injected Dependencies

The direct installation dependencies of swarmauri_certs_azure are swarmauri-core, swarmauri-base, azure-identity, azure-keyvault-keys, cryptography, asn1crypto. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in package source.

Protocol Consumers

No direct package-manifest dependency on swarmauri_certs_azure was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.

Extensions

For swarmauri_certs_azure, use the source-declared public interfaces (AzureKeyVaultCertService) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.


Operations and Readiness

Operational Requirements

Operate swarmauri_certs_azure according to its actual entry points and collaborators. The dependency and Python requirements in the manifest are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.

Health and Observability

This README does not establish a standalone health endpoint for swarmauri_certs_azure. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.

Security and Resource Limits

Apply the input, credential, and resource constraints implemented in package source. The swarmauri_certs_azure README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.

Compatibility

This source version of swarmauri_certs_azure declares Python >=3.10,<3.15. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.


Verification

Tests

Run python -m pytest tests/unit/test_readme_sources.py from the swarmauri_certs_azure package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:

The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.

Certification Status

No external certification is asserted for swarmauri_certs_azure by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.

Evidence

The README standards CI records mechanical documentation results for its tested commit. The package source and example sources support the package-boundary description; external runtime behavior requires its own test evidence.


FAQ

Why

Q: Does this package create certificates directly in Azure Key Vault?

A: Not in the current runtime implementation. It creates CSRs from exportable private key material and prepares an Azure Key Vault key client. Azure certificate creation, import, and lifecycle operations should be handled by the surrounding Azure workflow.

Q: What standards does it cover?

A: The package includes PKCS#10 CSR creation, RFC 5280-style serial number generation helpers, and RFC 7468 PEM certificate formatting helpers.

Q: What credential model does it use?

A: AzureKeyVaultCertService uses a caller-provided Azure credential or falls back to DefaultAzureCredential, which supports local developer login, managed identity, workload identity, and service-principal flows supported by Azure Identity.

Q: What key material is required?

A: The implemented CSR path requires exportable PEM private key material in KeyRef.material. Non-exportable Key Vault signing is not implemented by this simplified service.

How

How do I start? Install or synchronize the environment under Getting Started, follow the maintained example for swarmauri_certs_azure, and consult package source for the exact types and signatures involved.

When

When should I validate an upgrade? Recheck swarmauri_certs_azure whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.


More Documentation

The repository contribution guide, package source, and manifest provide the supporting context for swarmauri_certs_azure. The README policy defines the common document structure.

Certificate service packages:

Foundational packages:


Contributing

How to Contribute

Follow the contribution guide and include a focused example or regression for changes to swarmauri_certs_azure. Keep package behavior, its documented boundary, and its tests aligned.

Development Setup

Work from the pkgs/50-community/swarmauri_certs_azure checkout. Synchronize its declared development environment with uv, then run the relevant package tests and python -m pytest tests/unit/test_readme_sources.py. The repository’s dedicated README job installs readme-standards==0.1.3 without resolving unrelated runtime packages.

Notes for Maintainers

Edit authored prose directly in this swarmauri_certs_azure README. Update source examples in docs/readme/, then run readme-standards render --root . --write from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.


Governance

Ownership and Decision Making

Changes to swarmauri_certs_azure follow the maintainer review process of swarmauri/swarmauri-sdk and its contribution guide. Author attribution remains in the manifest; this README does not assign new publishing or administrative authority.

Standards and Policies

swarmauri_certs_azure follows the versioned package-guide-v1 outline. All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.

Lifecycle and Migration

The swarmauri_certs_azure source version is 0.11.0.


License and Attribution

License

Licensed under Apache-2.0. See LICENSE.

Apache-2.0

Notices

See NOTICE for attribution.

Metadata

Release files for swarmauri_certs_azure 0.11.0

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

Source distribution (sdist)

Source distribution for swarmauri_certs_azure 0.11.0
File Size Uploaded Provenance Actions
swarmauri_certs_azure-0.11.0.tar.gz 17.6 kB Without provenance Details for swarmauri_certs_azure-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_certs_azure 0.11.0
File Interpreter ABI Platform Actions
swarmauri_certs_azure-0.11.0-py3-none-any.whl Python 3 none any Details for swarmauri_certs_azure-0.11.0-py3-none-any.whl

Total release size: 31.3 kB

Release files / swarmauri_certs_azure-0.11.0.tar.gz

Download URL swarmauri_certs_azure-0.11.0.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1706919b404a56f96cb44e4c35ed79eca9731492623a93f294ab1792bd4a052f
BLAKE2b-256 checksum
How to use checksums
713a17569379a3f52c71e08dfe90de4435a6abd55411143478d06407ec8825ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_certs_azure-0.11.0-py3-none-any.whl

Download URL swarmauri_certs_azure-0.11.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eade118a42aac0d4033fe1cdeebaccd9bb2b222966ef289f0b5dd0a4c963374
BLAKE2b-256 checksum
How to use checksums
6d11a07b78a4c748d1c8a1e93cd6bc39c56a4a8a5e3e74675c54b7832c128c1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_certs_azure 0.11.0

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