blob: 52a9f15e4be349bdaafafa5e63ace93f2218d167 [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
meta: {version: "1.0"}
urtest:
description: "Verify sslheaders removes a forged client-certificate header"
requires: {plugins: [sslheaders.so]}
server: {name: "sslheaders-origin"}
client: {name: "sslheaders-client"}
ats:
name: "sslheaders-ts"
process_config: {enable_tls: true, enable_cache: false}
records_config:
proxy.config.proxy_name: "Poxy_Proxy"
proxy.config.diags.debug.enabled: 0
proxy.config.diags.debug.tags: "http"
plugin_config: ["sslheaders.so SSL-Client-ID=client.subject"]
remap_config:
- "map https://bar.com http://127.0.0.1:{SERVER_HTTP_PORT}"
sessions:
- protocol: {stack: https}
transactions:
- all: {headers: {fields: [[uuid, sslheaders-forged-id]]}}
client-request:
method: GET
url: /
version: "1.1"
headers: {fields: [[Host, bar.com], [SSL-Client-ID, "My Fake Client ID"]]}
proxy-request:
headers: {fields: [[SSL-Client-ID, {as: absent}]]}
server-response:
status: 200
headers: {fields: [[Content-Length, 0], [Connection, close]]}
proxy-response: {status: 200}