Skip to content

Enable to versioning credential with vault. #2374

Closed

Description

@cappyzawa

Feature Request

What challenge are you facing?

I and my company users want to use vault's versioning function.
Vault has versioning function enabled from v0.10.0(hashicorp/vault#4155).

But the version of vault currently used by this product is 0.9.6.

A Modest Proposal

  1. Upgrade vault
  2. When using kv(ver2) as secret backend of vault, the path to read changes from concourse/team/foo to concourse/data/team/foo
  3. In order to maintain compatibility, it is necessary to change the path to be read by secret backend.

Activity

  1. FraserPol commented on Nov 30, 2018

    @FraserPol

    +1

  2. emcniece commented on Jan 7, 2019

    @emcniece

    Very much needed - we can't use the recent Vault versions without it. Testing with Vault v1.0.1

    There is a vault-path-prefix config parameter that defaults to /concourse - could this be modified to /concourse/data?

    Edit: the answer is "no", you can't just CONCOURSE_VAULT_PATH_PREFIX=/concourse/data :(

    Without CONCOURSE_VAULT_PATH_PREFIX:

    >_ install-job
    Expected to find variables: my-vault-secret
    

    With CONCOURSE_VAULT_PATH_PREFIX=/concourse/data:

    >_ install-job
    yaml: unmarshal errors:
      line 5: cannot unmarshal !!map into string
    
  3. emcniece commented on Jan 8, 2019

    @emcniece

    It looks like solving this is just a matter of updating the vaultapi "github.com/hashicorp/vault/api" package dependency. https://github.com/hashicorp/vault/tree/master/api

  4. eedwards-sk commented on Jan 16, 2019

    @eedwards-sk

    I would also like support for v2 / versioning backend

    since it's not uncommon in a ci environment with vault to automate the provisioning of secrets where you may never see the real value, it's also possible to accidentally destroy that auto-generated secret

    having versioning support would allow for easier DR scenarios with a lot of dynamically generated secrets

  5. vito commented on Jan 16, 2019

    @vito
    Contributor
  6. cappyzawa commented on Jan 16, 2019

    @cappyzawa
    Author

    I think this is scoped https://github.com/concourse/rfcs/issues/5.

    The current implementation forces users to use the "generic" backend, if they're using recent releases of Vault.

    The claim of this issue is that we want to activate kv(ver2) as well as generic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions