Project

Profile

Help

Story #8898

closed

As a user, I can configure Pulp to include routes from third-party django apps

Added by bmbouter over 3 years ago. Updated almost 3 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulpcore/2011":https://github.com/pulp/pulpcore/issues/2011


Problem

Some users want to use include third party software, e.g. django-sentry or django-social-auth.

Solution

Introduce a setting named ADDITIONAL_URLS which defaults to ADDITIONAL_URLS = None.

Users could solve this django-sentry inclusion by specifying:

<Details here>

Alternatives Considered

Pulp could attempt to include urls of various common third-party applications as users request them, like this commit would have. This has several drawbacks:

  1. a release must occur for any new request
  2. The user may want it rooted somewhere else
  3. There is a low-grade security concern that gratuitously importing third-party Python code without users being able to turn it off may not be safe, for example with package name mimicking

Another alternative was to have settings to enable specific third-party url inclusion. This has these drawbacks though:

  1. a release must occur for any new request
  2. The user may want it rooted somewhere else
Actions #1

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #2

Updated by bmbouter over 3 years ago

I think we need to accept the additional urls as python code because otherwise we'd have to outline a format which effectively mimics all of the options Django offers: https://docs.djangoproject.com/en/3.2/ref/urls/#django.urls.path

Actions #3

Updated by pulpbot almost 3 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF