Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for credhub #51

Open
gberche-orange opened this issue Jan 16, 2018 · 1 comment
Open

Add support for credhub #51

gberche-orange opened this issue Jan 16, 2018 · 1 comment

Comments

@gberche-orange
Copy link
Member

With upcoming credhub support in cloudfoundry, see specs https://docs.google.com/document/d/1Sp7gNqyOyJgsaMUIGde6BCvSiqwvSQQK9PNdZycIBnM/edit# the brokers are expected to move from returning plain credentials such as

{
  "credentials": {
    "access_token_uri": "https://p-example-services.cf.example.com/oauth/token",
    "client_id": "p-example-server-876cd13b-1564-4a9a-9d44-c7c8a6257b73",
    "client_secret": "rU7dMUw6bQjR",
    "uri": "https://config-86b38ce0-eed8-4c01-adb4-1a651a6178e2.apps.example.com"
    }
}

into credhub references of the following form, after having written them into credhub:

{
  "credentials": {
    "credhub-ref": "((/c/p-example-services/p-example-server/86b38ce0-eed8-4c01-adb4-1a651a6178e2/credentials-json))"
  }
}

Static-creds should support a syntax allowing users to specify credhub-ref (pointing to credentials that are populated out of band by static-creds operator). At binding time, the broker should grant the bound application credhub permission to fetch the associated reference.

@gberche-orange
Copy link
Member Author

gberche-orange commented Mar 25, 2018

See somewhat related https://github.com/cloudfoundry/secure-credentials-broker and associated stories in the services api backlog This broker is similar to a user-provider-service but instead stores user-provided-credentials (at service provision time using arbitrary params) into credhub in order to securely serve them to apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant