docs(staging): add personal report acceptance and rollback runbook
This commit is contained in:
@@ -19,3 +19,8 @@ ADMIN_EMAILS=<comma-separated-staging-admin-emails>
|
||||
EPAY_CONFIG_ENCRYPTION_KEY=<independent-openssl-rand-base64-32-output>
|
||||
EPAY_CHAT_ENABLED=false
|
||||
JYOTISH_DYNAMIC_RECTIFICATION_TOKEN=<independent-openssl-rand-base64-32-output>
|
||||
|
||||
# Personal reports are staging-only in this rollout. The web service receives
|
||||
# these server-side values through env_file; they are not NEXT_PUBLIC values.
|
||||
PERSONAL_REPORT_ENABLED=true
|
||||
PERSONAL_REPORT_DAILY_LIMIT=5
|
||||
|
||||
@@ -106,4 +106,22 @@ fi
|
||||
require_selector EPAY_CHAT_ENABLED false
|
||||
require_literal JYOTISH_DYNAMIC_RECTIFICATION_TOKEN 32
|
||||
|
||||
personal_report_enabled_count="$(grep -Ec '^PERSONAL_REPORT_ENABLED=' "$ENV_FILE" || true)"
|
||||
personal_report_enabled="$(grep -E '^PERSONAL_REPORT_ENABLED=' "$ENV_FILE" || true)"
|
||||
personal_report_enabled="${personal_report_enabled#*=}"
|
||||
if [ "$personal_report_enabled_count" -ne 1 ] ||
|
||||
[[ "$personal_report_enabled" != "true" && "$personal_report_enabled" != "false" ]]; then
|
||||
echo "invalid staging personal report setting: PERSONAL_REPORT_ENABLED" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
personal_report_daily_limit_count="$(grep -Ec '^PERSONAL_REPORT_DAILY_LIMIT=' "$ENV_FILE" || true)"
|
||||
personal_report_daily_limit="$(grep -E '^PERSONAL_REPORT_DAILY_LIMIT=' "$ENV_FILE" || true)"
|
||||
personal_report_daily_limit="${personal_report_daily_limit#*=}"
|
||||
if [ "$personal_report_daily_limit_count" -ne 1 ] ||
|
||||
[[ ! "$personal_report_daily_limit" =~ ^[1-9][0-9]*$ ]]; then
|
||||
echo "invalid staging personal report setting: PERSONAL_REPORT_DAILY_LIMIT" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "staging environment selectors: valid"
|
||||
|
||||
Reference in New Issue
Block a user