Project

Profile

Help

Story #8898

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

Added by bmbouter 4 months ago. Updated 4 months ago.

Status:
NEW
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

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

History

#1 Updated by bmbouter 4 months ago

  • Description updated (diff)

#2 Updated by bmbouter 4 months 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

Please register to edit this issue

Also available in: Atom PDF