shellgraph

Environment variables

All the variables that configure shellgraph-server.

General

VariableDefaultDescription
SHELLGRAPH_KEY(required)Master key: 32 bytes, base64. It encrypts the SSH private keys. Make it with shellgraph-server keygen.
SHELLGRAPH_PUBLIC_URLURL of the requestPublic URL of the server, for example https://shellgraph.example.net. Set it when the server is behind a reverse proxy. The OIDC callback and the map links use it.
SHELLGRAPH_ADMIN_GROUP(required)Group name for the admin role.
SHELLGRAPH_VIEWER_GROUPnoneGroup name for the viewer role.

At least one of LDAP and OIDC must be configured, or the server does not start.

LDAP

VariableDefaultDescription
SHELLGRAPH_LDAP_URLnoneldap://host:389 or ldaps://host:636. This variable enables LDAP.
SHELLGRAPH_LDAP_STARTTLSfalseSet to true for StartTLS on an ldap:// URL.
SHELLGRAPH_LDAP_CA_FILEsystem CAsPEM file with the CA certificates of the LDAP server.
SHELLGRAPH_LDAP_BIND_DNanonymousDN of the service account.
SHELLGRAPH_LDAP_BIND_PASSWORDnonePassword of the service account.
SHELLGRAPH_LDAP_USER_BASE(required with LDAP)Base DN of the users, for example ou=people,dc=example,dc=net.
SHELLGRAPH_LDAP_USER_FILTER(&(objectClass=inetOrgPerson)(uid={username}))Filter that finds the user. {username} is the login, escaped.
SHELLGRAPH_LDAP_GROUP_BASEuser baseBase DN of the groups.
SHELLGRAPH_LDAP_GROUP_FILTER(|(member={dn})(uniqueMember={dn})(memberUid={username}))Filter that finds the groups of the user. {dn} is the user DN and {username} is the login, both escaped. The default works with groupOfNames, groupOfUniqueNames and posixGroup.

OIDC

VariableDefaultDescription
SHELLGRAPH_OIDC_ISSUERnoneIssuer URL, for example https://id.example.net. This variable enables OIDC. It must use https, except for localhost and 127.0.0.1.
SHELLGRAPH_OIDC_CLIENT_ID(required with OIDC)Client ID.
SHELLGRAPH_OIDC_CLIENT_SECRETnoneClient secret. Leave it empty for a public client.
SHELLGRAPH_OIDC_SCOPESopenid profile email groupsScopes.
SHELLGRAPH_OIDC_GROUPS_CLAIMgroupsClaim with the group names.
SHELLGRAPH_OIDC_BUTTONLog in with OIDCText of the button on the login page.

The OIDC redirect URI is <public URL>/api/auth/oidc/callback.