Skip to content

Implement template for SSSD configuration#331

Open
runleveldev wants to merge 7 commits into
mainfrom
rgingras/feature/323-external-ldap-authentication
Open

Implement template for SSSD configuration#331
runleveldev wants to merge 7 commits into
mainfrom
rgingras/feature/323-external-ldap-authentication

Conversation

@runleveldev
Copy link
Copy Markdown
Collaborator

@runleveldev runleveldev commented Jun 4, 2026

image

Copilot Summary

This pull request updates the SSSD configuration process in the base image to support environment-based templating, making the configuration more flexible and secure. The static sssd.conf is replaced with a template that is rendered at container startup using environment variables, and the Dockerfile and systemd configuration are updated accordingly.

SSSD configuration templating:

  • Replaced the static sssd.conf file with a new sssd.conf.template that uses environment variables for all sensitive or environment-specific settings, such as LDAP URIs, TLS requirements, schema, search bases, and authentication tokens. [1] [2]
  • Updated the Dockerfile to copy the template (sssd.conf.template) instead of the static config, and added a systemd drop-in (50-sssd-conf-template.conf) to render the template into the final sssd.conf at service startup using envsubst. [1] [2]

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the base image’s SSSD configuration to be generated from an environment-driven template at boot, and wires up admin-configurable default container environment variables (including new SSSD-related keys) through the server seeders and the settings UI.

Changes:

  • Replace the static sssd.conf with an sssd.conf.template intended to be rendered at startup via environment variables.
  • Add a systemd drop-in to render the template into /etc/sssd/sssd.conf before sssd.service starts, and update the base image Dockerfile accordingly.
  • Seed new SSSD-related default_container_env_vars entries and improve the Settings UI layout for editing default env vars.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
images/base/sssd.conf.template New SSSD config template using environment variables.
images/base/sssd.conf Removes the previously hard-coded SSSD configuration.
images/base/Dockerfile Copies the template + systemd drop-in and improves rootfs download robustness.
images/base/50-sssd-conf-template.conf systemd drop-in to render sssd.conf from the template at service start.
create-a-container/seeders/20260604000000-seed-sssd-env-vars.js Seeds default env-var keys for populating the SSSD template.
create-a-container/seeders/20260311000000-seed-wazuh-env-vars.js Adjusts description text for the Wazuh registration password env var.
create-a-container/client/src/pages/settings/SettingsPage.tsx Switches default env var editing UI to a table-based layout.

Comment thread images/base/Dockerfile
@runleveldev runleveldev marked this pull request as ready for review June 5, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants