flip_api.scripts.generate_internal_service_key ============================================== .. py:module:: flip_api.scripts.generate_internal_service_key .. autoapi-nested-parse:: Generate the internal service key used by fl-server to authenticate with flip-api. Both ``INTERNAL_SERVICE_KEY`` (plaintext) and ``INTERNAL_SERVICE_KEY_HASH`` (SHA-256 hex digest) are written into the environment file. On subsequent runs the script checks that the two values are in sync and skips if they are. Usage: make generate-internal-service-key make generate-internal-service-key ENV_FILE=.env.stag make generate-internal-service-key FORCE=1 Attributes ---------- .. autoapisummary:: flip_api.scripts.generate_internal_service_key.REPO_ROOT Functions --------- .. autoapisummary:: flip_api.scripts.generate_internal_service_key.main Module Contents --------------- .. py:data:: REPO_ROOT .. py:function:: main() -> None Generate the internal service key and update the environment file. :raises SystemExit: If the env file is missing.