Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iam policy on bucket - not working #1257

Open
tomaszmacnar opened this issue Jul 19, 2023 · 1 comment
Open

Iam policy on bucket - not working #1257

tomaszmacnar opened this issue Jul 19, 2023 · 1 comment

Comments

@tomaszmacnar
Copy link

I use fake-gcs-server in my integration tests.
I create bucket and after it i try to get IAm policy on it. After call (java):

storage.getIamPolicy("XXX", Storage.BucketSourceOption.requestedPolicyVersion(GCP_POLICY_VERSION));

and http return:
GET http://localhost:4443/storage/v1/b/XXX/iam?optionsRequestedPolicyVersion=3
Not Found
When i get bucket info it return OK:
GET http://localhost:4443/storage/v1/b/XXX

Is this mock not support iam ?

@fsouza
Copy link
Owner

fsouza commented Jul 29, 2023

Correct, that's currently not supported. With bucket attributes (#1174), it should be possible though.

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

No branches or pull requests

2 participants