-
Notifications
You must be signed in to change notification settings - Fork 277
Use ServiceIdentity type in catalog APIs instead of service.K8sServiceAccount #2218
Comments
This issue needs further discussions and review. The motivation to create this issue is summarized below.
This change might look trivial on the eye but isn't. There is a lot of refactoring that needs to be done to complete this task. |
@shashankram I'd like to resolve this one step at a time. To me this is a baby step forward:
|
@draychev thanks for taking this on. One thing I wanted to clarify in this issue is the distinction between So for multicluster environments where the trust domain for a service in another cluster could be of the form |
The plan so far:
|
All catalog APIs have been updated to use ServiceIdentity. |
The type
identity.ServiceIdentity
was introduced to abstract the the identities assigned to services. Use this in catalog APIs instead ofk8s.ServiceAccount
to not leak Kubernetes primitives and identity abstraction across theMeshCataloger
API boundaries.This is where the current K8sServiceAccount is declared: https://github.com/openservicemesh/osm/blob/v0.8.2/pkg/service/types.go#L21-L25
Here is the definition of the new type we would like to use instead of K8sServiceAccount: https://github.com/openservicemesh/osm/blob/v0.8.2/pkg/identity/types.go#L5
Service identities can be abstracted without leaking kubernetes identity primitives to XDS code.
Related tasks:
The text was updated successfully, but these errors were encountered: