Skip to content

Support pipeline level credential manager #4579

Closed

Description

@evanchaoli

What challenge are you facing?

A concourse may serve a lot of pipelines, but only one credential manager can be configured to Concourse. Some team/pipeline may need a third Vault. Though there is a Vault resource type, it's not always working, for example, Vault resource type cannot interpolate vars, in turn not able to redact secrets.

More seriously, vault resource type is a security hole. If a job fails, all container will be retained, then somebody may hijack into the Vault resource type's get container, and see all secrets.

What would make this better?

My proposal is to add a section in pipeline yaml, like this:

cred-managers:
- name: myvault
   type: vault
   url: https://xxxx
   username: xxx
   token: ((myvault-token))

Then when run build of this pipeline, it will gets multiple credential managers, meaning it may interpolate vars from multiple Vaults.

Are you interested in implementing this yourself?

Our clusters all use Vault. I can contribute a first version of implementation that supports Vault only.

Activity

  1. jamieklassen commented on Oct 8, 2019

    @jamieklassen

    There's really an interesting history around this topic, starting with concourse/rfcs#21 and evolving into concourse/rfcs#32. I suspect that the 'Projects' notion should capture this desire pretty nicely.

  2. evanchaoli commented on Oct 9, 2019

    @evanchaoli
    ContributorAuthor

    I have read those two RFCs. As Concourse supports only one level of team, no sub-team support, a team may be very big, so team level credential manager is still not flexible enough.

    Also, adding pipeline level credential manager aligns with directory of project. Basically project offers a way to share resource among pipelines in a project, where credential manager is kind of resource. So when implementing project, pipeline level credential manager should be easy to be ported to project level.

    A bonus is, with my PR #4311, it would be very easy to add pipeline level credential manager.

    @pivotal-jamie-klassen and @vito WDYT?

  3. changed the title [-]Support pipeline leve credential manager[/-] [+]Support pipeline level credential manager[/+] on Oct 17, 2019
  4. added this to the v5.8.0 milestone on Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions