Bug 56867 - Self service dependencies (Postgres/Memcached) are not configurable
Self service dependencies (Postgres/Memcached) are not configurable
Status: NEW
Product: UCS
Classification: Unclassified
Component: Self Service
UCS 5.0
All All
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-22 22:03 CET by Thomas Kintscher
Modified: 2023-11-22 22:26 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
self_service_credentials.patch (7.15 KB, text/plain)
2023-11-22 22:03 CET, Thomas Kintscher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kintscher univentionstaff 2023-11-22 22:03:41 CET
Created attachment 11150 [details]
self_service_credentials.patch

The self service depends on MemcacheD, PostgreSQL and an SMTP server.

In the UCS appliance these components are always locally installed when installing the self service packages.

In containerized environments (UMS/openDesk) this kind of infrastructure may be provided by the operator. The common pattern is to provide a "bundled" instance of the dependencies which can be enabled in a Helm chart, but to also allow configuring  external instances as a alternative.

The self service:
- hardcodes the path to a MemcacheD socket file (without credentials),
- always accesses PostgreSQL on 'localhost' with a fixed username and database,
- allows only setting an SMTP hostname, but not setting the port, username, password or whether to use TLS.

The current container-umc contains a patch to make all of those settings configurable:

https://git.knut.univention.de/univention/customers/dataport/upx/container-umc/-/blob/9b4349e1d74579d8b5d46dbbe1d84833fe76f8f2/docker/server/self_service_credentials.patch

In the interest of simplified maintenance and a common codebase, it would be great to have the features in the upstream code. The default settings could be chosen to be compatible with the current appliance behavior (as is done in the patch above).
Comment 1 Thomas Kintscher univentionstaff 2023-11-22 22:26:36 CET
Added a MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/971