1
0
Fork
You've already forked kustomize-pass
0
[Mirror of https://git.hanse.de/lilly/kustomize-pass] kustomize generator and transformer plugin for pass managed secrets
  • Rust 97.4%
  • Shell 2.6%
2024年10月13日 20:32:08 +02:00
.woodpecker convert github actions to woodpecker ci 2024年10月13日 20:32:08 +02:00
examples add support for plain data in PassSecrets 2022年06月28日 16:16:49 +02:00
hack change hacky ubuntu compile script to produce debug binary 2022年06月30日 23:32:43 +02:00
src update libpass to v0.4.0 2022年06月30日 23:39:02 +02:00
.gitignore setup basic rust project 2022年06月14日 23:05:37 +02:00
.pre-commit-config.yaml setup pre-commit and fix errors 2022年06月21日 11:33:47 +02:00
Cargo.lock Update Rust crate serde_json to v1.0.128 2024年10月12日 14:12:26 +00:00
Cargo.toml Update Rust crate serde to 1.0.140 2022年07月29日 14:55:12 +02:00
changelog.md reset changelog for new development iteration 2022年06月30日 21:55:02 +00:00
LICENSE setup basic rust project 2022年06月14日 23:05:37 +02:00
README.md update krm function bug disclaimer 2023年04月13日 14:28:08 +02:00
renovate.json update renovate config 2024年10月13日 20:15:11 +02:00
schema.openapi.yaml add support for plain data in PassSecrets 2022年06月28日 16:16:49 +02:00

kustomize-pass

crates.io Badge Maintenance Status Badge

A kustomize plugin that is able to generate secrets by extracting them from pass or replace placeholders in other manifests from pass.

Disclaimer

kustomize currently recently had an issue regarding the execution of krm functions (this plugin is one) which prevents the execution of this plugin under some circumstances. The issue has been resolved in kustomize v5.0.0. See kustomize PR #4654 for more details.

Installation

For installation, this package depends on gpgme-rs which requires the gpgme library and its development files (e.g., headers, gpgme-config) to be installed during the build process. You should install these using your operating systems package manager.

Afterwards, you can install the package either using one of the provided binaries from the releases page or compile and install it yourself by running

cargo install kustomize-pass

Usage

Once kustomize-pass is installed, you can use the generator by providing kustomize with the following example resource manifests.

A detailed description of the supported input manifest is provided in openapi format in the schema.openapi.yaml. It can also be generated and printed on-demand by the application.

# generator.ymlapiVersion:ftsell.de/v1beta1kind:PassSecretmetadata:name:example-secretannotations:config.kubernetes.io/function:| exec:
 path: kustomize-passbehavior:create # can be create, merge or replacesource:# can also be unspecified to use the store at ~/.password-storeurl:https://github.com/example-user/example-repo.gitdata:example-key:example-pass-name
# kustomization.ymlapiVersion:kustomize.config.k8s.io/v1beta1generators:- generator.yml

When running the shown example and if you have a password named example-pass-name in your password store, the following resulting resource will be produced:

apiVersion:v1kind:Secretmetadata:name:example-secretdata:example-key:foobar123