google-app-engine

Securing communication between services

我的未来我决定 提交于 2021-02-11 13:55:24
问题 I'm a noob in GCP and need some recommendations about how to roles and security work in the platform. I have GCP AppEngine project with several services. Some services need to communicate with other services using HTTP requests. I want to restrict access to some services and not sure about how can I do it. Do I need to create new roles for each restricted service? How can I authenticate/authorize the caller of the service (OAuth2, apikey...) I've tried to dive into GCP docs but documentation

App Engine Flex - Setting GCP Network Tag

落爺英雄遲暮 提交于 2021-02-11 13:41:32
问题 How can I apply a GCP firewall rule tag to an App Engine Flex instance? I have a project where a bastion host is set up with the appropriate firewall rules to only allow ssh from 0.0.0.0/0 to the bh machine. Then the bastion host is the only source that is able to connect via ssh to all project VMs. I need to apply a firewall rule tag "restricted-ssh" to all app engine flex instances to allow ssh in debug mode. Per documentation: A target, which defines the instances (including GKE clusters

Google Cloud PHP my admin is not getting connected with ssh

江枫思渺然 提交于 2021-02-11 12:30:25
问题 I've been trying connecting my PHP my admin via ssh Client tool putty, but my URL gets redirected to my website URL from 127.0.0.1:8888/phpmyadmin to example.com:8080/phpmyadmin which throws me the following error For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname. 回答1: This is a built-in security feature. In order to access your server using SSH using Putty, you must create an SSH tunnel to route your request. I found this guide that explains in

Google speech to text node-record-lpcm16 stream error

梦想的初衷 提交于 2021-02-11 12:27:09
问题 I am setting up google's speech-to-text in a node/express environment on Google App Engine. I have an Angular app that communicates to the server via websockets. This all works perfectly on local host, but when my angular app points to the App Engine instance it does not. It can connect fine - sends connection msg back/forth. And it runs my google speech connection fine. However I get an error in the bit where i try to access the mic stream. The error message isn't much use: ERROR with

Google speech to text node-record-lpcm16 stream error

我是研究僧i 提交于 2021-02-11 12:26:14
问题 I am setting up google's speech-to-text in a node/express environment on Google App Engine. I have an Angular app that communicates to the server via websockets. This all works perfectly on local host, but when my angular app points to the App Engine instance it does not. It can connect fine - sends connection msg back/forth. And it runs my google speech connection fine. However I get an error in the bit where i try to access the mic stream. The error message isn't much use: ERROR with

how to verify Google ID-token?

旧街凉风 提交于 2021-02-11 10:02:50
问题 I want to authenticate Android users with a Go AppEngine backend, I can easily get an ID-token in Android by following http://android-developers.blogspot.co.il/2013/01/verifying-back-end-calls-from-android.html how can I verify the token and get the payload ? is there a Go package for this ? 回答1: I found the solution myself, the ID-token can be verified with the oauth2/v2 package of the https://code.google.com/p/google-api-go-client/ library. some installation tweaks are necessary for using

Stack-driver metrics export

牧云@^-^@ 提交于 2021-02-11 05:04:48
问题 Environment: CloudShell code : python2.7 I want to export Metrics from Cloud Monitoring to Big Query and google has given a solution on how to do this. I am following this in this below article: https://cloud.google.com/solutions/stackdriver-monitoring-metric-export I have downloaded the code from github: https://github.com/GoogleCloudPlatform/stackdriver-metrics-export and I am following the readme and trying to run the application in my google project. When I install and run any of the app

Google App Engine deleted default GCS bucket. Is there a way to restore it?

淺唱寂寞╮ 提交于 2021-02-10 20:45:52
问题 I was deleting some files from the default bucket of my application and I accidentally deleted also the bucket itself using gsutil rm command. Is there a way to restore/recreate/bring it back ? I would like to continue to use the free quota and not enable billing. What I tried to do so far is that (but I'm not sure it is correct). I first enable billing just to re-create a bucket with the same name: xxx.appspot.com. In order to be able to do that I verified that I'm the owner of the domain. I

App Engine Fails to Download Greater Than 33MB

青春壹個敷衍的年華 提交于 2021-02-10 16:50:01
问题 The code below is straight from google apis github for downloading a file from GCS. I changed it to be able to download a file to my local computer. If the file is larger than 33MB the app will stop attempting after 2 min or less. I think I read that app engine's limit is 32 or 33. I don't see anything in quotas to increase though. Can someone point me in the right direction as to how to manage this? if (blob.getSize() < 1_000_000) { // Blob is small read all its content in one request byte[]

App Engine Fails to Download Greater Than 33MB

拥有回忆 提交于 2021-02-10 16:49:28
问题 The code below is straight from google apis github for downloading a file from GCS. I changed it to be able to download a file to my local computer. If the file is larger than 33MB the app will stop attempting after 2 min or less. I think I read that app engine's limit is 32 or 33. I don't see anything in quotas to increase though. Can someone point me in the right direction as to how to manage this? if (blob.getSize() < 1_000_000) { // Blob is small read all its content in one request byte[]