microgateway

by Airlock

Helm chartv5.2.3App 5.2.3MITVerified publisher

A Helm chart for deploying the Airlock Microgateway

About this chart

Airlock Microgateway is a Kubernetes native WAAP (Web Application and API Protection) solution to protect microservices.

Modern application security is embedded in the development workflow and follows DevSecOps paradigms. Airlock Microgateway is the perfect fit for these requirements. It is a lightweight alternative to the Airlock Gateway appliance, optimized for Kubernetes environments. Airlock Microgateway protects your applications and microservices with the tried-and-tested Airlock security features against attacks, while also providing a high degree of scalability. This Helm chart is part of Airlock Microgateway. See our GitHub repo.

Features

  • Kubernetes native integration with Gateway API
  • Comprehensive set of security features, including deny rules to protect against known attacks (OWASP Top 10), header filtering, JSON parsing, OpenAPI specification enforcement, GraphQL schema validation, and antivirus scanning with ICAP
  • Identity aware proxy which makes it possible to enforce authentication using client certificate based authentication, JWT authentication or OIDC with step-up authentication to realize multi factor authentication (MFA). Provides OAuth 2.0 Token Introspection and Token Exchange for continuous validation and secure delegation across services
  • Reverse proxy functionality with request routing rules, TLS termination, and remote IP extraction
  • Easy-to-use Grafana dashboards which provide valuable insights in allowed and blocked traffic and other metrics

A valid license is required unless Airlock Microgateway is used in the Community Edition. For a list of all features, view the comparison of the community and premium edition.

Quick start guide

The instructions below provide a quick start guide. Detailed information on the installation are provided in the manual.

Prerequisites

Deploy Kubernetes Gateway API CRDs

kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.2/standard-install.yaml

Deploy Airlock Microgateway Operator

  1. Install CRDs and Operator:

    helm install airlock-microgateway \
      oci://quay.io/airlockcharts/microgateway \
      --version '5.2.3' \
      --namespace airlock-microgateway-system \
      --create-namespace \
      --wait
    

    Note: CRDs are included via the standard Helm mechanism, i.e. Helm will handle initial installation but not upgrades.

  2. Verify the correctness of the installation (Recommended):

    helm upgrade airlock-microgateway \
      oci://quay.io/airlockcharts/microgateway \
      --version '5.2.3' \
      --namespace airlock-microgateway-system \
      --set tests.enabled=true \
      --reuse-values
    
    helm test airlock-microgateway --namespace airlock-microgateway-system --logs
    
    helm upgrade airlock-microgateway \
      oci://quay.io/airlockcharts/microgateway \
      --version '5.2.3' \
      --namespace airlock-microgateway-system \
      --set tests.enabled=false \
      --reuse-values
    

What’s next

After installing the Airlock Microgateway Operator, the various Configuration Guides describe how to deploy and configure a Gateway in your cluster and how to implement common scenarios.

Several features require a license. See Community vs. Premium editions in detail to choose the right license type.

Support

Premium support

If you have a paid license, please follow the premium support process.

Community support

For the community edition, check our Airlock community forum for FAQs or register to post your question.

Values

KeyTypeDefaultDescription
affinityobject{}Custom affinity to apply to the operator Deployment. Used to influence the scheduling.
commonAnnotationsobject{}Annotations to add to all resources.
commonLabelsobject{}Labels to add to all resources.
config.engineImage.digeststring"sha256:48a999fc7c62cbb369a8119890b5036d653aebc73bc0e2e214cf87f513bd86d6"SHA256 image digest to pull (in the format "sha256:a3051f42d3013813b05f7513bb86ed6a3209cb3003f1bb2f7b72df249aa544d3"). Overrides tag when specified.
config.engineImage.pullPolicystring"IfNotPresent"Pull policy for this image.
config.engineImage.repositorystring"quay.io/airlock/microgateway-engine"Image repository from which to pull the Airlock Microgateway Engine image.
config.engineImage.tagstring"5.2.3"Image tag to pull.
config.gatewayPodMonitor.createboolfalseWhether the controller should create a PodMonitor per Gateway. Requires that the monitoring.coreos.com/v1 resources are installed on the cluster.
config.gatewayPodMonitor.labelsobject{}Allows to define additional labels that should be set on the PodMonitors.
config.logLevelstring"info"Operator application log level.
config.sessionAgentImage.digeststring"sha256:fd069ae9ff7e4d5279aaa4d55b8df7019475d2f3ed4077b77f035006c817263a"SHA256 image digest to pull (in the format "sha256:a3051f42d3013813b05f7513bb86ed6a3209cb3003f1bb2f7b72df249aa544d3"). Overrides tag when specified.
config.sessionAgentImage.pullPolicystring"IfNotPresent"Pull policy for this image.
config.sessionAgentImage.repositorystring"quay.io/airlock/microgateway-session-agent"Image repository from which to pull the Airlock Microgateway Session Agent image.
config.sessionAgentImage.tagstring"5.2.3"Image tag to pull.
controllerNamestring"microgateway.airlock.com/gatewayclass-controller"Controller name referred in the GatewayClasses managed by this operator. The value must be a path prefixed by the domain microgateway.airlock.com.
crds.skipGatewayAPICheckboolfalseWhether to skip the sanity check which prevents installing/upgrading the helm chart in a cluster which does not have GatewayAPI v1 CRDs installed.
crds.skipVersionCheckboolfalseWhether to skip the sanity check which prevents installing/upgrading the helm chart in a cluster with outdated Airlock Microgateway CRDs. The check aims to prevent unexpected behavior and issues due to Helm v3 not automatically upgrading CRDs which are already present in the cluster when performing a "helm install/upgrade".
dashboards.config.grafana.dashboardLabel.namestring"grafana_dashboard"Name of the label that lets Grafana identify ConfigMaps that represent dashboards.
dashboards.config.grafana.dashboardLabel.valuestring"1"Value of the label that lets Grafana identify ConfigMaps that represent dashboards.
dashboards.config.grafana.folderAnnotation.namestring"grafana_folder"Name of the annotation containing the folder name to file dashboards into.
dashboards.config.grafana.folderAnnotation.valuestring"Airlock Microgateway"Name of the folder dashboards are filed into within the Grafana UI.
dashboards.createboolfalseWhether to create any ConfigMaps containing Grafana dashboards to import.
dashboards.instances.accessCtrlLogs.createbooltrueWhether to create the access control logs dashboard.
dashboards.instances.accessCtrlMetrics.createbooltrueWhether to create the access control metrics dashboard.
dashboards.instances.blockLogs.createbooltrueWhether to create the block logs dashboard.
dashboards.instances.blockMetrics.createbooltrueWhether to create the block metrics dashboard.
dashboards.instances.downstreamMetrics.createbooltrueWhether to create the downstream metrics dashboard.
dashboards.instances.headerLogs.createbooltrueWhether to create the header rewrite logs dashboard.
dashboards.instances.license.createbooltrueWhether to create the license dashboard.
dashboards.instances.logOnlyLogs.createbooltrueWhether to create the log only logs dashboard.
dashboards.instances.logOnlyMetrics.createbooltrueWhether to create the log only metrics dashboard
dashboards.instances.overview.createbooltrueWhether to create the overview dashboard.
dashboards.instances.requestLogs.createbooltrueWhether to create the request logs dashboard.
dashboards.instances.systemMetrics.createbooltrueWhether to create the system metrics dashboard.
dashboards.instances.upstreamMetrics.createbooltrueWhether to create the upstream metrics dashboard.
extraEnvlist[]Additional environment variables to set for the operator container.
fullnameOverridestring""Allows overriding the name to use as full name of resources.
gatewayClass.createbooltrueWhether to create a default GatewayClass during installation.
gatewayClass.namestring"airlock-microgateway"Name of the default GatewayClass. The name must adhere to the DNS Subdomain Name format as defined in RFC1123. See https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names for details.
image.digeststring"sha256:16c306bcb49f70488986cbaea5e3c85058f363aaddef88fbf82b1cd4c239d07a"SHA256 image digest to pull (in the format "sha256:c79ee3f85862fb386e9dd62b901b607161d27807f512d7fbdece05e9ee3d7c63"). Overrides tag when specified.
image.pullPolicystring"IfNotPresent"Pull policy for this image.
image.repositorystring"quay.io/airlock/microgateway-operator"Image repository from which to pull the Airlock Microgateway Operator image.
image.tagstring"5.2.3"Image tag to pull.
imagePullSecretslist[]ImagePullSecrets to use when pulling images. Can be defined either as a list of objects or as a list of strings.
license.modestring"optional"License enforcement mode, controls whether a license is required for Gateways to be accepted. With "required", Gateways are rejected unless a valid license is configured, surfacing a missing or misconfigured license as an error early. With "optional", Gateways are always accepted, if no license is configured, the operator falls back to the Community edition. It is recommended to set to "required" when a Premium license is obtained.
license.secretNamestring"airlock-microgateway-license"Name of the secret containing the "microgateway-license.txt" key.
nameOverridestring""Allows overriding the name to use instead of "microgateway".
nodeSelectorobject{}Custom nodeSelector to apply to the operator Deployment to constrain its Pods to certain nodes.
podAnnotationsobject{}Annotations to add to all operator Pods.
podDisruptionBudgetobject{}PodDisruptionBudget to create for the operator Deployment. If empty, no PDB is created. Note: The selector is automatically configured to match the labels of the operator Deployment and does not need to be set manually. See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for details.
podLabelsobject{}Labels to add to all operator Pods.
rbac.createbooltrueWhether to create RBAC resources which are required for the Airlock Microgateway Operator to function.
replicaCountint1Number of replicas for the operator Deployment.
resourcesobject{"limits":{"cpu":"2000m","memory":"256Mi"},"requests":{"cpu":"250m","memory":"256Mi"}}Resource restrictions to apply to the operator container.
serviceAccount.annotationsobject{}Annotations to add to the ServiceAccount.
serviceAccount.createbooltrueWhether a ServiceAccount should be created for the operator Deployment.
serviceAccount.namestring""Name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template.
serviceAnnotationsobject{}Annotations to add to the operat

Deploy microgateway with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has microgateway on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmicrogateway is pinned at v5.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply