question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chaining ACL grants on Storage does not work.

See original GitHub issue

So from what I can tell this doesn’t work.

Example:

acl.all().grant_read().revoke_write()

None of the grant methods return an object to chain to. See: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/486163e5378897961bc3cf367062c8b10cf7ce3e/storage/google/cloud/storage/acl.py#L148-L170

Should I just take this out of the docs?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tseavercommented, Mar 22, 2017

Those docs may be leftovers from some early development: we’ve mostly avoided the return self chaining thing on purpose.

0reactions
lukesneeringercommented, Mar 23, 2017

Has this been done?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ensure bucket ACL does not grant WRITE permission to AWS ...
An S3 bucket that allows WRITE access to AWS users allows attackers to create, overwrite and delete objects within the bucket, which can...
Read more >
Get, set, or change bucket and/or object ACLs | Cloud Storage
The "acl ch" (or "acl change") command updates access control lists, similar in spirit to the Linux chmod command. You can specify multiple...
Read more >
Replicating objects - Amazon Simple Storage Service
S3 Storage Lens is a cloud-storage analytics feature that you can use to gain ... bucket doesn't own the object in the bucket,...
Read more >
Managing a Grant | ACL Administration for Community Living
To help you administer your grant award, the following sections offer general information, as well as links to ACL and other federal resources....
Read more >
Configure Hive-HDFS ACL Sync | CDP Private Cloud
RMS ACL sync is designed to work on a specific pair of HDFS and Hive Ranger services. Therefore, it is important to identify...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found