Skip to main content

Vault PKI Agent

PyPI version

Tool for auto-renewal certificates and CRL from Vault PKI.

Usage

Basic usage:

  $ vault_pki_agent -c [CONFIG_PATH] -l [LOG_LEVEL]

Log level can be DEBUG (by default), INFO, WARNING, ERROR, CRITICAL

Configuration

Example:

{
  "url": "http://111.111.111.111:8200",
  "mount_point": "pki",
  "auth": {
    "method": "approle",
    "role_id": "990ff41d-0448-f5d5-e405-22c05a23f976",
    "secret_id": "92871b67-0ad6-a4d5-40cc-0d8fb64e2960"
  },
  "crl": {
    "destination": "/etc/openvpn/keys/ca.crl"
  },
  "certificates": [
    {
      "role": "server",
      "common_name": "server",
      "crt_destination": "/etc/openvpn/keys/server.crt",
      "key_destination": "/etc/openvpn/keys/server.key",
      "hook": "systemctl restart openvpn"
    }
  ]
}

Authentication

Now only two auth methods are implemented:

  • token: You must define token property (it can contain root token)
  • approle: You must define role_id and secret_id properties. Also you can use role_id_file and secret_id_file properties if you want to read role_id and secret_id from files.

Release

  1. Bump version in pyproject.toml and __init__.py files
  2. Commit changes and create git tag with new version:
  $ git commit -am "Bump version"
  $ git tag v0.2.0
  1. Build and publish new library version:
  $ poetry build
  $ poetry publish
  1. Push:
  $ git push
  $ git push --tags

License

Vault PKI Agent is released under the MIT License. See the LICENSE file for more details.

Metadata

Release files for vault-pki-agent 0.4.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 vault-pki-agent 0.4.3
File Size Uploaded
vault-pki-agent-0.4.3.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vault-pki-agent 0.4.3
File Interpreter ABI Platform
vault_pki_agent-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / vault-pki-agent-0.4.3.tar.gz

Download URL vault-pki-agent-0.4.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
187a51d03af15757b40067157be0a1334df9c8b56b19043bdf1e0d0b2197d265
BLAKE2b-256 checksum
How to use checksums
59902fe740d4d1118aa276eade2592290d4bad7d3ae6caf4551654f6e691e6c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.10 Linux/5.8.0-63-generic

Release files / vault_pki_agent-0.4.3-py3-none-any.whl

Download URL vault_pki_agent-0.4.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d041a9aa66a1d762a9f7be12e7aa48409390f2a0433c4b661a32b3bb8c41b19d
BLAKE2b-256 checksum
How to use checksums
4014ba553a93542b440f3a9ea88f62d9008372e5e99581fd987dee6800f90bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.10 Linux/5.8.0-63-generic

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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