akeyless-zero-trust-bastion
by akeyless.io
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
| Parameter | Description | Default |
|---|---|---|
image.repository | Zero Trust Bastion image name | akeyless/zero-trust-bastion |
image.tag | Zero Trust Bastion image tag | latest |
image.pullPolicy | Zero Trust Bastion image pull policy | Always |
image.dockerRepositoryCreds | Akeyless docker repository credentials | nil |
updateStrategy | Updating statefulset strategy | RollingUpdate |
containerName | Zero Trust Bastion container name | zero-trust-bastion |
replicaCount | Number of Zero Trust Bastion nodes | 1 |
livenessProbe | Liveness probe configuration for Zero Trust Bastion | Check values.yaml file |
readinessProbe | Readiness probe configuration for Zero Trust Bastion | Check values.yaml file |
resources.limits | The resources limits for Zero Trust Bastion containers | {} |
resources.requests | The requested resources for Zero Trust Bastion containers | {} |
Exposure parameters
| Parameter | Description | Default |
|---|---|---|
service.type | Kubernetes Service type | LoadBalancer |
service.port | API port | 8888 |
ingress.enabled | Enable ingress resource | false |
ingress.path | Path for the default host | / |
ingress.certManager | Add annotations for cert-manager | false |
ingress.hostname | Default host for the ingress resource | zero-trust-bastion.local |
ingress.annotations | Ingress annotations | [] |
ingress.tls | Enable TLS configuration for the hostname defined at ingress.hostname parameter | false |
ingress.existingSecret | Existing secret for the Ingress TLS certificate | nil |
Zero Trust Bastion configuration parameters
| Parameter | Description | Default |
|---|---|---|
config.rdpRecord.enabled | Enable RDP session recording | false |
config.rdpRecord.s3.bucketName | AWS S3 bucket name to store RDP recording | nil |
config.rdpRecord.s3.bucketPrefix | AWS S3 bucket prefix | nil |
config.rdpRecord.s3.region | AWS S3 bucket region | nil |
config.rdpRecord.s3.awsAccessKeyId | AWS Access Key ID, not required if using EC2 IAM roles | nil |
config.rdpRecord.s3.awsSecretAccessKey | AWS Secret Access Key, not required if using EC2 IAM roles | nil |
config.rdpRecord.existingSecret | Specifies an existing secret to be used for bastion, management AWS credentials | nil |
config.privilegedAccess.accessID | Access ID with "read" capability for privileged access. Supported auth methods: AWS IAM, Azure AD and API Key. | nil |
config.privilegedAccess.accessKey | Access Key with "read" capability for privileged access. Use with privileged accessID of type API Key. | nil |
config.privilegedAccess.allowedAccessIDs | Access will be permitted only to these access IDs. By default, any access ID is accepted. | [] |
config.privilegedAccess.azureObjectID | Azure Object ID to use with privileged credentials of type Azure AD. | nil |
config.privilegedAccess.gcpAudience | Audience to use with privileged credentials of type GCP. | akeyless.io |
config.apiGatewayURL | API Gateway URL to use to fetch the secrets. | https://rest.akeyless.io |
HPA parameters
| Parameter | Description | Default |
|---|---|---|
HPA.enabled | Enable Zero Trust Bastion Horizontal Pod Autoscaler | false |
HPA.minReplicas | Minimum desired number of replicas | 1 |
HPA.maxReplicas | Minimum desired number of replicas | 14 |
HPA.cpuAvgUtil | CPU average utilization | 50 |
HPA.memAvgUtil | Memory average utilization | 50 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartakeyless-zero-trust-bastion is pinned at v1.4.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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