akeyless-zero-trust-bastion

by akeyless.io

Helm chartv1.4.4App v0.13.5Verified publisher

A Helm chart for Kubernetes that deploys akeyless-zero-trust-bastion

About this chart

Akeyless Zero Trust Bastion

Akeyless Zero Trust Bastion provides zero trust access to remote resources using Akeyless JIT credentials (dynamic secrets and SSH certificate issuers).

Introduction

This chart bootstraps a Akeyless Zero Trust Bastion deployment on a Kubernetes cluster using the Helm package manager.

Preparation

Network

Currently, when using DB applications (mysql, mongodb, mssql, postgres) via the Zero Trust Bastion, it'll only work properly when using load balancer with "sticky" session:

  • Ingress - Make sure to use sticky session annotation, for example nginx.ingress.kubernetes.io/affinity: "cookie" in Nginx
  • Cloud Provider LB - Make sure to config the LB to support sticky session, for example is AWS, using ELB: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html

Prerequisites

Horizonal Auto-Scaling

Horizontal auto-scaling is based on the HorizonalPodAutoscaler object. For it to work properly, Kubernetes metrics server must be installed in the cluster - https://github.com/kubernetes-sigs/metrics-server

Get Repo Info

$ helm repo add helm-charts https://akeylesslabs.github.io/helm-charts
$ helm repo update

See helm repo for command documentation.

Installing the Chart

The values.yaml file holds default values, replace the values with the ones from your environment where needed.

To install the chart run:

helm install RELEASE_NAME helm-charts/akeyless-zero-trust-bastion

Parameters

The following table lists the configurable parameters of the Zero Trust Bastion chart, and their default values.

Deployment parameters

ParameterDescriptionDefault
image.repositoryZero Trust Bastion image nameakeyless/zero-trust-bastion
image.tagZero Trust Bastion image taglatest
image.pullPolicyZero Trust Bastion image pull policyAlways
image.dockerRepositoryCredsAkeyless docker repository credentialsnil
updateStrategyUpdating statefulset strategyRollingUpdate
containerNameZero Trust Bastion container namezero-trust-bastion
replicaCountNumber of Zero Trust Bastion nodes1
livenessProbeLiveness probe configuration for Zero Trust BastionCheck values.yaml file
readinessProbeReadiness probe configuration for Zero Trust BastionCheck values.yaml file
resources.limitsThe resources limits for Zero Trust Bastion containers{}
resources.requestsThe requested resources for Zero Trust Bastion containers{}

Exposure parameters

ParameterDescriptionDefault
service.typeKubernetes Service typeLoadBalancer
service.portAPI port8888
ingress.enabledEnable ingress resourcefalse
ingress.pathPath for the default host/
ingress.certManagerAdd annotations for cert-managerfalse
ingress.hostnameDefault host for the ingress resourcezero-trust-bastion.local
ingress.annotationsIngress annotations[]
ingress.tlsEnable TLS configuration for the hostname defined at ingress.hostname parameterfalse
ingress.existingSecretExisting secret for the Ingress TLS certificatenil

Zero Trust Bastion configuration parameters

ParameterDescriptionDefault
config.rdpRecord.enabledEnable RDP session recordingfalse
config.rdpRecord.s3.bucketNameAWS S3 bucket name to store RDP recordingnil
config.rdpRecord.s3.bucketPrefixAWS S3 bucket prefixnil
config.rdpRecord.s3.regionAWS S3 bucket regionnil
config.rdpRecord.s3.awsAccessKeyIdAWS Access Key ID, not required if using EC2 IAM rolesnil
config.rdpRecord.s3.awsSecretAccessKeyAWS Secret Access Key, not required if using EC2 IAM rolesnil
config.rdpRecord.existingSecretSpecifies an existing secret to be used for bastion, management AWS credentialsnil
config.privilegedAccess.accessIDAccess ID with "read" capability for privileged access. Supported auth methods: AWS IAM, Azure AD and API Key.nil
config.privilegedAccess.accessKeyAccess Key with "read" capability for privileged access. Use with privileged accessID of type API Key.nil
config.privilegedAccess.allowedAccessIDsAccess will be permitted only to these access IDs. By default, any access ID is accepted.[]
config.privilegedAccess.azureObjectIDAzure Object ID to use with privileged credentials of type Azure AD.nil
config.privilegedAccess.gcpAudienceAudience to use with privileged credentials of type GCP.akeyless.io
config.apiGatewayURLAPI Gateway URL to use to fetch the secrets.https://rest.akeyless.io

HPA parameters

ParameterDescriptionDefault
HPA.enabledEnable Zero Trust Bastion Horizontal Pod Autoscalerfalse
HPA.minReplicasMinimum desired number of replicas1
HPA.maxReplicasMinimum desired number of replicas14
HPA.cpuAvgUtilCPU average utilization50
HPA.memAvgUtilMemory average utilization50

Deploy akeyless-zero-trust-bastion with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has akeyless-zero-trust-bastion 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 chartakeyless-zero-trust-bastion is pinned at v1.4.4 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