Project

Profile

Help

Issue #9421

closed

Add support for sslmode to settings in pulp and pulp-operator.

Added by benthomasson over 2 years ago. Updated over 2 years ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
4. Urgent
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
GalaxyNG
Sprint:
Quarter:

Description

In order to run AAP on Azure I need to enable the sslmode option for the database connection for automation hub.

Automation Hub runs as a django app and so needs a DATABASES configuration like this:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': "db_name",
        'USER': "db_username",
        'PASSWORD': "db_password",
        'HOST': "db_host",
        'OPTIONS': {'sslmode': 'require'},
    },
}

I am using the pulp-operator to install galaxy_ng and I would like the pulp-operator to look for this option in the databases secret:


---
apiVersion: v1
kind: Secret
metadata:
  name: galaxy-pulp-postgres-configuration
  namespace: default
stringData:
  host: postgres
  port: "5432"
  database: pulp
  username: pulp
  password: XXX 
  sslmode: require
  type: unmanaged
type: Opaque

Actions #1

Updated by pulpbot over 2 years ago

  • Status changed from NEW to POST

Added by Fabricio Aguiar over 2 years ago

Revision 6a499959 | View on GitHub

Added support to override PosgreSQL sslmode

closes #9421

Actions #2

Updated by Anonymous over 2 years ago

  • Status changed from POST to MODIFIED

Also available in: Atom PDF