boinkor-net / hoopsnake

A not-very-featureful SSH server for initrd that listens on your tailscale network
https://github.com/boinkor-net/hoopsnake
Apache License 2.0
4 stars 1 forks source link

Handle credentials in a cleaner way #15

Closed antifuchs closed 7 months ago

antifuchs commented 7 months ago

Extract the credential retrieval into a function, getCredential that will retrieve the cred from the environment & remove the variable on successful retrieval (this should result in a cleaner environment in downstream processes).

Also, add the two secrets I think users should care about (OAUTH2 client ID and secret) in files whose paths get passed on the commandline.