Secure on premise server aws requests - amazon-web-services

I have an on premise server
It has multiple webservices running
I want my aws applications to access it so I have exposed my on premise server to internet
But now anyone can connect and make requests to the webservices
How do I make only my aws services access my on premise webservices and every other request to be blocked by the on premise server if it cannot be authenticated

Related

How to connect to a site's endpoints with wcf client

I need to connect to a site's endpoints and call it's methods.
Is it possible to do this creating a WCF Client?
I don't know which technology is used by the site for it's
web services. I have only been given the endpoints to communicate.
If you know the local address and port as well as the name of the service, the procedure is the same as the WCF Web service.

Cloud Run inter-service communication

Consider two GCP Cloud Run services that communicate with each other.
Their URLs will look like follow:
http(s)://service1-gcphash.a.run.app/
http(s)://service2-gcphash.a.run.app/
Note the DNSs of these urls are public, and if the permissions allow, may be accessed from the outside world.
Now, imagine these two service communicate with each other, my questions are:
If one service calls directly the other service, will the request be routed ONLY in the internal GCP network or is it possible that it will pass through the outside world?
In case the request stays only inside the GCP network, does it make sense to be encrypted via https, or will http request be secure enough?
If one service calls directly the other service, will the request be
routed ONLY in the internal GCP network or is it possible that it will
pass through the outside world?
Network traffic between Google services stays on Google's private backbone.
In case the request stays only inside the GCP network, does it make
sense to be encrypted via https, or will http request be secure
enough?
If you attempt to connect via HTTP, Cloud Run will send an HTTP Redirect with an HTTP Location header set to a secure URL (HTTPS).

local tomcat website request website on aws

We have a back-end website deployed on AWS. I deploy a front-end website in local tomcat and send a request to back-end website in order to get some object data with homemade soap api. Dose it work?
Yes , literally you are trying to access a remote api from local environment. After the deployment in AWS do make sure the security groups allows the protocol and port number, to be communicated from remotely.
By default there ports are not allowed.
Looks like you are trying to connect to a SOAP Webservice hosted in AWS. There is no reason it shouldn't be working, Only thing is you have to properly configure your AWS security groups attached to your backend server, to allow connections from your frontend website. Use front-end server port as the source ip in your security group. You might also have to allow outgoing connections from the network where your frontend server is hosted if it is protected by a firewall.

In Web services, what is difference between Endpoint and Remote Gateway

I goggled but I cannot determined what are the difference between endpoint and gateway. Based on their definition, they seems alike.
Description of Endpoint
What is Web Service Gateway? Web Service Gateway is a server-side
application that opens a communication channel between Bentley’s Apps
for mobile devices and Bentley’s project information management
systems.
Description of Web Service
Web services expose one or more endpoints to which messages can be
sent. A web service endpoint is an entity, processor, or resource that
can be referenced and to which web services messages can be addressed.
Endpoint references convey the information needed to address a web
service endpoint. Clients need to know this information before they
can access a service.
Endpoint:
The endpoint is a connection point where HTML files or active server pages are exposed. Endpoint is the URL where your service can be accessed by a client application. The same web service can have multiple endpoints. An end point indicates a specific location for accessing a service using a specific protocol and data format.
GateWay:
An service Gateway provides a central access point for managing, monitoring, and securing access to your publicly exposed web services. It would also allow you to consolidate services across disparate endpoints as if they were all coming from a single host. A service gateway encapsulates all the details of accessing the service into a single component and hides the component behind an interface that has no direct dependencies on the underlying communications channel.

publicly available java secure web service

I am trying to write a web service client using Jax-ws for a secured webservice hosted by a third party. While doing so, I am facing a lot of issues and somehow wanted to find out if the issue is with my client or the hosted web service.
Do we have any publicly available and free secure web services on the internet? I can find many non secure services.
Have a look at this URL:
http://www.webservicex.net/ws/wscatlist.aspx
... where you can find a bunch of published webservices.