Skip to main content

terrajinja-sbp-vault

This is an extension to the vault provider for the following modules. The original documentation can be found here

SBP Specific implementations

Here is a list of supported resources and their modifications

sbp.vault.kv_secret_v2

Original provider: vault.kv_secret_v2

This custom provider adds the following:

  • automaticly convert data to json as input for the resource
  • automaticly create random passwords if requested
old parameter new parameter description
data_json data the data field is automaticly converted to json
lifecycle - default is set to ignore all changes only if random passwords are used

additional to the above the data structure expected is in the format:

{ 
    "key": "value",
    "key2": "value2",
}

if any of the values contains the word "random" then a rendomly generated password is created of 30 characters

example:

{
    "my_secret": "random"
}

will result in a random string being created as password for my_secret

terrajinja-cli example

the following is a code snipet you can used in a terrajinja-cli template file. This created both the hashicorp vault with the name generic, and adds a secret in it in the path application with key admin that contains a random password

terraform:
  resources:
    - task: vault-mount-generic
      module: vault.mount
      parameters:
        path: "generic"
        type: "kv"
        options:
            version: "2"

    - task: vault-application-password
      module: sbp.vault.kv_secret_v2
      parameters:
        mount: $vault-mount-generic.path
        name: "application"
        data:
          admin: "random"

History

0.0.1 (14-03-2024)

  • First code creation

Metadata

Release files for terrajinja-sbp-vault 0.3.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 terrajinja-sbp-vault 0.3.0
File Size Uploaded Provenance Actions
terrajinja_sbp_vault-0.3.0.tar.gz 35.4 kB Without provenance Details for terrajinja_sbp_vault-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terrajinja-sbp-vault 0.3.0
File Interpreter ABI Platform Actions
terrajinja_sbp_vault-0.3.0-py3-none-any.whl Python 3 none any Details for terrajinja_sbp_vault-0.3.0-py3-none-any.whl

Total release size: 41.7 kB

Release files / terrajinja_sbp_vault-0.3.0.tar.gz

Download URL terrajinja_sbp_vault-0.3.0.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f18b11fb4d00471b72b2e64207378540d7674a2d5da1318eda814474458f39dc
BLAKE2b-256 checksum
How to use checksums
10402c33701fdbcf5f30eeb40f2ee2a48cb46e4f420af47b414999bbcc845ce9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Release files / terrajinja_sbp_vault-0.3.0-py3-none-any.whl

Download URL terrajinja_sbp_vault-0.3.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e83540d39f57d353009bf36875b378fe4994339ffdae6c40c7b1b4bc853cca9
BLAKE2b-256 checksum
How to use checksums
b3947820ca22c21653314573061903208b59cd2bd5bd9c2e8a14dbfb95d761b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Security for terrajinja-sbp-vault 0.3.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