Skip to content

Dont just create but check if exists or not#573

Open
s4mur4i wants to merge 1 commit intoderailed:masterfrom
peak:master
Open

Dont just create but check if exists or not#573
s4mur4i wants to merge 1 commit intoderailed:masterfrom
peak:master

Conversation

@s4mur4i
Copy link

@s4mur4i s4mur4i commented Feb 10, 2026

We were updating and v0.21.6, and one behaviour change we noticed is that we always try to create, and see if we get already exists.
For our use case this is not a good practice, so implemented a headbucket call.
We dont provide popeye with permission to create buckets, but create buckets through IaC.
We dont want to give popeye any permission to create buckets, as there is no requirement for it, and it will be flagged as an unused permission from iam access analyzer.

This just implements a headbucket logic, to check if bucket exists or not. if it does it continues. If we use this method then the createbucket logic can also be simplified, since we dont need to test if exists or not, but i didnt think I should decide alone on it, or maybe it can be improved in seperate pr.

@s4mur4i
Copy link
Author

s4mur4i commented Feb 13, 2026

@derailed Can we have check on the PR if you have possibility please?
Thank you

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.

1 participant