簡體   English   中英

存儲服務可以訪問 Google Vault Buckets

[英]Can storage service access Google Vault Buckets

我正在嘗試編寫一個 Java 程序將 Vault 導出數據下載到 Google Cloud 存儲桶,因為導出數據在 2 周后被刪除。 Vault 數據與典型的 GCS 存儲桶和 object 身份相關聯,因此它可能存儲在 GCS 中。 It appears there are two Java client libraries, com.google.cloud.storage and com.google.api.services.storage which seem to do what I need but work in different ways and work with different authentication sources(credential(s) objects )。 如果我使用 com.google.api.services.storage 我可以讓一切正常工作,但只能使用最終用戶身份驗證流程。 但是,如果我使用 com.google.cloud.storage,即使使用與 com.google.Z8A5DA52ED1264447D359E70.0AC 相同的 ID 訪問,我也會在保管庫存儲桶上獲得未經授權的 403 我正在使用我的 Google Workspace ID,因為它可以訪問 Vault 存儲桶和 GCS 存儲桶。 One last point, com.google.api.services.storage Storage object is instantiated with a com.google.api.client.auth.oauth2.Credential object and com.google.cloud.storage works with com.google.auth.oauth2 .GoogleCredentials object。

總而言之,我可以使用任一客戶端庫來訪問 Vault 導出數據嗎?如果可以,我如何授予對 Vault 數據的訪問權限,以便 com.google.cloud.storage 庫可以訪問它。

通過使用服務帳戶憑據並委托給我的 Gsuite ID,我能夠使用 com.google.cloud.storage 讀取保險櫃存儲 object。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM