GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — storage: acls by stephenplusplus · Pull Request #304 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Nov 17, 2014

Copy link
Copy Markdown
Contributor

RE: #285

Docs:

  • http://stephenplusplus.github.io/gcloud-node/#/docs/master/storage/bucket
  • http://stephenplusplus.github.io/gcloud-node/#/docs/master/storage/file

bucket.acl.add({ scope: scope, role: role }, callback)
bucket.acl.delete({ scope: scope }, callback)
bucket.acl.get( [ { scope: scope [, generation: int ] },] callback)
bucket.acl.update({ scope: scope, role: role [, generation: int ] }, callback)

These methods are all available with bucket.acl.default as well, to act on the default object ACLs.

It didn't work as I originally thought, such as that I can update many roles at once, or add many roles to one scope. Instead of aliasing scopes like "this is an email", "this is a group", or the ones like "allAuthenticated" and "allUsers", we could just borrow the terms and schemes already in place via the API (e.g. "[email protected]"). So this is an almost transparent API passthrough, with minor massaging to the input.

If you guys like other names better than add/delete/get/update, I'm happy to update :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@stephenplusplus
stephenplusplus force-pushed the spp--storage-acl branch from a8933d7 to 9b85196 Compare November 17, 2014 23:57
ryanseys
ryanseys reviewed Nov 18, 2014
View reviewed changes
Comment thread lib/storage/acl.js Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Nov 18, 2014

Copy link
Copy Markdown
Contributor Author

Added a refactor that's much less weird, hopefully :) stephenplusplus@aada90d

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryanseys

ryanseys commented Nov 18, 2014

Copy link
Copy Markdown
Contributor

Ah, this looks much better :) Thanks for rethinking this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Nov 18, 2014

Copy link
Copy Markdown
Contributor Author

Thanks for making me! I like PR-ing early for just that reason :)

Waiting on Travis to run, but if everything goes well, this is ready for further review & merging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ryanseys
ryanseys reviewed Nov 18, 2014
View reviewed changes
Comment thread lib/storage/acl.js

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus added a commit to stephenplusplus/gcloud-node that referenced this pull request Nov 18, 2014
@stephenplusplus
explain default acls
467f08b
googleapis#304 (comment)
stephenplusplus added a commit to stephenplusplus/gcloud-node that referenced this pull request Nov 18, 2014
@stephenplusplus
add regression test for setMetadata
526a8cf
googleapis#304 (comment)
ryanseys
ryanseys reviewed Nov 18, 2014
View reviewed changes
Comment thread lib/storage/acl.js Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Nov 19, 2014

Copy link
Copy Markdown
Contributor Author

Updated with constants + options object in place of multiple params.

Docs updated.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed Nov 19, 2014
View reviewed changes
Comment thread docs/components/docs/docs.js

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus force-pushed the spp--storage-acl branch from 2520a6d to 9453d09 Compare November 21, 2014 15:19
stephenplusplus added a commit to stephenplusplus/gcloud-node that referenced this pull request Nov 21, 2014
@stephenplusplus
explain default acls
a959240
googleapis#304 (comment)
stephenplusplus added a commit to stephenplusplus/gcloud-node that referenced this pull request Nov 21, 2014
@stephenplusplus
add regression test for setMetadata
e164858
googleapis#304 (comment)
@stephenplusplus

stephenplusplus commented Nov 21, 2014

Copy link
Copy Markdown
Contributor Author

9453d09 - did I miss anything?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ryanseys
ryanseys reviewed Nov 21, 2014
View reviewed changes
Comment thread test/storage/acl.js Outdated

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryanseys

ryanseys commented Nov 21, 2014

Copy link
Copy Markdown
Contributor

LGTM! 👍 minor issues aside, looks 🚢able.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus force-pushed the spp--storage-acl branch from 98bcd6e to 3f0f417 Compare November 24, 2014 15:35
@stephenplusplus
storage: support acls
c158f8f
@stephenplusplus
stephenplusplus force-pushed the spp--storage-acl branch from 3f0f417 to c158f8f Compare November 24, 2014 15:36
sofisl pushed a commit that referenced this pull request Feb 5, 2026
@yoshi-automation @JustinBeckwith
chore: update year in the license headers. (#304)
b3f3603
chore: update year in the license headers
GautamSharda pushed a commit that referenced this pull request Feb 5, 2026
@renovate @JustinBeckwith
fix(deps): update dependency @google-cloud/common to ^0.31.0 (#304)
31d5206
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
sofisl pushed a commit that referenced this pull request Feb 17, 2026
@yoshi-automation @JustinBeckwith
chore: update year in the license headers. (#304)
ce7dca8
chore: update year in the license headers
@sofisl sofisl mentioned this pull request Feb 17, 2026
migrate code from googleapis/nodejs-datastore #7263
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Feb 23, 2026
@renovate @JustinBeckwith
fix(deps): update dependency @google-cloud/common to ^0.31.0 (#304)
91586dc
@GautamSharda GautamSharda mentioned this pull request Feb 23, 2026
migrate code from googleapis/nodejs-error-reporting #7294
Closed
sofisl pushed a commit that referenced this pull request Feb 24, 2026
@JustinBeckwith @stephenplusplus
remove that whitespace (#304)
50769cf
GautamSharda pushed a commit that referenced this pull request Feb 26, 2026
@renovate @JustinBeckwith
fix(deps): update dependency @google-cloud/common to ^0.31.0 (#304)
7533670
@GautamSharda GautamSharda mentioned this pull request Feb 26, 2026
migrate code from googleapis/nodejs-error-reporting #7308
Merged
4 tasks
This was referenced Feb 26, 2026
migrate code from googleapis/nodejs-firestore #7311
Closed
migrate code from googleapis/nodejs-firestore #7410
Merged
codyoss pushed a commit that referenced this pull request Mar 5, 2026
@gcf-owl-bot
fix: remove pip install statements (#1546) (#304)
8ad502d
because the tools are already installed in the docker image as of googleapis/testing-infra-docker#227
Source-Link: googleapis/synthtool@ab7384e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:bb493bf01d28519e82ab61c490c20122c85a7119c03a978ad0c34b4239fbad15
@codyoss codyoss mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-projectify #7511
Merged
GautamSharda pushed a commit that referenced this pull request Mar 5, 2026
@JustinBeckwith @jkwlui
chore(build): use the latest npm on windows for tests (#304)
1e89b2a
@GautamSharda GautamSharda mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-logging #7514
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Mar 5, 2026
@alexander-fenster
fix: make load handle imports properly (#304)
ed82fc7
@codyoss codyoss mentioned this pull request Mar 9, 2026
migrate code from googleapis/nodejs-paginator #7536
Closed
codyoss pushed a commit that referenced this pull request Mar 9, 2026
@gcf-owl-bot
chore: update github issue templates (#1085) (#304)
ea32164
@meltsufin meltsufin mentioned this pull request Mar 10, 2026
chore: migrate code from googleapis/nodejs-logging #7550
Merged
codyoss pushed a commit that referenced this pull request Mar 11, 2026
@gcf-owl-bot @codyoss
chore: update github issue templates (#1085) (#304)
9bb4da6
@codyoss codyoss mentioned this pull request Mar 11, 2026
migrate code from googleapis/nodejs-paginator #7590
Merged
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@JustinBeckwith
chore: include build in eslintignore (#304)
95da12a
@GautamSharda GautamSharda mentioned this pull request Mar 11, 2026
migrate code from googleapis/nodejs-pubsub #7592
Merged
4 tasks
sofisl added a commit that referenced this pull request Mar 13, 2026
@ParakhJaggi @sofisl
fix(teeny-request): update http-proxy-agent to v7 (#919)
715120b
## Summary
- Updates `http-proxy-agent` from `^5.0.0` to `^7.0.0` in
`packages/teeny-request`
- Updates `src/agents.ts` to use v7 named exports
(`HttpProxyAgent`/`HttpsProxyAgent`) and new constructor signature
`(proxy, opts)`
- Removes unused `import {parse} from 'url'`
- Updates test assertion for port type (string in v7 URL objects)

Note: `https-proxy-agent` was already at `^7.0.1` — this brings
`http-proxy-agent` in line.

## Motivation
`[email protected]` depends on `@tootallnate/[email protected]` which has a
vulnerability
([CVE-2026-3449](https://nvd.nist.gov/vuln/detail/CVE-2026-3449)) —
incorrect control flow scoping causes promises to hang indefinitely when
AbortSignal is used. `[email protected]` drops this dependency
entirely.

This was previously attempted in the archived `googleapis/teeny-request`
repo (PR #304) but closed due to Node 14 concerns. `teeny-request` now
requires Node >= 18, so this is no longer an issue.

Related: googleapis/teeny-request#365

## Test plan
- All 115 existing tests pass

Co-authored-by: sofisl <[email protected]>
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@JustinBeckwith
Enable no-var in eslint (#304)
43986f7
@GautamSharda GautamSharda mentioned this pull request Mar 23, 2026
migrate code from googleapis/nodejs-bigtable #7852
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@JustinBeckwith @GautamSharda
Enable no-var in eslint (#304)
df3be02
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@JustinBeckwith @shivanee-p
Enable no-var in eslint (#304)
2376d24
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@JustinBeckwith @thiyaguk09
Enable no-var in eslint (googleapis#304)
a5e9902
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@stephenplusplus @ryanseys @silvolu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.