Search Results

Strip Headers Connector

Description

  • The Strip Headers connector strips permissible HTTP headers in the backend target service API request/response.
  • TIBCO Mashery needs to cast/strip sensitive info in HTTP header either reaching to target backend server or from backend response.

Usage

  • Sample configuration
    headers:Server
  • Before without Connector, response will contain backend server detail
    < Server: Jetty(8.1.3.v20120522)
    After applying Connector, backend response will appear as follows.
    < Server: Mashery Proxy

Design and Implementation

Note:

Implementation Details

  • While pre-processing the request, the Connector retrieves the configured headers in preInput and searches for the configured headers within the target request. If the header is found, the Connector removes that header (key, value pair) from the target request.
  • While post-processing the response, the Connector retrieves the configured headers in postInput and searches for the configured headers within the target response. If the header is found then Connector removes that header (key, value pair) from the target response.

Configuring Endpoint Processing

To configure Strip Header call processing for an endpoint:
  1. From the TIBCO Cloud Mashery Control Center dashboard, navigate to Design > API Definitions, then click the desired API definition from the list.

  2. Click an existing endpoint on the Endpoints page.

  3. Click Call Transformations in the left-hand menu.

  4. In the Call Transformations page, specify the following information in these fields:
    • Processing Adapter: Mashery_Proxy_Processor_StripHeaders
    • Perform Pre-Processing: Enabled
    • Data to make available for pre-processing: headers:<comma separated headers field>
      Example:
      headers:Server


  5. Click Save when done.

Chaining

The Strip Headers connector can be chained with other TIBCO Mashery connectors, as well as TIBCO Mashery adapters developed as processors.

For more information on chaining two processors, see Chaining Processors.

Mashery Local Porting

The Strip Headers connector can be ported to Mashery Local customer specific bundle.

Note: Porting of this Connector can be performed by TIBCO Mashery® for a specific Mashery Local customer. Consult the TIBCO Mashery® Customer Success team for more information.