AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

APT hosted repository trouble #22

Open Mike74000 opened 3 years ago

Mike74000 commented 3 years ago

Hi,

Thanks for this awesome plugin ! Do you experiment trouble with aptSigning keypair value imported from docker secret (and used for apt-hosted repository) ? It looks like malformed in my case (all in one line if I copy paste the value imported from Nexus configuration GUI to Vscode instead of PGP private key classic template ...) I try several approach using :

This trouble mades the plugin not suitable for APT hosted repository configuration...

Thanks in advance for your feedbacks.

bdellegrazie commented 3 years ago

Hi @Mike74000,

I haven't directly used it with apt repository signing as that's fairly new but I'll take a look.

bdellegrazie commented 3 years ago

@Mike74000 : thank you for pointing this out. It looks like there's an issue with the way files are interpolated into the YAML and the subsequent content is then injected into the configuration

bdellegrazie commented 1 year ago

@Mike74000 : just FYI, while I haven't been able to code a solution to the problem I do have a work around.

  1. Insert an encrypted PEM certificate into the YAML file with a template engine so that the correct indent is supplied (e.g. gomplate)
  2. Supply the PEM password as a secret.