icon

Security

We take security very seriously. This document provides an overview of Infra's security model. If you have found a security vulnerability please disclose it privately to us by email via security@infrahq.com.

General Security

HTTPS

By default Infra and its components communicate via TLS. Infra's API server generates self-signed TLS certificates out of the box, and valid public or private TLS certificates can be used with the Infra server by putting it behind a Kubernetes ingress.

Authentication

When users login to Infra as a valid user they are issued a session token with a 24 character secret that is randomly generated. The SHA256 hash of this token is stored server-side for token validation. This session token is stored locally under ~/.infra.

When a user connects to a cluster after login, Infra issues a new JWT signed with an ECDSA signature using P-521 and SHA-512. This JWT is verified by the connector. If JWT and the user role is valid at the destination, the user is granted access.

Deployment

When deploying Infra, we recommend Infra be deployed in its own namespace to minimize the deployment scope.

Sensitive Information

Secrets can be stored in a variety of secret storage backends, including Kubernetes secrets, Vault, AWS Secrets Manager, AWS SSM (Systems Manager Parameter Store), and some simple options exist for loading secrets from the OS or container, such as: loading secrets from environment variables, loading secrets from files on the file system, and even plaintext secrets directly in the configuration file (though this is not recommended). With all types except for plaintext, the respective secret object names are specified in the configuration file and the actual secret is never persisted in Infra's storage. In the case of all secret types (including plaintext), the secret data is encrypted at rest in the db.

Encrypted At Rest

Sensitive data is always encrypted at rest. See encryption keys for more information on how to use custom encryption keys with Infra.


Sign up for updates

You can unsubscribe at any time.