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

Remove the need to include the proxy role in superUserRoles #125

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lhotari
Copy link
Contributor

@lhotari lhotari commented Jan 18, 2022

Fixes #124

Copy link
Contributor

@cdbartholomew cdbartholomew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -178,7 +178,7 @@ spec:
- name: ClusterName
value: "{{ template "pulsar.fullname" . }}"
- name: SuperRoles
value: {{ .Values.superUserRoles }}
value: "{{ .Values.superUserRoles }},{{ .Values.proxyRoles }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this SuperRoles env var do here? I see it in other templates.

Copy link
Contributor Author

@lhotari lhotari Jan 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lhotari lhotari marked this pull request as draft January 21, 2022 08:47
@lhotari
Copy link
Contributor Author

lhotari commented Jan 21, 2022

I'm starting to doubt this change. In the Pulsar docs it says
"You must authorize both the proxy role and the original principal to access a resource to ensure that the resource is accessible via the proxy. "
in https://pulsar.apache.org/docs/en/security-authorization/#proxy-roles

I'd assume that as long as the proxy has been authorized to pass on the client's principal, the broker would trust that information for doing the authentication decision. Why would all resources need to contain the proxy role?

pgier pushed a commit to pgier/datastax-pulsar-helm-chart that referenced this pull request Jul 13, 2022
Fixes datastax#125

### Motivation

The default images in the values.yaml are in docker hub. This PR allows us to provide image pull secrets for the containers which will allow us to get around Docker Hub's rate limiting if the nodes are not logged into Docker Hub.

### Modifications

Added a new template to generate `imagePullSecrets`, and included them in the deployments and statefulsets. This will only add them if they are specified under `images.imagePullSecrets`

### Verifying this change

- [] Make sure that the change passes the CI checks.
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

Successfully merging this pull request may close these issues.

superUserRoles shouldn't need to contain the proxy role
3 participants