Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-486

Combine `PULP_REDIS_URL` from available environment variables in container.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.3.0b3
    • None
    • Infrastructure
    • None
    • AAH Sprint 7

      Pulp does not recognize REDIS_SSL parameter when building settings for RQ in pulpcore/rqconfig.py. At the moment the only way to configure TLS connection to Redis is to pass REDIS_URL.

      Since the Redis connection parameters are passed as a secret and mapped to individual environment variables it is not possible to combine REDIS_URL outside of the container.

      Requirements:

      • At the container initialization, individual Redis connection parameters, that are passed as environment variables must be transformed into a single PULP_REDIS_URL parameter.
      • Individual connection parameters (PULP_REDIS_HOST, PULP_REDIS_PORT, etc.) must be unset after transformation.
      • Redis connection URL must follow format:
        • redis://[[username]:[password]]@localhost:6379/0 – for plain connection.
        • rediss://[[username]:[password]]@localhost:6379/0 – for TLS connection.

            hhummel@redhat.com Henderson Hummel (Inactive)
            osapryki Oleksandr Saprykin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: