Repository navigation
Add documentation for KubernetesServiceAccountTokenAuthProvider - #570
Merged
michaeljmarshall merged 3 commits intoMay 12, 2023
Merged
michaeljmarshall merged 3 commits into
michaeljmarshall merged 3 commits into
Conversation
1 task done
1 task done
Anonymitaet
reviewed
May 10, 2023
Anonymitaet
left a comment
Member
There was a problem hiding this comment.
Thanks for your contribution! Have you previewed your changes and ensured everything goes as expected?
If not, please preview your changes locally and attach the screenshots in this PR. In this way, you can get your PR merged more quickly. Thanks!
|
|
||
| ### Enable Kubernetes Service Account Token Projection for Function Pod Authentication | ||
|
|
||
| The `KubernetesServiceAccountTokenAuthProvider` uses [Service Account Token Volume Projections](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection) to mount a token into the function's pod. The function worker and broker can verify this token using OpenID Connect. The primary benefit of this integration is that tokens have a short time to live, are managed by Kubernetes, and do not inherit the permission used to create the function. |
Member
There was a problem hiding this comment.
Suggested change
| The `KubernetesServiceAccountTokenAuthProvider` uses [Service Account Token Volume Projections](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection) to mount a token into the function's pod. The function worker and broker can verify this token using OpenID Connect. The primary benefit of this integration is that tokens have a short time to live, are managed by Kubernetes, and do not inherit the permission used to create the function. | |
| The `KubernetesServiceAccountTokenAuthProvider` uses [Service Account Token Volume Projections](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection) to mount a token into the function's pod. The function worker and broker can verify this token using OpenID Connect. The primary benefit of this integration is that tokens have a short time to live, are managed by Kubernetes, and do not inherit the permission used to create the function. |
| brokerClientTrustCertsSecretName: "my-secret-pulsar-broker-client-trust-certs" | ||
| ``` | ||
|
|
||
| The function pod deploys with the default Kubernetes Service Account for the target namespace. Because the service account name maps to the `sub` claim on the JWT projected into the pod's filesystem, all pods with the same service account will have the same permission within Pulsar. There is ongoing work to improve this integration. |
Member
There was a problem hiding this comment.
Suggested change
| The function pod deploys with the default Kubernetes Service Account for the target namespace. Because the service account name maps to the `sub` claim on the JWT projected into the pod's filesystem, all pods with the same service account will have the same permission within Pulsar. There is ongoing work to improve this integration. | |
| The function pod deploys with the default Kubernetes Service Account for the target namespace. Because the service account name maps to the `sub` claim on the JWT projected into the pod's filesystem, all pods with the same service account will have the same permission within Pulsar. There is ongoing work to improve this integration. |
Is Kubernetes Service Account a proper noun?
Member
Author
|
Thanks for your review @Anonymitaet. Yes, I rendered the changes locally to make sure they look right. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation
docThis PR adds docs for apache/pulsar#19888.