Parameters

The parent key for all of the following parameters is airlock_microgateway.

Api reference for Gateway API can be found here: gateway-api.sigs.k8s.io/reference/spec

Api reference for Airlock Microgateway CRs can be found here: docs.airlock.com/

namespace

type

string

default

syn-airlock-microgateway

The namespace in which to deploy this component.

Example

namespace: example-namespace

gatewayparameters.spec.features.externalNameServicesAllowed

type

boolean

default

false

Note that this is only available from v5.0.0 see github.com/airlock/microgateway/releases/tag/5.0.0 and configurable since v4.8.6.

Example

To set it on a specific instance.

instances:
  vshn-default-test-01:
    gatewayParameters:
      spec:
        features:
		  externalNameServicesAllowed: true

To set it on all instanes of an environment.

default:
  gatewayParameters:
    spec:
      features:
        externalNameServicesAllowed: true

default.gatewayParameters.defaults.customResponses

Allows to set the local and upstream customResponses, see Airlock Microgateway docs.

The first matching entry is used. It is not possible to override an existing range of the defaults in an instance because the additional customResponse configurations are appended because it is an array.

For placeHolders see envoy substitution operators.

Example

default:
  gatewayParameters:
    defaults:
      customResponses:
        local:
          - statusCodeCondition:
              matcher:
                exact: 401
            customResponseRef:
              name: "401"
          - statusCodeCondition:
              matcher:
                range:
                  from: 400
                  to: 499
            customResponseRef:
              name: "4xx"
  customResponses:
        "401":
          content:
            - contentType: text/html
              body:
                value: |
                  <!DOCTYPE html>
                  <html lang="de">
                  <head>
                      <meta charset="utf-8">
                      <meta name="viewport" content="width=device-width, initial-scale=1.0">
                      <title>Customer Error 401</title>
                      <style>
                          @media (max-height: 550px) {
                              body { overflow-y: auto; height: auto; }
                          }
                      </style>
                  </head>
                  <body>
                  <main>
                      <h1><span class="textcode">Error </span>401</h1>
                      <section>
                        <h2 lang="de">Access Denied</h2>
                        <p lang="de">You can't access this application.<br>
                        Additional info: <a href="https://support.customer.com">Support</a>.</p>
                      </section>
                  </main>
                  <footer>
                      REQUEST ID: %STREAM_ID%
                  </footer>
                  </body>
                  </html>
              headers: {}
        "4xx":
          content:
            - contentType: text/html
              body:
                value: |
                  %RESPONSE_CODE%

default.redisSecretSync

Copies redis connection secrets from a source namespace into the airlock-microgateway instance namespace with an espejote ManagedResource. The ManagedResource only manages secrets in the instance namespace. The feature is disabled by default and can be enabled for all instances through default or for individual instances.

type

object

default

enabled: false

enabled

Whether the ManagedResource is generated for the instance.

sourceNamespace

The namespace that contains the source secrets.

secrets

A map of the secrets to create in the instance namespace. The map key is the name of the secret in the instance namespace. Each entry has an optional type (default Opaque) and one entry per data key in the created secret. The data key maps to a secretName and key that select the value from a source secret. Set a secret to null to disable creating it. The ManagedResource aborts reconciliation if a referenced source secret does not exist or is being deleted. The defaults create redis-password, redis-ca and redis-clientcert. Add more entries with the same data mapping to create additional secret names, for example to switch an instance to new redis secret names without downtime.

Example

instances:
  vshn-default-test-01:
    redisSecretSync:
      enabled: true
      sourceNamespace: vshn-airlock-redis
      secrets:
        redis-password:
          redis.password:
            secretName: redis-creds-connection
            key: REDIS_PASSWORD
        redis-password-old:
          redis.password:
            secretName: redis-creds-connection-rotated
            key: REDIS_PASSWORD
        redis-ca: null
        redis-clientcert:
          type: kubernetes.io/tls
          tls.crt:
            secretName: redis-creds-connection
            key: tls.crt
          tls.key:
            secretName: redis-creds-connection
            key: tls.key