Harden GitLab Wiki Manager
Scope
Production-hardening for the GitLab Wiki Manager service:
- Add rate limiting to API calls
- Implement retry logic with exponential backoff
- Make migrate operation idempotent (safe to re-run)
- Ensure dry-run flag defaults to
true
(safe by default)
Done When
-
Rate limits configured (respect GitLab API limits) -
Retry logic implemented with exponential backoff -
Idempotent migration (skip existing pages by default) -
Dry-run defaults to true
in MigrationService -
CI job successfully migrates 1 repo wiki in dry-run mode -
Live migration tested and verified
Current State
Safety Requirements
- Dry-run first: All migrations default to preview mode
- Idempotent: Safe to re-run migrations without duplication
- Rate-limited: Respect GitLab API constraints
- Resilient: Retry transient failures automatically