Skip to end of metadata
Go to start of metadata

The Harmony API Manager provides multiple settings to apply the desired level of security for each API (URL). Each setting is independent. Using a combination of independent settings allows the user to create specific levels of security for specific use cases.

1. Any API is anonymous and publicly accessible by default at the time it is created, unless an appropriately configured security profile is assigned.

  • At the API level, under Authentication, you can assign a profile to the API that specifies the method type used to authenticate a consumer and allow access to the API. If you do not assign a profile, the API authentication is set to anonymous by default, and anyone can access the API. Note that security profiles do get cached on the gateway, so changes to an already active API could take several minutes to take effect.

2. Multiple Profiles Assigned to an API

  • Multiple Basic profiles within the same environment can be assigned to a single API to accommodate multiple users and credentials.
  • To avoid conflicts between different types of authentication methods, do not assign a mix of different authentication types for a specific API or Proxy. These combinations are not allowed:

    • Cannot assign 1 Basic and 1 OAuth profile to a single API

    • Cannot assign 1 Basic and 1 Anonymous profile to a single API

    • Cannot assign 1 OAuth and 1 Anonymous profile to a single API

    • Cannot assign more than 1 OAuth profile per API

    • Cannot assign more than 1 Anonymous profile per API

    • Cannot assign the same profile more than once (no duplicates)

  • Create a separate API or Proxy for serving different groups of API Consumers.

3. Multiple Profiles Available to an Environment

  • A profile is only valid in the one environment it was set up in.
  • Multiple profiles can be set up within an environment with different methods of authentication and different security options.
  • A profile can be assigned to a single API or to multiple APIs that are set up within the same environment.

    EXAMPLES:

    Assume the classic configuration of one Development environment and one Production environment with 2 APIs.

    • API-1 is intended for both the Finance and Accounting department consumers and API-2 is intended ONLY for the Accounting department consumers.
    • Create one security profile for Accounting (with the desired security & governance configuration)
    • Create another security profile for Finance (with the desired security & governance configuration)
    • Assign both the Finance and Accounting profiles to API-1
    • Assign the Accounting security profile ONLY to API-2


    Once testing is completed in the Development environment, the projects and operations are deployed into the Production environment.

    • Each API Security Profile (Finance & Accounting) must be created in the Production environment.
    • Each API in the Development environment can be 'Cloned' and published to the Production environment.


    NOTE: The name of each API and each profile can be the same as their counterparts in the Development environment for continuity and cross reference (as well as the versioning). However, the URL for each API will reference the Production environment, and will be a distinct and separate URL from the API in the Development environment.

4. Profile Authentication

An API security profile governs and secures the consumption of APIs. The security profiles allow for publishing an API or group of APIs to be consumed by a specific API consumer or a group of consumers. You can create and assign security profiles based on your organization's specific security and governance requirements. These are the available method types:

  • Anonymous authentication allows access by anyone to consume the API. Additional security options are available under Logging, Rate Limits and Trusted IP Ranges to limit such access.
  • Basic authentication provides a username and password within the profile. The same username and password must be entered to access the API at runtime. Additional security options are available under Logging, Rate Limits and Trusted IP Ranges.
  • OAuth 2.0 using Google as the Identity Provider requires the consumer to validate their Google credentials to access the API at runtime. 
    • Google requires a Client ID and a Client Secret to be set up within the security profile. The redirect URLs configured within the profile must also be copied into Google.  See Configuring OAuth 2.0 with Google.
  • OAuth 2.0 using Salesforce as the Identity Provider requires the consumer to validate their Salesforce credentials to access the API at runtime.  
    • Salesforce requires a Consumer Key and a Consumer Secret to be set up within the security profile. The redirect URLs configured within the profile must also be copied into the Connected App within Salesforce. See Configuring OAuth 2.0 with Salesforce.

5. Logging/Auditing at Profile Level

  • For every hit on the API, the profile used to access the API is recorded in a log. The log is available to view through API Analytics.
    • This option records every hit as Anonymous in the log if the profile is set to Anonymous authentication.
    • This option records every hit in the log as the Username required by the profile, if the profile is set to Basic authentication. If the user fails to provide proper credentials, but Anonymous access was also enabled on the API, then Anonymous will be entered into the log.
  • Custom Request Header: To override the logging behavior above and audit using a value from the request header (i.e. in the case of a single application key being used), you can enter the name of the field the value of which will be recorded in the log.

6. Rate Limiting at Profile Level

  • By default, the profile may access the API up to the org allowance for hits across all APIs within a minute. If the org allowance is 10 hits per minute, only 10 hits within a minute will be allowed across all APIs.

  • Rate limiting is enabled by checking the box in the Rate Limits section of the profile and selecting a number of hits in the List Box. This limit is per profile, not per org or API.

    • Rate Limiting enforces a maximum number of hits this particular profile can make against all assigned APIs during a period of one minute.  
    • When enabled, the system does additional checks on every hit (a request to a valid URL) in order to reject calls over the limit you have set. As such, all calls for this user will sustain additional performance overhead and the user may experience an increased number of rejects.
    • Once the limit 
    • Note that attempts against invalid URLs (i.e. Error 404) are not counted against any of the limits and allowances.
    EXAMPLES:
    • The org allowance is 10 hits per minute. If the org has 10 APIs and each API receives 1 hit within a minute, the limit has been reached and additional hits to any API within the minute will be rejected. 

    • The org allowance is 10 hits per minute. If the org has 10 APIs and one API receives 10 hits within a minute, the limit has been reached and additional hits to any API within the minute will be rejected.

    • The org allowance is 10 hits per minute. The org has 10 APIs. An authentication profile assigned to 1 API limits the number of hits to 5 per minute. If this API is accessed through that profile 5 times within the minute, any additional access to the API through that profile will be rejected. Only 5 hits are available across all of the remaining 9 APIs. If 5 of the remaining APIs receive 1 hit each, all 10 of the hits have been used and additional hits to any of the APIs within the minute will be rejected.
    • The org allowance takes precedence over any limit set within a profile. The org allowance is 10 hits per minute. The org has 10 APIs. An authentication profile assigned to 1 API limits the number of hits to 5 per minute. If this API is accessed through that profile 2 times within the minute and 8 of the remaining APIs receive 1 hit each, all 10 of the hits have been used. Any additional hits to any of the APIs within the minute will be rejected.

7. IP Range Restriction at Profile Level

  • By default, the API and/or profile do not limit access to any set range of IP addresses. 
  • Access can be set to only a single IP or a range of IP addresses in the Trusted IP Ranges section of the profile. 
    • Select the radio button labeled “Trust requests only from the following IP ranges, block all others”.
    • Enter the Start IP Address and End IP Address in the appropriate boxes.
    • Click the “+ Add IP Range” link to add an additional range of IP addresses. Continue until all desired ranges have been set up.
  • If a user tries to access your API via a profile that is limited to certain IP ranges, their IP will be checked against the allowed range(s). Access from any IP that is outside of the range(s) set up will be rejected.

8. Optional SSL Only Mode at the API Level

  • By default every API supports both HTTP and HTTPS transfer. 
  • You can forward HTTP traffic to ensure all communication is encrypted by enabling SSL Only (click the checkbox) in the Settings section of the API.
    • The identity of the HTTPS URL is verified by Symantec Class 3 Secure Server SHA256 SSL CA. 
    • The connection to the HTTPS URL is encrypted with modern cryptography (TLS 1.2 encryption, the connection is encrypted and authenticated using AES_128_GCM and uses ECDHE_RSA as the key exchange mechanism).
On This Page

Related Topics

Last updated:  Apr 02, 2019