Commits on Sep 2, 2020

  1. Configuration menu
    Copy the full SHA
    f7e3955 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2020

  1. Refs #30780 - set proper content origin setting

    CONTENT_ORIGIN needs to be poitned at https:// for the
    /pulp/container/ redirect to work properly
    jlsherrill authored and ehelms committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    8e71bbb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. Manage the static assets via a class

    Since 8c66bff the pulpcore-manager
    command runs as root. On a fresh installation this is fine, but on
    upgrades the user doesn't own /var/lib/pulp/assets. This explicitly
    manages the static root.
    
    It is split off to a separate class to better capture the dependencies.
    The database doesn't need to refresh due to static files, nor any
    services.
    ekohl committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    7098cea View commit details
    Browse the repository at this point in the history
  2. Set STATIC_ROOT in settings.py

    By setting it in settings.py, pulp-manager will also know about it. It
    also makes the service file more straight forward.
    ekohl committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    ae470e0 View commit details
    Browse the repository at this point in the history
  3. Set SECURE_PROXY_SSL_HEADER for http/https proto

    In a reverse proxy setup, the process is running on HTTP only, but
    Apache is running on both HTTP and HTTPS. To let Django know, Apache
    sends the X-Forwarded-Proto header[1]. The Django settings documentation
    suggests this solution[2].
    
    [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
    [2]: https://docs.djangoproject.com/en/2.2/ref/settings/#secure-proxy-ssl-header
    ekohl committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    3de6b64 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Release 1.3.0

    wbclark authored and ehelms committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    00af33a View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Drop pid files and fix working dirs

    When using systemd, the pid files are actually not important so they can
    be dropped.
    
    The the WorkingDirectory is set to ~ which will resolve to the user's
    home directory. That means systemd will ensure it is mounted before
    starting services. Pulp itself doesn't use it so it's a cheap way for
    a more reliable service start.
    
    Subscribing to pulpcore-worker@.service is another bugfix to ensure all
    workers use the correct service definition.
    
    Explicitly setting the type and group is more for consistency and
    doesn't actually change anything.
    ekohl authored and wbclark committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    b3b7c13 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Add Pulpcore repository class

    This class uses the new yum.theforeman.org repos that are versions per
    Pulpcore release. This allows easy switching between versions. It also
    properly sets the GPG key validation.
    
    It does switch acceptance testing from staging repositories to stable
    repositories. Another implication is that it switches to Pulpcore 3.6 by
    default. This was chosen since 3.7 is not complete yet.
    ekohl authored and ehelms committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    c9a96d8 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2020

  1. Fixes #31018 - Force UTF-8 database encoding

    If this is not set, the environment is used. Often this causes the
    database to be initialized as ASCII which breaks Pulpcore.
    ekohl authored and ehelms committed Oct 7, 2020
    Configuration menu
    Copy the full SHA
    48b63dd View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2020

  1. Fixes #30465 - Use libexec wrappers for SELinux

    In python3-pulpcore 3.7.1-2 the /usr/libexec/pulpcore wrappers have been
    introduced to enter the proper SELinux domain.
    
    It has also been cherry picked to 3.6.3-2 but in the SELinux policy is
    incomplete so it has no effect. The main benefit of that cherry pick is
    to keep the module compatible with both 3.6 and 3.7.
    ekohl committed Oct 9, 2020
    Configuration menu
    Copy the full SHA
    d9eec93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bb4942 View commit details
    Browse the repository at this point in the history
  3. Fixes #30423 - Change the application layout

    This explicitly sets the all directories and documents the layout. It
    diverges from the upstream defaults in that MEDIA_ROOT is set to a
    subdirectory and the directory permissions are stricter than upstream.
    
    Upstream this layout is proposed as the default.
    https://pulp.plan.io/issues/7178 has been opened for that.
    ekohl authored and ehelms committed Oct 9, 2020
    Configuration menu
    Copy the full SHA
    6a88107 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

  1. Get full resource test coverage

    ekohl authored and ehelms committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    d8d2d35 View commit details
    Browse the repository at this point in the history
  2. Make REMOTE_USER_ENVIRON_NAME mandatory

    Pulpcore has a default for this (which is copied). That means it's a
    good idea to always set it. Otherwise the illusion is created that it's
    an optional thing. However, the reverse proxy must be set up to use
    this. If the header is not cleared, it's a security risk because an
    attack can spoof the header.
    ekohl authored and ehelms committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    1c16585 View commit details
    Browse the repository at this point in the history
  3. Add HTTP / HTTPS vhost management

    The goal of this is that the module can either manage the vhost itself
    or attach fragments to another vhost to embed the application. This
    allows composition.
    ekohl authored and ehelms committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    a60df53 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2020

  1. Configuration menu
    Copy the full SHA
    6f5b7c7 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. Switch to using a Unix socket bind for API and Content services

    The use of a Unix socket between the deployed service and the reverse
    proxy provides tighter security as the only users who can access the
    socket are root and the configured SocketUser. The introduction of
    a systemd socket with a ListenStream also provides automatic activation
    of the underlying service and safer restarts.
    
    This change is backwards incompatible as it removes the host and port parameters
    for the API and Content services in favor of a single bind parameter for each.
    ehelms authored and ekohl committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    04b9f5f View commit details
    Browse the repository at this point in the history
  2. Describe the service setup in README

    ekohl authored and ehelms committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    6659167 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. Add Github action placeholders

    These files need to exist for a Github action to trigger on a PR. The
    goal of this commit is to have proper CI checks on the actual PR to
    switch over.
    
    [skip ci]
    ehelms committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    495cb61 View commit details
    Browse the repository at this point in the history
  2. Switch to GH Actions from Travis

    wbclark authored and ehelms committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    4a4a443 View commit details
    Browse the repository at this point in the history
  3. Set docroot to pulpcore_static

    6a88107 changed the docroot to
    /var/lib/pulp/docroot. While I still think this is a much more
    descriptive name what it is, Pulp upstream has chosen to go with
    pulpcore_static. A suggestion to change it was rejected in [7750].
    
    This path will also be included in the SELinux policy so it's important
    it matches here.
    
    [7750]: https://pulp.plan.io/issues/7750#note-3
    ekohl authored and wbclark committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    23bff59 View commit details
    Browse the repository at this point in the history
  4. Update spec test

    wbclark committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    bd8067b View commit details
    Browse the repository at this point in the history
  5. Release 2.0.0

    wbclark authored and ehelms committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    dd7674a View commit details
    Browse the repository at this point in the history