# How to (easily) deny access for bucket containing secure data ?

**URL:** <https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216>\
**Category:** Open Q&A\
**Tags:** data-privacy-and-product-security, iam, policy, access-management\
**Created:** [December 5, 2024, 2:58pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216 "2024-12-05T14:58:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josef\_solnicky](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/josef_solnicky/32/31968_2.png) [@josef\_solnicky](https://community.dynatrace.com/u/josef_solnicky)\
**Post date:** [December 5, 2024, 2:58pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/1 "2024-12-05T14:58:43Z")

</div>

We created log bucket for secure data + Allow policy for special group - but probably because of default policy “Storage Logs Read” - anyboddy still can access those logs.  
Cannot find any example in Docs.

Is there any easy solution ? Or do we need to DENY access from other groups ??

BR, Josef

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 5, 2024, 6:06pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/2 "2024-12-05T18:06:40Z")

</div>

Hi&nbsp;[@josef\_solnicky](https://community.dynatrace.com/user/9567)

PFA Dynatrace Resource that contains answer to the related storage policy:

- [IAM policy reference — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/identity-access-management/permission-management/manage-user-permissions-policies/advanced/iam-policystatements#storage)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [December 5, 2024, 8:49pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/3 "2024-12-05T20:49:19Z")

</div>

[@josef\_solnicky](https://community.dynatrace.com/user/9567),

This is my usual strategy among my clients, but I’m also open to new ideas:

1. Logs for each group/application goes into certain buckets.

2. No one has access to global logs (yeah, except adminns)

3. I give the following minimal policies to each group. Of course, you can add other functionalities, but this is the bare minimum I’ve got working. I still have to work on hardening the last two lines. Please notice you have to define the condition for storage:logs:read

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 6, 2024, 2:05pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/4 "2024-12-06T14:05:30Z")

</div>

Thanks [@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;for detailed description.

---

<div class="post-metadata">

**Author:** ![josef\_solnicky](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/josef_solnicky/32/31968_2.png) [@josef\_solnicky](https://community.dynatrace.com/u/josef_solnicky)\
**Post date:** [December 10, 2024, 7:44am UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/5 "2024-12-10T07:44:02Z")

</div>

Thank you Antonio !

Trying to implement it in first case - in fact just the log part now&nbsp;  
&nbsp; &nbsp; ALLOW storage:buckets:read WHERE storage:bucket-name = “special\_bucket”;  
Plus removing the “Read Logs” and “Environment role - View logs” policies.

BR, Josef

---

<div class="post-metadata">

**Author:** ![josef\_solnicky](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/josef_solnicky/32/31968_2.png) [@josef\_solnicky](https://community.dynatrace.com/u/josef_solnicky)\
**Post date:** [January 22, 2025, 2:15pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/6 "2025-01-22T14:15:20Z")

</div>

Hi Antonio,  
how you are defining access to PARTICULAR standard entities and metrics - hosts, processes, services, requests, traces, apps, user actions ? Via policy boundaries ?  
Are you still using management zones ?  
BR, Josef

---

<div class="post-metadata">

**Author:** ![panumjp](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@panumjp](https://community.dynatrace.com/u/panumjp)\
**Post date:** [March 17, 2025, 2:40pm UTC](https://community.dynatrace.com/t/how-to-easily-deny-access-for-bucket-containing-secure-data/49216/7 "2025-03-17T14:40:49Z")

</div>

Josef, did you find solution for that? I am currently trying to figure out what is the best way to control access to entities and data in Kubernetes, Problems and Logs application.

I believe this is a very common use case, yet I haven’t been able to find any good examples!
