1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-18 08:26:45 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Matt Leung
75fbaf91d9 Fix vault-k8s expected response type
Vault server response for lease_duration is an integer, rather than a string
2018-05-02 16:54:34 -07:00
Matt Leung
db698f9ef4 fixup: some comments, added opts test, address pr concerns 2018-04-27 14:22:20 -07:00
Matt Leung
c4fe6496b5 fixup: catch err from parseduration 2018-04-24 15:26:12 -07:00
Matt Leung
79428aa231 Enable Vault auth through kubernetes auth method
Added a feature to obtain the initial Vault token from the Kubernetes
auth method.

This works by making a request to the Vault server at the specified auth
method mount point's login path and presenting the JWT located in a file
on a running pod, along with the Kubernetes role to authenticate as.

Vault will then respond with a token and its TTL, if the request is valid.
2018-04-24 14:56:28 -07:00