Content guards¶
Content guards are access controls that a distribution applies before it serves content. Tangerine manages the guards and lets you attach one to a distribution.
Guard types¶
| Type | What it checks |
|---|---|
| Content redirect | Redirects unauthenticated clients to a login page instead of returning content |
| Environment header | Requires a request header whose value matches an environment variable on the content app |
| X.509 certificate | Requires a client certificate signed by the configured CA |
| Red Hat Subscription Manager | Validates the RHSM entitlement certificate against the configured CA |
Composite guards already created through the API are listed and can be attached, but Tangerine does not create them because they need a set of existing guard hrefs. Use API admin for that case.
Creating a guard¶
- Open Administration → Content guards.
- Choose Create content guard.
- Pick a guard type, give it a name and optional description, and fill the type-specific fields.
- Save. The list refreshes and the guard becomes selectable on distributions.
Certificates must be complete PEM blocks, including the BEGIN CERTIFICATE and
END CERTIFICATE lines. The content app, not the Pulp API worker, enforces the
guard, so a misconfigured certificate blocks downloads rather than API writes.
Attaching a guard¶
The Content guard picker is part of the shared distribution metadata form:
- when creating a distribution from a repository or from the distributions page,
- when editing distribution metadata.
Choose No content guard to clear it. Editing the content source never changes the guard. The distribution detail page resolves the guard href to its name and type.
Deleting a guard¶
Deleting a guard requires typing its name. Distributions that still reference the guard will stop serving protected content until they are changed or the guard is recreated. Pulp may reject the deletion while a distribution references it; the error is shown in the confirmation dialog.