Closed deatharse closed 12 months ago
You are filing an issue on unreleased code? There are many broken things in the current state especially the keys. This code may not be released until the OMV repos have saltstack 3005 or newer.
I was testing out the InstallScript repo, and this was something I experienced. I had not realised this was as yet unreleased.
Here is the code for the version that the install script would install - https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-omvextrasorg/blob/9a54f3cfca7377e667dbc5e55be0dcc6902da81a/srv/salt/omv/deploy/omvextras/default.sls
Both variants exhibit the behaviour originally posted.
Not surprising. This variable was added to allow some people to use another mirror in a country where github is blocked. It wasn't really meant for apt-cacher. I will try to make the future code in flight work with it.
No problem separating key urls from repo urls would be useful in future
These are separated now and omv-extras is back to using bash instead of saltstack. https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-omvextrasorg/blob/master/usr/sbin/omv-aptclean#L60
Background
ACNG Manual SSL outlines how to cache requests when using TLS.
Issue
Changing
OMV_EXTRAS_APT_REPOSITORY_URL
via:breaks retrieving the key as 10omvextras.sls#L35 uses the
repo_url
to pull the key.relevant salt output:
Proposed fix
Adding the following (keeping with the naming convention in 20dockerrepo.sls)):
using the new
repo_key
instead ofrepo_url
indownload_omvextras_key
.