|
| 1 | +--- |
| 2 | + date: 2024-01-16 |
| 3 | + title: More Secrets Options Now Available with Validated Patterns |
| 4 | + summary: Validated Patterns now supports alternatives to both HashiCorp Vault and the External Secrets Operator |
| 5 | + author: Martin Jackson |
| 6 | + blog_tags: |
| 7 | + - patterns |
| 8 | + - secrets |
| 9 | +--- |
| 10 | + |
| 11 | +# More Secrets Options Now Available with Validated Patterns |
| 12 | + |
| 13 | +## Overview |
| 14 | + |
| 15 | +## The "vault" Backend - Unchanged Interface, New plumbing |
| 16 | + |
| 17 | +## The "kubernetes" Backend *new* |
| 18 | + |
| 19 | +## The "none" Backend *new* |
| 20 | + |
| 21 | +## How to Use a non-default Backend |
| 22 | + |
| 23 | +## Using the old system - The `legacy-load-secrets` Makefile target |
| 24 | + |
| 25 | +The existing vault-utils codepath is available via the `legacy-load-secrets` |
| 26 | +Makefile target. If secrets loading fails, or you just want to use the other |
| 27 | +system, you can run `make legacy-load-secrets` after `make install` and it will |
| 28 | +run those scripts and the Ansible playbooks and roles associated with them. |
| 29 | + |
| 30 | +## Deprecation of v1.0 Secrets |
| 31 | + |
| 32 | +The v1.0 secrets format has not been used in the Validated Patterns framework |
| 33 | +for over a year now. The v2.0 framework is a strict superset of the v1.0 |
| 34 | +framework. Support for the v1.0 framework is still available via the |
| 35 | +`legacy-load-secrets` code path, but this may be removed in the future. |
| 36 | + |
| 37 | +## Updates to the Secrets v2.0 Schema |
| 38 | + |
| 39 | +### Top-level Additions |
| 40 | + |
| 41 | +#### `secretStoreNamespace` |
| 42 | + |
| 43 | +#### `defaultAnnotations` |
| 44 | + |
| 45 | +#### `defaultLabels` |
| 46 | + |
| 47 | +### Per-secret Additions |
| 48 | + |
| 49 | +#### `targetNamespaces` |
| 50 | +#### `labels` |
| 51 | +#### `annotations` |
| 52 | + |
| 53 | +## Under the Hood - Python and Ansible Code |
| 54 | + |
| 55 | +### The process_secrets playbook |
| 56 | +### parse_secrets_info Ansible Module |
| 57 | +### vault_load_parsed_secrets Ansible Module |
| 58 | +### The k8s_secret_utils Ansible Role |
| 59 | +### Changes to to vault_utils Ansible Role |
| 60 | + |
| 61 | +## Developing a new backend |
0 commit comments