Skip to content

Add auth0-tenant-health CodeBundle - #762

Open
rw-codebundle-agent[bot] wants to merge 1 commit into
mainfrom
codebundle/auth0-tenant-health
Open

Add auth0-tenant-health CodeBundle#762
rw-codebundle-agent[bot] wants to merge 1 commit into
mainfrom
codebundle/auth0-tenant-health

Conversation

@rw-codebundle-agent

Copy link
Copy Markdown
Contributor

Closes #181 (design-spec: auth0-tenant-health)

Implements the auth0-tenant-health CodeBundle in the rw-cli-codecollection.

What it monitors

Monitors the overall health of an upstream Auth0 tenant:

  • Tenant Service Availability: DNS resolution + well-known discovery + Management API reachability (5xx/unreachable detection).
  • Custom Domain Health: DNS, TLS cert expiry, and verification status for each custom domain.
  • Tenant Error Logs: Buckets Logs API events by type, flags repeated error/warn/anomaly classes.
  • Login Failures & Anomalous Activity: Detects elevated login failures, blocked users, brute-force patterns.
  • Rate Limit & Throttling: Management API rate-limit utilization + limit/429 log signals.
  • Log Stream Delivery Health: Verifies log streams are active and delivering.

Includes an in-repo sli.robot producing a 0-1 health score across six binary dimensions, alongside runbook, slx/taskset/sli templates, generation rules, and static test scaffolding.

Deviation from design spec

  • Secret consumed as a single AUTH0_MGMT_CREDENTIALS value (JSON with client_id/client_secret, or a raw MAPI token) rather than separate CLIENT_ID/CLIENT_SECRET variables, to keep the curl+jq scripts self-contained and match the collection's existing REST-based credential pattern.
  • Generation rules use a custom static auth0_tenant resourceType scoped by a single tenant qualifier (Auth0 is not a natively-discovered RunWhen platform); the operator supplies AUTH0_TENANT.

Validation

python -m scorer.score codebundles/auth0-tenant-health passes 104/104 (threshold 70). .test/validate-all-tests.sh static checks pass.

Monitors the overall health of an upstream Auth0 tenant: service
availability, custom domain health, error/login-failure/rate-limit log
signals, and log stream delivery. Implements the design spec in issue #181.
@rw-codebundle-agent
rw-codebundle-agent Bot requested a review from a team as a code owner August 13, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants