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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terrajinja_sbp_vault-0.3.0.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terrajinja_sbp_vault-0.3.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file terrajinja_sbp_vault-0.3.0.tar.gz.

File metadata

  • Download URL: terrajinja_sbp_vault-0.3.0.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.5

File hashes

Hashes for terrajinja_sbp_vault-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f18b11fb4d00471b72b2e64207378540d7674a2d5da1318eda814474458f39dc
MD5 cde0ea4b12a0c3b43bdd43822864dd52
BLAKE2b-256 10402c33701fdbcf5f30eeb40f2ee2a48cb46e4f420af47b414999bbcc845ce9

See more details on using hashes here.

File details

Details for the file terrajinja_sbp_vault-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for terrajinja_sbp_vault-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e83540d39f57d353009bf36875b378fe4994339ffdae6c40c7b1b4bc853cca9
MD5 1c96b3f44ae6676b6f0fc14708eeaed4
BLAKE2b-256 b3947820ca22c21653314573061903208b59cd2bd5bd9c2e8a14dbfb95d761b4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 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