[google-appengine] Disable TLS/SSL check in Google App Engine - Java

2018-04-23 Thread xybrek
My app is getting this error when accessing a HTTPS resource:

javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate 
for URL: https://some.where/
at 
com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java:175)
at 
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:45)
at 
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.fetchResponse(URLFetchServiceStreamHandler.java:543)
at 
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getInputStream(URLFetchServiceStreamHandler.java:422)
at 
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler$Connection.getResponseCode(URLFetchServiceStreamHandler.java:275)

What can be done so GAE would not check of SSL since in my current purpose 
for the app, it does not care if it connects via HTTP or HTTPS, so in my 
case I just want to disable SSL check.

I am running the application from Windows (Linux does not throw  the error 
above)

Already I have modifiied the *dev_appserver.cmd* like this:

java -Ddeployment.security.TLSv1.1=false 
-Ddeployment.security.TLSv1.2=false -cp 
"%~dp0\..\lib\appengine-tools-api.jar" ^
com.google.appengine.tools.KickStart ^
   com.google.appengine.tools.development.DevAppServerMain %*

Also in the application itself this is set:

FetchOptions fetchOptions = 
FetchOptions.Builder.doNotValidateCertificate();
HTTPRequest request = new HTTPRequest(getUrl, HTTPMethod.GET, 
fetchOptions)

What could be wrong with Windows that it throws the error whereas in Linux 
there is no problem? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/39b6e961-5cf4-4502-9500-3f16f6bcdb9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Use GAE with GCE connected with Internal IP

2018-04-23 Thread Diego Barreiro Pérez
And why is not possible through the GAE Standard Environment? Because my
app is designed for Standard and I guess migrating to Flexible will require
a big rewrite on the code

On Mon, Apr 23, 2018, 22:38 'Kamran (Google Cloud Support)' via Google App
Engine  wrote:

>
> Hello Diego,
>
> Communication through internal IP addresses between *Google Compute
> Engine* and *App Engine Flexible Environment* (but not App Engine
> standard environment) is possible. Because VM instances in the flexible
> environment are Google Compute Engine virtual machines.
>
> In order to implement the local connectivity between GCE VMs and GAE Flex,
> if both are running on the same project deploy your GAE app on the same
> network as of the GCE VM instance. For this purpose, you can configure
> the network settings of your application on app.yaml file
> 
> .
>
> If the GAE Flex application and GCE VM instance are running on different
> projects, then you can take advantage of VPC Network Peering
>  to allows private
> connectivity across two VPC networks regardless of whether or not they
> belong to the same project or the same organization.
>
> I hope this helps.
>
>
> On Sunday, April 22, 2018 at 5:10:20 PM UTC-4, Diego Barreiro Pérez wrote:
>>
>> I've been searching on Google about this, but didn't found anything
>> "clear"
>> *Is possible to make a request from a Google App Engine project to a
>> Google Compute Engine instance via its Internal IP?*
>>
>> The idea is to make the network faster. AppEngine would make a request to
>> the Internal IP of the GCE Instance so it will use Google Intranet
>> Of course, GAE and GCE will be running on the same DataCenter: GAE on
>> europe-west and GCE on europe-west1
>>
>> Any CONCISE answer will be really appreciated
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/rm7tRGfdEWQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/c9768838-95bd-4ce7-b196-5253d0073afb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALKDkhH7WY4s0KS-0p0C6F_GucV-u%2BWAk7JHfy7NgOo5fEo7gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Use GAE with GCE connected with Internal IP

2018-04-23 Thread 'Kamran (Google Cloud Support)' via Google App Engine

Hello Diego,

Communication through internal IP addresses between *Google Compute Engine* 
and *App Engine Flexible Environment* (but not App Engine standard 
environment) is possible. Because VM instances in the flexible environment 
are Google Compute Engine virtual machines.

In order to implement the local connectivity between GCE VMs and GAE Flex, 
if both are running on the same project deploy your GAE app on the same 
network as of the GCE VM instance. For this purpose, you can configure the 
network settings of your application on app.yaml file 

. 

If the GAE Flex application and GCE VM instance are running on different 
projects, then you can take advantage of VPC Network Peering 
 to allows private 
connectivity across two VPC networks regardless of whether or not they 
belong to the same project or the same organization.

I hope this helps.


On Sunday, April 22, 2018 at 5:10:20 PM UTC-4, Diego Barreiro Pérez wrote:
>
> I've been searching on Google about this, but didn't found anything "clear"
> *Is possible to make a request from a Google App Engine project to a 
> Google Compute Engine instance via its Internal IP?*
>
> The idea is to make the network faster. AppEngine would make a request to 
> the Internal IP of the GCE Instance so it will use Google Intranet
> Of course, GAE and GCE will be running on the same DataCenter: GAE on 
> europe-west and GCE on europe-west1
>
> Any CONCISE answer will be really appreciated
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c9768838-95bd-4ce7-b196-5253d0073afb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: can't find import: "google.golang.org/appengine"

2018-04-23 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
I tried this tutorial 
 and it 
works for me. I recommend that you upgrade your Cloud SDK by running 
“gcloud components update” and check to see if you have “app-engine-go” by 
running “gcloud components list”. If the issue persists, I recommend to 
report it via Issue Tracker 
 since Google Groups 
are reserved for general product discussions and are not for reporting 
issues.



On Monday, April 23, 2018 at 9:43:34 AM UTC-4, Bob Hancock wrote:
>
> GOPATH=/home/rwh/go
>
> > ls /home/rwh/go/pkg/linux_amd64/google.golang.org/
> appengine  appengine.a
>
> > go version
> go version go1.10 linux/amd64
> > which go
> /usr/local/go/bin/go
>
> The sample hello application fails because it "can't find import: "
> google.golang.org/appengine"" Yet, this directory is under $GOPATH 
> /pkg/linux_amd64/. Why is it not finding the import?
>
> INFO 2018-04-22 23:08:56,689 devappserver2.py:120] Skipping SDK update 
> check.
> INFO 2018-04-22 23:08:56,806 api_server.py:274] Starting API server 
> at: http://localhost:42969
> INFO 2018-04-22 23:08:56,866 dispatcher.py:270] Starting module 
> "default" running at: http://localhost:8080
> INFO 2018-04-22 23:08:56,867 admin_server.py:152] Starting admin 
> server at: http://localhost:8000
> ERROR2018-04-22 23:08:57,893 instance_factory.py:196] Failed to build 
> Go application: (Executed command: 
> /home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/bin/go-app-builder
>  
> -app_base /home/rwh/go/src/
> github.com/GoogleCloudPlatform/golang-samples/appengine/helloworld 
> -api_version go1 -arch 6 -dynamic -goroot 
> /home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8 -gopath 
> /home/rwh/go/google-cloud-sdk/platform/google_appengine/gopath 
> -nobuild_files ^^$ -incremental_rebuild -unsafe -binary_name _go_app 
> -extra_imports appengine_internal/init -work_dir 
> /tmp/tmpZPv2Osappengine-go-bin -gcflags 
> -I,/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/pkg/linux_amd64_appengine
>  
> -ldflags 
> -L,/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/pkg/linux_amd64_appengine
>  
> hello.go)
> /tmp/tmpZPv2Osappengine-go-bin/hello.go:11: can't find import: "
> google.golang.org/appengine"
>
> 2018/04/22 19:08:57 Can't find package "google.golang.org/appengine" in 
> $GOPATH: cannot find package "google.golang.org/appengine" in any of:
> 
> /home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/src/
> google.golang.org/appengine (from $GOROOT)
> /home/rwh/go/google-cloud-sdk/platform/google_appengine/gopath/src/
> google.golang.org/appengine (from $GOPATH)
> 2018/04/22 19:08:57 go-app-builder: build timing: 0×skip (0s total), 
> 1×compile (14ms total), 0×link (0s total)
> 2018/04/22 19:08:57 go-app-builder: failed running compile: exit status 2
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7cef4b91-ff58-4e78-ba45-bacfa426d811%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Configuring CNAME *and* MX Records?

2018-04-23 Thread MyKellySue
I feel your pain!

On Thursday, September 4, 2008 at 2:49:06 PM UTC-6, ogg...@gmail.com wrote:
>
> I registered my domain with Namecheap. Switching my app to GAE, I 
> moved by nameservers to the default Namecheap ones. Then I set up a 
> CNAME record so that the host name '@' refers to 'ghs.google.com'. 
> This worked great. Then, I wanted my email to work, so I went to set 
> up my MX records. I followed Google's instructions, and despite 
> waiting well over 48 hours, email did not work. 
>
> I emailed Namecheap support and they told me that it is impossible to 
> have a CNAME record for '@' and to have MX records for '@'. This is 
> unacceptable. 
>
> They said the ONLY thing to do was create a framed redirect from '@' 
> to the 'www' hostname, and then set up the CNAME on 'www' and MX 
> records on '@'. I do NOT want to access my site at http://www.example.com 
> and certainly do not want a framed redirect (what is this, 1999?). 
>
> Is there anyway to do this? Surely others have wanted to set up a GAE 
> app and Google email on the same domain... 
>
> If it is a problem with namecheap, I would transfer instantly to 
> godaddy or whomever this works properly with. 
>
> Thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/53836201-96b7-4227-8c4a-94141b292504%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Audit logs for Appengine datastore?

2018-04-23 Thread Rob Curtis
Hi,

Thanks for your response.

I'm struggling now to find the logs in the log viewer; all I see is 
Monitoring audit logs.
I had a look at the "activity" from the dashboard, which shows a bit more 
information, but no information with reference to the datastore 
(specifically I'm looking to see if a change I make as an admin, to a 
datastore entry, will show that I modified the data).
Is tracking this kind of change possible with the current setup?

Thanks
Rob



On Friday, April 20, 2018 at 8:36:44 PM UTC+2, Kenworth (Google Cloud 
Platform) wrote:
>
> Datastore does not provide audit logging. However, users can view general 
> audit logs using the Stackdriver logs for Datastore 
>  (see 
> monitored 
> resources  ) 
> which will show admin information on who, what type of data, where and when 
> the service was used, among others. 
>
> If you need more information than what's available, I recommend you file 
> a feature request  based on this 
> article . 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c8053ad1-7650-4392-b310-61cfea7a5bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] can't find import: "google.golang.org/appengine"

2018-04-23 Thread Bob Hancock
GOPATH=/home/rwh/go

> ls /home/rwh/go/pkg/linux_amd64/google.golang.org/
appengine  appengine.a

> go version
go version go1.10 linux/amd64
> which go
/usr/local/go/bin/go

The sample hello application fails because it "can't find import: 
"google.golang.org/appengine"" Yet, this directory is under $GOPATH 
/pkg/linux_amd64/. Why is it not finding the import?

INFO 2018-04-22 23:08:56,689 devappserver2.py:120] Skipping SDK update 
check.
INFO 2018-04-22 23:08:56,806 api_server.py:274] Starting API server at: 
http://localhost:42969
INFO 2018-04-22 23:08:56,866 dispatcher.py:270] Starting module 
"default" running at: http://localhost:8080
INFO 2018-04-22 23:08:56,867 admin_server.py:152] Starting admin server 
at: http://localhost:8000
ERROR2018-04-22 23:08:57,893 instance_factory.py:196] Failed to build 
Go application: (Executed command: 
/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/bin/go-app-builder
 
-app_base 
/home/rwh/go/src/github.com/GoogleCloudPlatform/golang-samples/appengine/helloworld
 
-api_version go1 -arch 6 -dynamic -goroot 
/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8 -gopath 
/home/rwh/go/google-cloud-sdk/platform/google_appengine/gopath 
-nobuild_files ^^$ -incremental_rebuild -unsafe -binary_name _go_app 
-extra_imports appengine_internal/init -work_dir 
/tmp/tmpZPv2Osappengine-go-bin -gcflags 
-I,/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/pkg/linux_amd64_appengine
 
-ldflags 
-L,/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/pkg/linux_amd64_appengine
 
hello.go)
/tmp/tmpZPv2Osappengine-go-bin/hello.go:11: can't find import: 
"google.golang.org/appengine"

2018/04/22 19:08:57 Can't find package "google.golang.org/appengine" in 
$GOPATH: cannot find package "google.golang.org/appengine" in any of:

/home/rwh/go/google-cloud-sdk/platform/google_appengine/goroot-1.8/src/google.golang.org/appengine
 
(from $GOROOT)

/home/rwh/go/google-cloud-sdk/platform/google_appengine/gopath/src/google.golang.org/appengine
 
(from $GOPATH)
2018/04/22 19:08:57 go-app-builder: build timing: 0×skip (0s total), 
1×compile (14ms total), 0×link (0s total)
2018/04/22 19:08:57 go-app-builder: failed running compile: exit status 2

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f6386432-6033-4e72-85c1-dc62788a9455%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: No admin rights in GCP/can't create projects in GCP when logging in as GSuite SuperAdmin

2018-04-23 Thread Jonathan Herbert
Amazing! It works. Thank you so much!!

On Sunday, 22 April 2018 19:34:19 UTC+1, Katayoon (Cloud Platform Support) 
wrote:
>
> There is a likelihood that you’ve removed ACLs from your organization, so 
> you don’t have the permission to create projects but as a super admin you 
> can try the following command after getting your Organization ID 
> 
> :
>
> gcloud organizations add-iam-policy-binding 
> 
>  
> ORGANIZATION_ID  --member="domain:example.com" 
> --role="roles/resourcemanager.projectCreator"
>
> - Note that you can contact to Google Cloud Platform sales team 
>  to get your Organization ID.
>
>
>
> On Sunday, April 22, 2018 at 11:50:04 AM UTC-4, Jonathan Herbert wrote:
>>
>> I am logged into GCP as the GSuite SuperAdmin. I must have deleted 
>> something by accident in GCP as I am unable to create projects. I get the 
>> error message: "You may not have permission to create projects in this 
>> organisation. Contact your Google Apps account admin to verify that you 
>> have the Project Creator role." or Permission 
>> 'resourcemanager.projects.create' denied on parent resource 
>> 'organizations/*MyOrgID*'.
>>  Thanks for helping
>>
>> *Cologny Advisors LLP is Authorised and Regulated by the Financial 
>> Conduct Authority *
>>
>> *The information contained in this e-mail message is intended only for 
>> use of the individual, partnership or entity named above. It may contain 
>> privileged and confidential information. If the reader of this message is 
>> not the intended recipient, you are hereby notified that any dissemination, 
>> distribution or copying of this communication is strictly prohibited. If 
>> you have received this communication in error, please immediately notify 
>> the sender by telephone (+44 203 642 0660), and destroy the original 
>> message. Please note all phone conversations with Cologny Advisors LLP are 
>> recorded. Thank you.*
>>
>> *Email transmission cannot be guaranteed to be secure or error free as 
>> information could be intercepted, corrupted, lost, destroyed, arrive late 
>> or incomplete, or contain viruses. The sender therefore does not accept 
>> liability for any errors or omissions in the contents of this message which 
>> arise as a result of email transmission or any other reason. If 
>> verification is required please request a hard copy version.*
>>
>
-- 


*Cologny Advisors LLP is Authorised and Regulated by the Financial 
Conduct Authority *

*The information contained in this e-mail message is 
intended only for use of the individual, partnership or entity named above. 
It may contain privileged and confidential information. If the reader of 
this message is not the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, 
please immediately notify the sender by telephone (+44 203 642 0660), and 
destroy the original message. Please note all phone conversations with 
Cologny Advisors LLP are recorded. Thank you.*

*Email transmission cannot 
be guaranteed to be secure or error free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result 
of email transmission or any other reason. If verification is required 
please request a hard copy version.*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/596b2517-10de-45ce-87e6-347214d01d33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] FIREBASE INSERT INTO MYSQL

2018-04-23 Thread Rodrigo Neris

Good afternoon people Need help. I want to get the data from Firebase 
RealTimeDatabase and insert it into Structured MySql. How can I do this? 
There is a possibility? Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1e9e28a5-c315-4164-8739-e988e0bf29ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.