akeyless-sra
by akeyless.io
A Helm chart for Kubernetes akeyless-zero-trust-bastion, akeyless-ssh-bastion and akeyless-zero-trust-portal deployments
About this chart
Akeyless Secure Remote Access
⚠️ DEPRECATION NOTICE
The akeyless-secure-remote-access chart is scheduled for deprecation on December 31, 2026.
Combines both Zero Trust Bastion and SSH-Bastion capabilities. In addition, There is Zero Trust Portal capability.
Akeyless Zero Trust Bastion provides zero trust access to remote resources using Akeyless JIT credentials (dynamic secrets and SSH certificate issuers).
Akeyless SSH Bastion Traffic SSH connections with signed certificate authentication, together with session recording.
Introduction
This chart bootstraps a Akeyless Zero Trust Bastion deployment, Akeyless SSH bastion statefulset and a Akeyless Zero Trust Portal deployment on Kubernetes cluster using the Helm package manager.
Preparation
Storage
Currently, the Akeyless SSH bastion requires a storage class with ReadWriteMany access modes.
Since a storage class is more environment specific, you will need to provide one before proceeding.
In addition, please provide 1 PersistentVolumes with persistentVolumeReclaimPolicy: retain and reference those PVs in
the values.yaml file
e.g. when running on AWS with EKS: https://docs.aws.amazon.com/eks/latest/userguide/efs-csi.html
Network
Currently, when using DB applications (mysql, mongodb, mssql, postgres) via the Akeyless 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
- When using SSH sessions behind load balancer such as ELB, the session can be closed due to **idle connection timeout **, so its advised to increase it to a reasonably high value, or even unlimited.
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 akeyless/akeyless-sra -f values.yaml
Extra Objects
extraObjects renders additional Kubernetes manifests as part of the release. Each entry is rendered with tpl, so it can reference .Release, .Chart and .Values. Custom resources require their CRDs to be installed before the release.
extraObjects:
- apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Release.Name }}-extra"
namespace: "{{ .Release.Namespace }}"
data:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
An entry is either a map or a string (- |). What the chart does to each:
| String entry | Map entry | |
|---|---|---|
| Values and types | exactly as written | numbers are read as 64-bit floats: 1.0 renders as 1, integers above 2^53 lose precision |
| Templated values | keep their type: {{ .Values.x }} renders a number | always strings: "{{ .Values.x }}" renders '3' |
| Key order, quoting, comments | kept | keys sorted, quoting normalized, comments dropped |
{{ }} anywhere in the object | evaluated as a template | evaluated as a template |
The chart tests cover values and types, templated values and {{ }} handling. Key order, quoting and comments follow Helm and are not tested here.
To pass a literal {{ }} through, for example a Prometheus alert using {{ $labels.instance }}, escape it as {{ "{{" }} and {{ "}}" }}. Use a string entry when a field needs an exact value or a templated number or boolean:
extraMinAvailable: 1
extraObjects:
- |
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: "{{ .Release.Name }}-extra"
namespace: "{{ .Release.Namespace }}"
spec:
minAvailable: {{ .Values.extraMinAvailable }}
Global Parameters
| Parameter | Description | Default |
|---|---|---|
dockerRepositoryCreds | Akeyless docker repository credentials. Please contact Akeyless. Required | nil |
apiGatewayURL | API Gateway URL to use to fetch the secrets Required | https://rest.akeyless.io |
privilegedAccess | Supported auth methods: AWS IAM, Azure AD, GCP and API Key.For AWS IAM or Azure AD, or GCP provide only accessID. For API Key, provide both accessID and accessKey | |
legacySigningAlg | When set to "true", will sign ssh certificates using the legacy '[email protected]' signing algorithm name in the certificate. | "false" |
usernameSubClaim | Optional, provide a key-name to extract the username (value) of that key in sub-claims. The extracted username will be used to authenticated to the remote target (RDP or SSH). | |
RDPusernameSubClaim | Optional, This overrides (for RDP only) the global parameter usernameSubClaim | |
SSHusernameSubClaim | Optional, This overrides (for SSH only) the global parameter usernameSubClaim | |
privilegedAccess.accessID | Privileged access ID (API Key, Azure AD, GCP, AWS IAM) Required | |
privilegedAccess.accessKey | API key accessKey | |
privilegedAccess.allowedAccessIDs | limit access to privileged items only for these end user access ids. If left empty, all access ids are allowedCredentials | [] |
privilegedAccess.existingSecretNames.access | Read accessID and accessKey from an existing secret (accessKey value can be left empty when using cloud identity) | [] |
privilegedAccess.existingSecretNames.allowedIDs | Read permitted access IDs from an existing secret. By default, any access ID is accepted. | [] |
privilegedAccess.azureObjectID | Azure Object ID to use with privileged credentials of type Azure AD | nil |
privilegedAccess.gcpAudience | Audience to use with privileged credentials of type GCP | akeyless.io |
httpProxySettings.http_proxy | Standard linux HTTP Proxy, should contain the URLs of the proxies for HTTP | nil |
httpProxySettings.https_proxy | Standard linux HTTP Proxy, should contain the URLs of the proxies for HTTPS | nil |
httpProxySettings.no_proxy | Standard linux HTTP Proxy, should contain a comma-separated list of domain extensions proxy should not be used for | nil |
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 |
|---|---|---|
ztbConfig.enabled | Enable Zero Trust Bastion | true |
ztbConfig.image.repository | Zero Trust Bastion image name | akeyless/zero-trust-bastion |
ztbConfig.image.tag | Zero Trust Bastion image tag | latest |
ztbConfig.image.pullPolicy | Zero Trust Bastion image pull policy | Always |
ztbConfig.updateStrategy | Updating statefulset strategy | ztbConfig.RollingUpdate |
ztbConfig.containerName | Zero Trust Bastion container name | zero-trust-bastion |
ztbConfig.replicaCount | Number of Zero Trust Bastion nodes | 1 |
ztbConfig.livenessProbe | Liveness probe configuration for Zero Trust Bastion | Check values.yaml file |
ztbConfig.readinessProbe | Readiness probe configuration for Zero Trust Bastion | Check values.yaml file |
ztbConfig.resources.limits | The resources limits for Zero Trust Bastion containers (If HPA is enabled this must be set) | {} |
ztbConfig.resources.requests | The requested resources for Zero Trust Bastion containers (If HPA is enabled this must be set) | {} |
ztbConfig.allowedBastionUrls | List of URLs that will be considered valid for redirection from the Portal back to the bastion | [] |
Exposure parameters
| Parameter | Description | Default |
|---|---|---|
ztbConfig.service.type | Kubernetes Service type | LoadBalancer |
ztbConfig.service.port | API port | 8888 |
ztbConfig.ingress.enabled | Enable ingress resource | false |
ztbConfig.ingress.path | Path for the default host | / |
ztbConfig.ingress.certManager | Add annotations for cert-manager | false |
ztbConfig.ingress.hostname | Default host for the ingress resource | zero-trust-bastion.local |
ztbConfig.ingress.annotations | Ingress annotations | [] |
ztbConfig.ingress.tls | Enable TLS configuration for the hostname defined at ingress.hostname parameter | false |
ztbConfig.ingress.existingSecret | Existing secret for the Ingress TLS certificate | nil |
configuration parameters
| Parameter | Description | Default |
|---|---|---|
| `ztbConf |
Deploy akeyless-sra with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has akeyless-sra 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-sra is pinned at v3.7.0 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