-
Notifications
You must be signed in to change notification settings - Fork 21
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
be able to use secrets for credentials #87
Conversation
This works for me. I have a secret like this:
This is referenced in the
and also in the config-map for the agent:
|
a436a39
to
8b3eac0
Compare
I just changed this so it creates our own clusterrole that just gives "get/secrets" permission. It gets assigned to our service account. I tested it and it works. |
99cb1fe
to
2439545
Compare
I took out the granting of the full cluster-reader role. We do not need the vast majority of the permissions cluster-reader provides. So, instead, I create much more limited cluster role and assign only that role to the agent. I tested it and it looks to be working. See the deploy/openshift/hawkular-openshift-agent.yaml for the ClusterRole that is created. |
Rather that give the agent full cluster-reader role, this creates a cluster role and assigns it to the agent which ends up only giving the agent what it needs and no more.
2439545
to
4d53bd8
Compare
|
||
openshift-undeploy: | ||
@echo Undeploying the Agent from OpenShift | ||
oc delete all,secrets,sa,templates,configmaps,daemonsets --selector=metrics-infra=agent -n openshift-infra | ||
oc delete all,secrets,sa,templates,configmaps,daemonsets,clusterroles --selector=metrics-infra=agent -n openshift-infra | ||
oc delete clusterroles hawkular-openshift-agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line that deletes the cluster role can be deleted once this is fixed: openshift/origin#12450
There is already a PR that fixes it, just wait for it to be merged: openshift/origin#12461
A PoC that allows endpoint credentials to refer to a OS secret.