It would be nice to encode sections with the same name in INI style config files.
Duplicate sections should not be dropped from the encoded output, because
some programs, namely wg from the wireguard-tools rely on this.
The configuration file format is based on INI. There are two top
level sections -- Interface and Peer. Multiple Peer sections may
be specified, but only one Interface section may be specified.
Example
Trying to encode a wg-quick configuration file fails because only a single [Peer] section is returned in the encoded with sops -e output.
It would be nice to encode sections with the same name in INI style config files. Duplicate sections should not be dropped from the encoded output, because some programs, namely wg from the wireguard-tools rely on this.
From https://www.man7.org/linux/man-pages/man8/wg.8.html
Example
Trying to encode a
wg-quick
configuration file fails because only a single [Peer] section is returned in the encoded withsops -e
output.input file test.ini
The following age key is used for encryption.
encrypted output
Only the first [Peer] section is included in the encrypted output file.