"""Environment variables for the app.""" from os import environ # Common ENVIRONMENT: str = environ.get("Environment", "dev").lower() APP_DEBUG: bool = environ.get("APP_DEBUG", "False").lower() in {"true", "1", "yes"} SENTRY_DSN: str | None = environ.get("SENTRY_DSN", None) # Snowflake private key, used to authenticate the app with Snowflake. SNOWFLAKE_PRIVATE_KEY: str = environ.get("SNOWFLAKE_PRIVATE_KEY", "") # The Monday.com app Client Secret, to verify the signature of Monday.com JWT # sessionTokens passed by the frontend. Surprisingly, the validation is NOT # done using the Signing Secret instead, see: # https://community.monday.com/t/cant-verify-jwt-token-in-the-backend/10093/5 # # Find the Client Secret in the Monday.com app settings under "OAuth & Permissions". MONDAY_APP_CLIENT_SECRET: str = environ.get("MONDAY_APP_CLIENT_SECRET", "")