Project

Profile

Help

Issue #3227

Rewrite redirect URL

Added by mihai.ibanescu@gmail.com almost 4 years ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Crane:
master
Platform Release:
2.16.1
Target Release - Crane:
3.2.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As an administrator, I can copy the redirect files from one deployment to another (for example, internal and external), and have Crane redirect to different pulp HTTP frontend machines without the need to re-publish or to hand-edit the redirect files.

Details

In our current setup, we have a purely internal pulp deployment, that publishes to an NFS share.

HTTP frontend machines handle the cert-based authn/authz and serve the content from the NFS share.

We have an internal set of HTTP frontend machines, and an internal customer has access to published content for all development stages (dev/test/prod).

We also have an external set of HTTP frontend machines, that handle external customer requests, and only serve the prod stage. Content from the internal NFS share is selectively rsynced into the external disk share.

This all works great for rpm and such.

I believe there is a problem with docker. We would have one internal and one external crane deployment, as expected. Content would be rsynced, as usual. However, because the redirect URL is "baked" into the redirect json files, the external Crane would redirect to the internal system, which is not helpful.

We would prefer not to republish / recreate the redirect files in our transition from internal to external content.

One way to handle this would be a Crane configuration option that directs crane to rewrite the redirect URL. In that case, internal and external crane systems would be configured differently.


Related issues

Related to Crane - Story #3559: Support redirects to CDN endpoints using HMAC token authorizationCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision b4cec8ff View on GitHub
Added by peasters over 3 years ago

Add support for CDN token auth and url rewriting

  • Adds support for rewriting base URLs of repos to a new location (e.g. access.redhat.com/webassets/docker to registry.redhat.io/containers)
  • Adds support for generating HMAC tokens for query string authorization with CDN providers

Closes #3559 Closes #3227

History

#1 Updated by ipanova@redhat.com almost 4 years ago

  • Triaged changed from No to Yes

#2 Updated by peasters over 3 years ago

  • Status changed from NEW to MODIFIED

#3 Updated by ipanova@redhat.com over 3 years ago

  • Related to Story #3559: Support redirects to CDN endpoints using HMAC token authorization added

#4 Updated by ipanova@redhat.com over 3 years ago

  • Platform Release set to 2.16.1
  • Target Release - Crane set to 3.2.0

#5 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from MODIFIED to 5

#6 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#7 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF