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 — How to access GCS bucket from another project? · Issue #1073 · googleapis/google-cloud-java

How to access GCS bucket from another project? #1073

New issue
Copy link
New issue
Copy link
Closed
Closed
How to access GCS bucket from another project?#1073
Copy link
Assignees
the1plummie

Description

@the1plummie
the1plummie
opened on Jun 23, 2016
Issue body actions

So I have files in a bucket BK1 created in gcloud project A, and I have appengine service running in project B. How do I configure BK1 bucket (or object) permissions so B's appengine service can access those files?

My sample code looks like this

        Storage storage = StorageOptions.defaultInstance().service();
        String filename = "foo.json";
        Blob blob = storage.get(BlobId.of("BK1", filename));
        if (blob == null) {
            return null;
        }
        System.out.println("blob content: " + new String(blob.content()));

I'm getting "login required" error.

I tried adding app engine default service account to BK1's permission, still not working either.
Any pointer would be appreciated.
Thx!

Activity

  1. mziccard commented on Jun 23, 2016

    @mziccard
    mziccard
    on Jun 23, 2016
    Contributor
    More actions

    Hi @the1plummie,

    which version of gcloud-java are you using? We have seen this "login required" issue before (see here). This should be fixed in 0.2.3 now.

    Also remember that to get blob content/metadata the app engine service account must also have (at least) READER permission to the blob itself.

  2. the1plummie commented on Jun 23, 2016

    @the1plummie
    the1plummie
    on Jun 23, 2016
    Author
    More actions

    Good point. I was using version 0.2.0. Confirmed it's fixed in 0.2.3. Thanks! 👍

  3. the1plummie
    closed this as completedon Jun 23, 2016
  4. JustinBeckwith
    assigned
    the1plummie
    on Feb 1, 2021
  5. github-actions
    added 2 commits that reference this issue on Sep 15, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.11 (…

    8a869f6

    chore(main): release 2.3.4 (#1067)

    6d152ca
  6. suztomo
    added 2 commits that reference this issue on Feb 1, 2023

    deps: update dependency io.grpc:grpc-bom to v1.52.1 (#1073)

    1a64265

    chore(main): release 2.9.2 (#1076)

    e5feabf
  7. diegomarquezp
    added 2 commits that reference this issue on Jul 24, 2025

    chore: Update generation configuration at Thu Jul 24 02:39:20 UTC 2025 (

    abbb5a3

    chore(main): release 1.63.0 (#11681)

    7434549
  8. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    230eaef
  9. chingor13
    added 2 commits that reference this issue on Jan 6, 2026

    deps: update dependency com.google.cloud:google-cloud-logging to v3.1…

    ff1ed3d

    chore(main): release 0.130.12-alpha (#1076)

    3d94312
  10. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    1dab764
  11. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(deps): update dependency com.google.http-client:google-http-cli…

    1a9d358
  12. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    5e0793f
  13. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(deps): update dependency com.google.http-client:google-http-cli…

    ca78ba1
  14. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.9.1-SNAPSHOT (googleapis#1073)

    15dfb2c
  15. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-nio to v…

    99dfbe1
  16. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-nio to v…

    8700f81
  17. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.116.3 (#1073)

    81f952b

    chore(main): release 1.116.3 (#1073)

    ad8eb6a
  18. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: release 2.3.1-SNAPSHOT (googleapis#1073)

    0781551
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @the1plummie
    the1plummie

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.