google-cloud-platform

AppEngine firewall for the particular service

丶灬走出姿态 提交于 2021-02-08 15:14:34
问题 I have to configure a firewall for the particular service from my AppEngine apps. Do you know how can I do it? As far as I see App engine firewall works for all services Thanks in advance 回答1: It's not possible to do, and it has been previously raised in the Public Issue Tracker. As mentioned there, your best choice would be to get that service 'out' of your proyect, as in deploy it in a different project, and there, use the firewall rules that you want to use. 来源: https://stackoverflow.com

AppEngine firewall for the particular service

自闭症网瘾萝莉.ら 提交于 2021-02-08 15:13:22
问题 I have to configure a firewall for the particular service from my AppEngine apps. Do you know how can I do it? As far as I see App engine firewall works for all services Thanks in advance 回答1: It's not possible to do, and it has been previously raised in the Public Issue Tracker. As mentioned there, your best choice would be to get that service 'out' of your proyect, as in deploy it in a different project, and there, use the firewall rules that you want to use. 来源: https://stackoverflow.com

Listing all public links for all objects in a bucket using gsutil

妖精的绣舞 提交于 2021-02-08 15:05:15
问题 Is there a way to list all public links for all the objects stored into a Google Cloud Storage bucket (or a directory in a bucket) using Cloud SDK's gsutil or gcloud ? Something like: $ gsutil ls --public-link gs://my-bucket/a-directory 回答1: Public links for publicly visible objects are predictable. They just match this pattern: https://storage.googleapis.com/BUCKET_NAME/OBJECT_NAME . gsutil doesn't have a command to print URLs for objects in a bucket, but it can just list objects. You could

Listing all public links for all objects in a bucket using gsutil

爱⌒轻易说出口 提交于 2021-02-08 15:03:56
问题 Is there a way to list all public links for all the objects stored into a Google Cloud Storage bucket (or a directory in a bucket) using Cloud SDK's gsutil or gcloud ? Something like: $ gsutil ls --public-link gs://my-bucket/a-directory 回答1: Public links for publicly visible objects are predictable. They just match this pattern: https://storage.googleapis.com/BUCKET_NAME/OBJECT_NAME . gsutil doesn't have a command to print URLs for objects in a bucket, but it can just list objects. You could

What's the risk in using project-id in GCS bucket names?

风格不统一 提交于 2021-02-08 15:01:35
问题 I've been using project-id as a prefix in my GCS bucket-names to easily get a unique name. When I read GCS-best practises It says clearly not to use project-names or project-numbers (nothing about projectId:s) But on the other hand, when I spin up GAE, two buckets containing the project-id are automatically created. Is Google not following their own best practices or did I miss something? Are the greatest risk of having projectId in bucket name that I give clues to a potential attacker about

What's the risk in using project-id in GCS bucket names?

╄→尐↘猪︶ㄣ 提交于 2021-02-08 15:00:04
问题 I've been using project-id as a prefix in my GCS bucket-names to easily get a unique name. When I read GCS-best practises It says clearly not to use project-names or project-numbers (nothing about projectId:s) But on the other hand, when I spin up GAE, two buckets containing the project-id are automatically created. Is Google not following their own best practices or did I miss something? Are the greatest risk of having projectId in bucket name that I give clues to a potential attacker about

How do I list my GCP projects under No Organization using the Resource Manager API?

笑着哭i 提交于 2021-02-08 11:52:15
问题 I can't seem to find a proper filter for the Project List API method to list only the projects which I have access to but are under No Organization. Is there a filter for this? What would be the way to achieve this?. 回答1: I’m afraid there’s no straightforward way to achieve this. The filter would have to match a “parent.id” or a “parent.type” property, which in the case of projects without organization it doesn’t exists (they don’t have a “parent” attribute). It would have to be done in two

Google OAuth 2.0 using Python for GCP BigQuery

混江龙づ霸主 提交于 2021-02-08 09:52:05
问题 I am seeking a code snippet for implementing oAuth 2.0 authentication using python to connect to GCP Big Query service. I am using Google cloud shell to write the python code. But the access token I am receiving bad request. access_token = google.fetch_token(token_url=token_url,client_id=client_id,client_secret=client_secret,authorization_response=redirect_response). Also I need to automate this process so manually pasting the redirect_response needs to be avoided. 回答1: It is recommended that

Google OAuth 2.0 using Python for GCP BigQuery

霸气de小男生 提交于 2021-02-08 09:51:39
问题 I am seeking a code snippet for implementing oAuth 2.0 authentication using python to connect to GCP Big Query service. I am using Google cloud shell to write the python code. But the access token I am receiving bad request. access_token = google.fetch_token(token_url=token_url,client_id=client_id,client_secret=client_secret,authorization_response=redirect_response). Also I need to automate this process so manually pasting the redirect_response needs to be avoided. 回答1: It is recommended that

sendNotificationEmail doesn't work with service account (Drive API v3)

我与影子孤独终老i 提交于 2021-02-08 09:36:06
问题 I can't send an email notification when I add permission in a file with the drive API v3 , before May, it works fine but since 14/05/2020 doesn't send an email with node v10.16.3 . I do this to authenticate: and then when I add permission: Response from drive service enter image description here 回答1: This issue has been reported on Google's Public Issue tracker Basically, Service acocunts seemed temporarily not be able to send notification emails on their own behalf. The notification emails