Skip to content

Environment variables

Flags win over environment variables; environment variables win over what bxp trust saved.

Client

Variable Flag Meaning
BXP_CA_URL --ca-url Address of the CA server, e.g. https://ca.example.com:8443.
BXP_ROOT --root Path of the CA's root certificate.
BXP_TOKEN --token A one-time token.
BXP_CLIENT_DIR Where bxp trust saves the trust, instead of the user's configuration directory.
SSH_AUTH_SOCK The ssh-agent socket, for bxp ssh --agent.

Server

Variable Flag / key Meaning
BXP_LOG_FORMAT --log-format text (default) or json.
BXP_LOG_LEVEL --log-level debug, info (default), warn, error.
BXP_KEY_PASSPHRASE_FILE File with the passphrase of the server's encrypted keys.
BXP_KEY_PASSPHRASE The passphrase itself. Removed from the environment once read; prefer a file or a systemd credential.
CREDENTIALS_DIRECTORY Set by systemd with LoadCredentialEncrypted=; BastionXP CA reads the credential bastionxp-ca-key-passphrase from it.

The order in which the server looks for its passphrase is in Protect the CA keys.

Tests

BXP_TEST_SAMBA and BXP_TEST_KEYCLOAK turn on the tests against a real Samba AD and Keycloak (make test-samba, make test-keycloak). They have no effect on the binary.