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

APT hosted repository trouble #22

Open
Mike74000 opened this issue May 31, 2021 · 3 comments
Open

APT hosted repository trouble #22

Mike74000 opened this issue May 31, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Mike74000
Copy link

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 :

  • local docker secret file (like your example file)
  • external docker secret
  • external docker secret injected into environment variable
    In all cases, the value of the docker secret seems to be ok in the /run/secret/MY_SECRET file ...

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

Thanks in advance for your feedbacks.

@bdellegrazie
Copy link

Hi @Mike74000,

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

@bdellegrazie
Copy link

@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 bdellegrazie added the bug Something isn't working label Jun 1, 2021
@bdellegrazie bdellegrazie self-assigned this Jun 1, 2021
@bdellegrazie
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants