-
Notifications
You must be signed in to change notification settings - Fork 23
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 Java API client example #30
Comments
Hi @JfcAtCyberArk, there is a demo I worked on here, https://github.com/conjurdemos/dap-intro/tree/master/demos/java-api-client that may be useful for this issue It looks like we have a setup script to run it in openshift currently: https://github.com/conjurdemos/dap-intro/tree/master/demos/openshift-install However, I believe we're moving away from using this repo. We could migrate this demo over here perhaps, or something along those lines. @mdodell also wrote a demo that uses this api in a Kubernetes space, I believe. |
Hey @JfcAtCyberArk , |
Hey @BradleyBoutcher @sgnn7 ! Thanks for your answers. I realized I made a mistake: In kubernetes-conjur-demo there are 3 apps: secretless, summon-sidecar and summon-init. I was thinking about something like the below:
Thank you for sharing examples but I was more looking for a way to illustrate all our secrets delivery option with the same app. I would be happy to file a PR but would like to know what do you think about adding additional Java dependencies that might not be used if the app is integrated with Summon or Secretless. Thanks! JFC |
The purpose of this app is to enable demos where the secret values the app requires to communicate to the DB have been injected into the environment. It sounds like you want to use this app differently; where it will invoke the Java client to retrieve the secrets itself. I'm not opposed to having a default-off configuration flag added to this app that will have it retrieve the secrets itself (and inject them into env vars, maybe, for simplicity?) - I would prefer to keep the default flow so that the app looks for the secret vals in the env, however. Does that make sense? Can you think of a way to update this so that if, for example, If I've misunderstood your proposed change, please let me know. Thanks! |
Hi @izgeri, I am looking to answer this: "Where can I find a publicly available Docker image of a Java application that uses conjur-api-java?" My proposed change is just about adding a controller that would fetch a secret from Conjur (same idea as vulnerable controller) We could keep The datasource configuration could be done programatically and it could coexist with application.yml according to the overriding rules but it would require more changes and an update of the pom.xml aswell.
I do not have tested this second option though. Thanks, |
Is your feature request related to a problem? Please describe.
I would like to see https://github.com/cyberark/conjur-api-java integrated in this project because it would help to demonstrate how it works but could also benefit https://github.com/conjurdemos/kubernetes-conjur-demo where there are no API client example.
Describe the solution you would like
I would like to be able to demo secretless, summon and API client integrations with the same applications (and so same docker image). To do so, I was thinking about the addition of a "SecretController".
Describe alternatives you have considered
I considered using my own app but I do think one demo app could be leveraged for several integrations and I think the number of Git projects should remain as low as possible, not to be confusing.
Additional context
I've done it in a private project but would like to know your thoughts.
The text was updated successfully, but these errors were encountered: