akeyless-sra

by akeyless.io

Helm chartv3.7.0App 3.7.0_2.2.3Verified publisher

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 entryMap entry
Values and typesexactly as writtennumbers are read as 64-bit floats: 1.0 renders as 1, integers above 2^53 lose precision
Templated valueskeep their type: {{ .Values.x }} renders a numberalways strings: "{{ .Values.x }}" renders '3'
Key order, quoting, commentskeptkeys sorted, quoting normalized, comments dropped
{{ }} anywhere in the objectevaluated as a templateevaluated 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

ParameterDescriptionDefault
dockerRepositoryCredsAkeyless docker repository credentials. Please contact Akeyless. Requirednil
apiGatewayURLAPI Gateway URL to use to fetch the secrets Requiredhttps://rest.akeyless.io
privilegedAccessSupported 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
legacySigningAlgWhen set to "true", will sign ssh certificates using the legacy '[email protected]' signing algorithm name in the certificate."false"
usernameSubClaimOptional, 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).
RDPusernameSubClaimOptional, This overrides (for RDP only) the global parameter usernameSubClaim
SSHusernameSubClaimOptional, This overrides (for SSH only) the global parameter usernameSubClaim
privilegedAccess.accessIDPrivileged access ID (API Key, Azure AD, GCP, AWS IAM) Required
privilegedAccess.accessKeyAPI key accessKey
privilegedAccess.allowedAccessIDslimit access to privileged items only for these end user access ids. If left empty, all access ids are allowedCredentials[]
privilegedAccess.existingSecretNames.accessRead accessID and accessKey from an existing secret (accessKey value can be left empty when using cloud identity)[]
privilegedAccess.existingSecretNames.allowedIDsRead permitted access IDs from an existing secret. By default, any access ID is accepted.[]
privilegedAccess.azureObjectIDAzure Object ID to use with privileged credentials of type Azure ADnil
privilegedAccess.gcpAudienceAudience to use with privileged credentials of type GCPakeyless.io
httpProxySettings.http_proxyStandard linux HTTP Proxy, should contain the URLs of the proxies for HTTPnil
httpProxySettings.https_proxyStandard linux HTTP Proxy, should contain the URLs of the proxies for HTTPSnil
httpProxySettings.no_proxyStandard linux HTTP Proxy, should contain a comma-separated list of domain extensions proxy should not be used fornil

Zero Trust Bastion Parameters

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

Deployment parameters

ParameterDescriptionDefault
ztbConfig.enabledEnable Zero Trust Bastiontrue
ztbConfig.image.repositoryZero Trust Bastion image nameakeyless/zero-trust-bastion
ztbConfig.image.tagZero Trust Bastion image taglatest
ztbConfig.image.pullPolicyZero Trust Bastion image pull policyAlways
ztbConfig.updateStrategyUpdating statefulset strategyztbConfig.RollingUpdate
ztbConfig.containerNameZero Trust Bastion container namezero-trust-bastion
ztbConfig.replicaCountNumber of Zero Trust Bastion nodes1
ztbConfig.livenessProbeLiveness probe configuration for Zero Trust BastionCheck values.yaml file
ztbConfig.readinessProbeReadiness probe configuration for Zero Trust BastionCheck values.yaml file
ztbConfig.resources.limitsThe resources limits for Zero Trust Bastion containers (If HPA is enabled this must be set){}
ztbConfig.resources.requestsThe requested resources for Zero Trust Bastion containers (If HPA is enabled this must be set){}
ztbConfig.allowedBastionUrlsList of URLs that will be considered valid for redirection from the Portal back to the bastion[]

Exposure parameters

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

configuration parameters

ParameterDescriptionDefault
`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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartakeyless-sra is pinned at v3.7.0 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