-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Feature]: App Developer can see credentials from Service Bindings are projected onto kpack staging Pods #463
Comments
Pods
I added an issue to kpack here to point out that the ProvisionedService binding is not very well implemented, and doesn't log errors. For now, we will just bind the secret directly to the Image, since it doesn't seem that binding to CFServiceBindings will work very well. |
Note that Matt McNew opened this PR to allow us to grant kpack access to our ServiceBindings without reaching into kpack: buildpacks-community/kpack#922 |
Wow that was fast. Hypothetically, one long term benefit to actually using the |
#463 - Updates ServiceInstance Secret to include type - Updates BuildController to add ServiceBinding Co-authored-by: Clint Yoshimura <clinty@vmware.com> Co-authored-by: Julian Hjortshoj <hjortshojj@vmware.com>
There are small issues we noted with the initial implementation: 1- In order to have the secret be ingested by kpack we had to add the 2- There is a "closed door" problem with eventual consistency around the builds. If the secrets and bindings are created at the same time as the CFBuild- the first reconcile will silently complete potentially without the secrets. Since we never rebuild once a build is completed, the kpack image will never be updated unless you |
#463 - Updates ServiceInstance Secret to include type - Updates BuildController to add ServiceBinding Co-authored-by: Clint Yoshimura <clinty@vmware.com> Co-authored-by: Julian Hjortshoj <hjortshojj@vmware.com>
I think this is fine. I think the sequence of events in |
Blockers/Dependencies
No response
Background
As an App Developer
I want Credentials from Service Bindings for User-provided Service Instances to be accessible to kpack Pods when staging my app
So that service credential binding is available to buildpacks that might make use of it during staging
Acceptance Criteria
GIVEN I have one or more
CFServiceBindings
bindings bound to an appWHEN I initiate a new Build for my app
THEN I see the
CFServiceBindings
that are referred to by thespec.services
of theKpack Image
for that app/build. See: https://github.com/pivotal/kpack/blob/main/docs/servicebindings.mdAND I can see that the credentials in the UPSI/
CFServiceBinding
Secrets
are volume mounted in the Kpack stagingPod
when the build executesDev Notes
Resources:
The text was updated successfully, but these errors were encountered: