Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conf.d support #88

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

LaakkonenJussi
Copy link
Contributor

No description provided.

@LaakkonenJussi LaakkonenJussi force-pushed the jb61966 branch 3 times, most recently from 6613f0e to b7608d1 Compare January 15, 2025 13:52
[util] Add conf.d support for connmand and vpnd. JB#61966

Add support for reading and processing of additional configuration
files. Util is best suited for both daemons to avoid adding more
internal dependencies to vpnd.

The files are saved into the list with the full path if it is given as a
parameter. Callback can be omitted for only getting the list of
configuration files with the desired suffix in the given directory.
Callback gets the full path of the config file for convenience.
[main] Support main.conf.d/ files for overriding configs. JB#61966

Use the util conf.d support to read additional configs. The values in
these additional configs will override any existing configuration set in
the main.conf or any previous conf.d files.
[vpn-settings] Add callback for processing configs

Reformat init to allow processing of separate config files with a
separate callback for the conf.d support.
[vpn] Use util conf.d to read additional configs. JB#61966
@LaakkonenJussi LaakkonenJussi force-pushed the jb61966 branch 2 times, most recently from b5cdb27 to a472224 Compare January 15, 2025 14:06
[firewall-iptables] Read additional firewall configs with conf.d support. JB#61966

Read the configurations when starting and reloading the firewall. When
starting read the files into a list and process each with the callback.
When reloading use the internal processing of files to first check which
files are added and removed and then process the content accordingly.
The config change made the device specific rules to be loaded
differently (correctly), so these needed to be adapted into the tests.
Also the access failure on g_dir_open() needed to be reported back as
a proper error from the test stub.
@LaakkonenJussi LaakkonenJussi changed the title WIP: Add conf.d support Add conf.d support Jan 15, 2025
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.

1 participant