Problem: I created a personnal deb repository with foreman and I need to sign it to use it with apt.
Expected outcome: apt works without adding “allow-insecure=yes” in my sources.list
**Foreman and Proxy versions:** Foreman 3.8.0, Katello 4.10
**Foreman and Proxy plugin versions:**
**Distribution and version:**RedHat 8.9
**Other relevant data:**
<!-- Managed client information, logs from Foreman and/or the Proxy, modified templates, commands issued, etc. For logs and configuration files, please use "preformatted text" from the toolbar to ensure proper formatting. -->
gpg --list-keys => Ok I got a key to sign the repository
bash-4.4$ pulpcore-manager add-signing-service -v 3 --class 'deb:AptReleaseSigningService' 'katello_deb_sign' /var/lib/pulp/sign_deb_release.sh *my key id*
Traceback (most recent call last):
File "/usr/bin/pulpcore-manager", line 33, in <module>
sys.exit(load_entry_point('pulpcore==3.28.19', 'console_scripts', 'pulpcore-manager')())
File "/usr/lib/python3.9/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3.9/site-packages/pulpcore/app/management/commands/add-signing-service.py", line 89, in handle
SigningService.objects.create(
File "/usr/lib/python3.9/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/usr/lib/python3.9/site-packages/pulpcore/app/models/content.py", line 869, in save
self.validate()
File "/usr/lib/python3.9/site-packages/pulp_deb/app/models/signing_service.py", line 41, in validate
return_value = self.sign(test_release_path)
File "/usr/lib/python3.9/site-packages/pulpcore/app/models/content.py", line 812, in sign
raise RuntimeError(str(completed_process.stderr))
RuntimeError: b'gpg: signing failed: Permission denied\ngpg: signing failed: Permission denied\n'
Can someone help me to find a solution ?
Regards,
JF