feat(auth): add Redis authorization caching

This commit is contained in:
2026-08-01 12:20:31 +08:00
parent 84c2b0b21d
commit 46abf4d62f
36 changed files with 21757 additions and 35 deletions

View File

@@ -82,12 +82,8 @@ if [[ -z "${ready_body}" ]]; then
exit 1
fi
printf '%s\n' "${ready_body}" >"${result_dir}/readiness.json"
if ! printf '%s' "${ready_body}" | grep -q '"database":true'; then
echo "PostgreSQL is not ready: ${ready_body}" >&2
exit 1
fi
if ! printf '%s' "${ready_body}" | grep -q '"redis":{"configured":true,"ready":true}'; then
echo "Redis is not configured and ready: ${ready_body}" >&2
if ! printf '%s' "${ready_body}" | grep -q '"status":"ready"'; then
echo "PostgreSQL or Redis is not ready: ${ready_body}" >&2
exit 1
fi