Security Options

There are several different mechanisms that can be used to provide security for your API and portal. Below are the options for security relating to the Proxy.

  • SSL – client/server
  • Whitelist
  • Shared secret
  • OAuth 1.0a / OAuth 2.0
  • HTTP-Auth

SSL

Secure Socket Layers can be utilized to encrypt traffic over the internet.  There are two different use cases for SSL with regard to your API. 

  • Client facing SSL, allowing users to submit via HTTPS rather than HTTP is available though not included in any of the offerings. Client side SSL will result in a recurring monthly fee. In order to do client side SSL you will need to provide us with the SSL key and SSL certificate and all intermediate certificates.
  • Origin based SSL for the segment of the API call between the Mashery Proxy and your origin server. Standard one-way SSL, where you have installed an SSL cert on your server is enabled via dashbaord configuration, whereas Mutual SSL is more complex and a recurring fee will be charged.

Whitelist

If you choose to allow only Mashery Proxied traffic through to your servers we recommend an IP whitelist as a simple solution.  The following list contains the Mashery Traffic Manager IP addresses for all regions  as well as monitoring IP addresses/Regions that Mashery uses to monitor your Direct API.

If IP whitelisting will be enforced on the API backend, please whitelist the IP addresses for the Traffic Manager and selected regions for the monitoring service.  The whitelist information is subject to change. When such changes occur, Mashery Support will notify and work with you to get your whitelist updated. Previous versions of the IP List can be found at http://support.mashery.com/docs/proxy_information/Archived_IP_Whitlisting_Information/.

IP Whitelist Version 6.0 (Effective Date: 2/16/2015)

Notes: Includes updates to core Outbound Traffic manager IP addresses and well as monitoring hosts.  Please include all Traffic Manager IP address, and Monitoring IP addresses for your selected region. The list below is a combination of Ranges and Individual IP Addresses.

A text version of this list can be found: http://support.mashery.com/files/MasheryIPs.txt

Traffic Manager IPs:
64.94.14.0/27
64.94.228.128/28
216.52.39.0/24
216.52.244.96/27
216.133.249.0/24
23.23.79.128/25
107.22.159.192/28
54.82.131.0/25 #new
75.101.137.168
75.101.142.168
75.101.146.168
75.101.141.43
75.101.129.141
174.129.251.74
174.129.251.80
50.18.151.192/28
50.112.119.192/28
54.193.255.0/25 #new
204.236.130.149 
204.236.130.201
204.236.130.207
176.34.239.192/28
54.247.111.192/26 #new
54.93.255.128/27 #new
54.252.79.192/27
54.251.88.0/27

 

Monitoring Server regions (please whitelist all IPs within a selected region):

North America
69.71.111.140
69.71.111.141
207.126.59.91
207.126.59.94
165.254.103.205
165.254.103.203
70.34.228.92
70.34.228.93
4.53.108.203
4.53.108.205
208.72.116.130
208.72.116.131

South/Central America
200.85.152.87
200.85.152.89
200.155.158.42
200.155.158.43
187.45.223.91
187.45.223.93
165.254.103.205
165.254.103.203

EU
213.130.49.203
213.130.49.205
213.198.94.38
213.198.94.39
212.72.53.203
212.72.53.205
87.236.193.132
87.236.193.137
93.94.105.60
93.94.105.75


Asia-Pacific
103.19.90.28
103.19.90.29
103.15.105.253
103.15.105.254
103.248.191.19
123.100.230.144
123.100.230.146
123.100.230.148
123.100.230.150
110.50.254.174
110.50.254.177

 

IP's that can safely be removed.  (Should you find an IP that is not on either the active whitelist nor the removal list, please leave it in place):
Traffic Manager IPs:
79.125.12.141
79.125.12.145
46.137.109.189
46.137.109.191
119.59.74.32/27
175.41.41.147-159

Monitoring IPs:
203.142.29.46
203.142.29.49
203.142.29.52
203.142.29.55
103.248.191.19
103.248.191.20

Shared Secret

Mashery supports Shared Secrets.  Shared secrets can be set to be automatically assigned to users receiving keys via the Mashery service.  By default the shared secret is hashed with the current time (GMT) allowing for 5 minutes of clock drift.  Through the use of Custom Adapters which we have built in to the system Mashery can support virtually any kind of authentication request utilizing Shared Secrets and signatures.

OAuth 1.0a / OAuth 2.0

We offer an OAuth accelerator so you can add OAuth to your API with very little effort or cost.  OAuth allows a user to designate access to his data to a third party while protecting his credentials.  The authorization token can be revoked at any time.

Mashery can handle two different approaches to OAuth.

  1. Mashery OAuth Accelerator.  Mashery acts as the token provider.  Our Client creates a page on their system which allows a user to allow or revoke access to their data.  Our Client then uses Mashery's API to create or revoke access for a particular site.  Mashery handles the authentication of calls.  This path requires that the Client do very little to implement OAuth and can focus on their core business.
  2. Client implemented OAuth.  Some clients may wish to handle OAuth on their own, in this case the OAuth call looks just like any other API call being made through the proxy.  The client must create the system to create and manage OAuth tokens as well as authenticate calls.

HTTP-Auth

Some clients prefer to not shut off access at the edge of their network using whitelists, but would rather control access on a call by call basis.  By adding an http challenge to your application/webserver you will be able to allow access to users with the correct credentials.  Mashery can easily add the appropriate username/password pair to all calls made to your Direct API. 

Docs Navigation