kind: ConfigMap
apiVersion: v1
metadata:
  name: end-to-end-waf
  namespace: default
  labels:
    f5type: virtual-server
    as3: "true"
data:
  template: |
    {
        "class": "AS3",
        "declaration": {
            "class": "ADC",
            "schemaVersion": "3.13.0",
            "id": "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d",
            "label": "Sample 1",
            "remark": "Simple HTTP application with RR pool",
            "AS3": {
                "class": "Tenant",
                "A4": {
                    "class": "Application",
                    "template": "https",
                    "serviceMain": {
                        "class": "Service_HTTPS",
                        "virtualAddresses": [
                            "10.192.75.104"
                        ],
                        "pool": "secure_ssl_pool",
                        "serverTLS": "frontside",
                        "clientTLS": "backside"
                    },
                    "secure_ssl_pool": {
                        "class": "Pool",
                        "monitors": [
                            "https"
                        ],
                        "members": [
                            {
                                "servicePort": 443,
                                "serverAddresses": []
                            }
                        ]
                    },
                    "frontside": {
                        "class": "TLS_Server",
                        "certificates": [
                            {
                                "certificate": "webcert"
                            }
                        ]
                    },
                    "backside": {
                        "class": "TLS_Client"
                    },
                    "webcert": {
                        "class": "Certificate",
                        "remark": "in practice we recommend using a passphrase",
                        "certificate": "-----BEGIN CERTIFICATE-----\n<CERTIFICATE>\n-----END CERTIFICATE-----",
                        "privateKey": "-----BEGIN PRIVATE KEY-----\n<KEY>\n-----END PRIVATE KEY-----"
                    }
                }
            }
        }
    }
