# sure ## Prerequisite ### Create database - Create the password with `openssl rand -base64 32` - Save this value in secrets.yaml in `postgresql.password.sure` - Access infra server to create sure_db with `podman exec -it postgresql psql -U postgres` ```SQL CREATE USER sure WITH PASSWORD 'postgresql.password.sure'; CREATE DATABASE sure_db; ALTER DATABASE sure_db OWNER TO sure; ``` ### Create oidc secret and hash - Create the secret with `openssl rand -base64 32` - access to auth vm - `podman exec -it authelia sh` - `authelia crypto hash generate pbkdf2 --password 'sure.oidc.secret'` - Save this value in secrets.yaml in `sure.oidc.secret` and `sure.oidc.hash` ### Create session secret value - Create the secret with `LC_ALL=C tr -dc 'A-Za-z0-9!#%&()*+,-./:;<=>?@[\]^_{|}~'