Update CLAUDE.md with detailed info about pulp-service#955
Open
Update CLAUDE.md with detailed info about pulp-service#955
Conversation
Contributor
Reviewer's GuideExpands and restructures CLAUDE.md to provide a richer, task-oriented reference for the pulp-service plugin, including architecture, middleware, auth, context vars, environment and development workflows, while adding deployment and style/checklist guidance. Sequence diagram for request flow through pulp-service middleware and viewsetssequenceDiagram
actor Client
participant LoadBalancer
participant Gunicorn as Gunicorn_WSGI
participant UserExtraction as UserExtractionMiddleware
participant DjangoMW as DjangoMiddlewareStack
participant ViewSet as DRF_ViewSet
Client->>LoadBalancer: HTTP request
LoadBalancer->>Gunicorn: Forward request
Note over LoadBalancer,Gunicorn: Sets X_Forwarded_For and X_RH_IDENTITY
Gunicorn->>UserExtraction: Call WSGI app
UserExtraction->>UserExtraction: Decode base64 X_RH_IDENTITY
UserExtraction->>UserExtraction: Set REMOTE_USER and ORG_ID
UserExtraction->>DjangoMW: Pass request to Django
DjangoMW->>DjangoMW: ProfilerMiddleware (optional)
DjangoMW->>DjangoMW: RhEdgeHostMiddleware
DjangoMW->>DjangoMW: RHSamlAuthHeaderMiddleware (pulp_mgmt paths)
DjangoMW->>DjangoMW: RequestPathMiddleware (set request_path_var)
DjangoMW->>DjangoMW: ActiveConnectionsMetricMiddleware
DjangoMW->>ViewSet: Dispatch to DRF ViewSet
ViewSet->>ViewSet: Authentication using X_RH_IDENTITY
ViewSet->>ViewSet: Authorization with DomainOrg and ContextVars
ViewSet-->>Client: HTTP response
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
dkliban
reviewed
Mar 3, 2026
dkliban
reviewed
Mar 3, 2026
dkliban
reviewed
Mar 3, 2026
dkliban
requested changes
Mar 16, 2026
- Remove non-existent AIPCCStorageBackend references; storage uses django-storages (S3Boto3Storage upstream, OCIStorage in app/storage.py) - Replace incorrect Celery reference with Redis-based worker (WORKER_TYPE=redis, added via patch 0033) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Improve and expand the CLAUDE.md contributor guide with detailed architecture, component index, and operational reference for the pulp-service plugin.
Documentation: