Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mapping Kubernetes to Policy Boundaries - Need Help

kranthi
Visitor

Hi everyone,

does anyone know how to map Kubernetes to policy boundaries? I want users with relevant policies to view data in their console using the latest Kubernetes UI.

12 REPLIES 12

DanielS
DynaMight Guru
DynaMight Guru

Hello @kranthi. Yes you can do it based on:

 

  • storage:k8s.namespace.name - The name of the namespace.
    operators: =, IN, startsWith, MATCH
  • storage:k8s.cluster.name - The name of the cluster.
    operators: =, IN, startsWith, MATCH

for metrics, logs, spans, bizevents and events among others, please check here:

https://docs.dynatrace.com/docs/shortlink/iam-policystatements 

 

Dynatrace Certified Professional @ www.dosbyte.com

Hi @DanielS , Thank you for your replay

Yes, but we don't have limited name spaces right might have different namespaces like DB, Dynatrace, frontend, backend services, etc.

If possible, can i get examples of this situation along with screenshot


Yes look at this policy and 2 different possible boundaries.
DanielS_0-1761936624369.png

 

This policy is going to allow read metrics for the given namespaces detailed in IN in the boundary or the cluster names.

Dynatrace Certified Professional @ www.dosbyte.com

@DanielS  these read permissions are already added to, but the problem is with policy boundaries, because for each cluster we have multiple namespaces for each cluster, and i could not be able to decide the which name entities user is actually looking. Also, this can't change by immediately as well (Names of a Namespaces)
Kindly look at the below screenshot, maybe you will get a more idea about.

kranthi_0-1761937125961.png

 

 

Just to confirm, do you mean that the namespace names remain the same across different clusters?

Dynatrace Certified Professional @ www.dosbyte.com

Nope, We have multiple clusters...In policy boundaries how could i mention which all those namespaces in boundaries to apps to get visible without any restriction on their clusters information

Are you trying to restrict the visibility so that users can only see the specific Kubernetes clusters you define?

Dynatrace Certified Professional @ www.dosbyte.com

Not to restrict the visibility of namespace wise. we wanted to restrict the users with cluster wise. We have couple of applications with many clusters. So, we wanted to restrict the user up to their application clusters only.

Okay @kranthi , so if you want to restrict by cluster, why isn't the cluster boundary working for you? There's something I still don't understand about your problem.

Dynatrace Certified Professional @ www.dosbyte.com

You mean to say do we need to create separate boundary for the cluster's boundary

I mean that if you associate the cluster policy and its boundary to a group, and only grant access to those users who share those specific applications, you’ll ensure that they can only access information related to those clusters — depending on whether you choose metrics, logs, etc.

Dynatrace Certified Professional @ www.dosbyte.com

kranthi
Visitor

Hi @DanielS , Any suggestion for issue

Featured Posts