# Define the password for the SQL database. This also must be set in the DB_CONNECTION_STRING value.
#
# XXX: warning - do not change this password after container's initial creation, otherwise results in the following error:
#
# Logon Error: 18456, Severity: 14, State: 8.
# Logon Login failed for user 'sa'. Reason: Password did not match that for the login provided. [CLIENT: <ip_x.x.x.x>]
#
# Would need to delete the containers and docker volumes to reset
#
# 2nd startup breaks similarly to above if doing this, can't set dynamically because it'll change each boot and mismatch
#SA_PASSWORD="$(openssl rand 16 | base64)"
#
# annoyingly long to figure out and type type
#SA_PASSWORD="$HOSTNAME-$USER-$PWD"
#
# python-dotenv fails to parse this
#echo "Generated password: '$SA_PASSWORD'"
#
# leaving blank results in:
#
# blank password results in error:
#
# ERROR: Unable to set system administrator password: Password validation failed. The password does not meet SQL Server password policy requirements because it is too short. The password must be at least 8 characters..
#
#SA_PASSWORD=
#
# trying ease of use results in this error:
#
# ERROR: Unable to set system administrator password: Password validation failed. The password does not meet SQL Server password policy requirements because it is not complex enough. The password must be at least 8 characters long and contain characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10 digits, and Symbols..
# It is highly recommended this value is changed as it's the default user password for login to the Octopus Server
#
# ease of use results in this error:
#
# Octopus.Shared.ControlledFailureException: The password was too weak. Please try including a mix of numbers, uppercase and lowercase letters, and special characters.
#
#ADMIN_PASSWORD=admin
#
# too much typing but what can you do...
# doesn't work - env var is taken literally and not evaluated
#ADMIN_PASSWORD="$SA_PASSWORD"
#
# empty results in:
#
# There are no authentication providers enabled. Learn about enabling authentication providers
# Your License key for Octopus Deploy. If left empty, it will try and create a free license key for you
OCTOPUS_SERVER_BASE64_LICENSE=
# Octopus Deploy uses a master key for encryption of your databse. If you're using an external database that's already been setup for Octopus Deploy,
# you can supply the master key to use it.
# If left blank, a new master key will be generated with the database creation.
# Create a new master key with the command: openssl rand 16 | base64
#
#
# if you don't set a Master key it seems to get generated each boot, resulting in this error:
#
# Octopus.Core.Security.MasterKey.MasterKeyMismatchException: Failed to decrypt the Octopus Server certificate. This usually indicates the wrong master key is being used to read encrypted data.
#
#
# must be a base64 string, otherwise results in this error:
#
# octopus-server_1 | The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
# octopus-server_1 | System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.