General question, anybody actively using the vaulttransit secret backend? #1297
Unanswered
kgorskowski
asked this question in
Q&A
Replies: 4 comments 4 replies
-
That is what we do,
export VAULT_ADDR="https://vault......."
export VAULT_TOKEN="myTokenValue"
echo -n "<value>" | kapitan refs --write vaulttransit:path/to/secret/in/refs -t <target> -f -
parameters:
kapitan:
secrets:
vaulttransit:
auth: token
mount: some_mount
crypto_key: ${target_name}-key
always_latest: true
update_key: true
secrets-name:
some-creds:
string_data:
value: ?{vaulttransit:path/to/secret/in/refs||randomstr} |
Beta Was this translation helpful? Give feedback.
3 replies
-
Can you show the example of
kapitan inventory -t target -p kapitan.secrets
…On Sat, 1 Mar 2025, 08:25 Karsten Gorskowski, ***@***.***> wrote:
ok thanks again for your efforts. But again, it looks to me as if kapitan
for some reason is not picking up my
parameters.kapitan.secrets.vaulttransit block. the target_name is just an
exemplatory environment variable.
The same syntax works without problems if I use it with plain or base64
secrets. So in my mind if the syntax works with one secret backend I could
just drop in replace it with a different backend.
I dont know if I configure it at the wrong place or something but as I
only use it directly in a "target" yaml and the inventory looks valid to me
I am not sure where else I could put the vaulttransit configuration
parameters block. Maybe my kapitan experience is cursed but in this case I
just cannot pinpoint the error
—
Reply to this email directly, view it on GitHub
<#1297 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZB3RQMUWRIJ322TWSRRNT2SFVHLAVCNFSM6AAAAABYCSNYGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZVHEYDKMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Also, please join the kapitan slack channel on the kubernetes slack for
quicker interactions
On Sat, 1 Mar 2025, 09:11 Alessandro De Maria, ***@***.***>
wrote:
… Can you show the example of
kapitan inventory -t target -p kapitan.secrets
On Sat, 1 Mar 2025, 08:25 Karsten Gorskowski, ***@***.***>
wrote:
> ok thanks again for your efforts. But again, it looks to me as if kapitan
> for some reason is not picking up my
> parameters.kapitan.secrets.vaulttransit block. the target_name is just
> an exemplatory environment variable.
> The same syntax works without problems if I use it with plain or base64
> secrets. So in my mind if the syntax works with one secret backend I could
> just drop in replace it with a different backend.
> I dont know if I configure it at the wrong place or something but as I
> only use it directly in a "target" yaml and the inventory looks valid to me
> I am not sure where else I could put the vaulttransit configuration
> parameters block. Maybe my kapitan experience is cursed but in this case I
> just cannot pinpoint the error
>
> —
> Reply to this email directly, view it on GitHub
> <#1297 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHZB3RQMUWRIJ322TWSRRNT2SFVHLAVCNFSM6AAAAABYCSNYGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZVHEYDKMI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the love of good I cannot get it working and there are not a lot of examples or discussions about it around.
The vault backend is working without any problems as we use it with sops.
But the kapitan params configuration doesnt seem to be picked up when I try to write refs.
Firstly the vault auth isn't picked up and gives me the misleading information that the auth for "vaultkv" is missing (I guess a bug in the codebase). Can be solved by providing "vault-auth" on the cli.
But now I am stuck at trying to point to the right mount and key. And it is just not picking up my configuration.
So, if anyone is actively working with this, I would love to get some directions.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions