orbitalci / orbital

Orbital is a self-hosted CI system for solo/small consulting dev teams. Written in Rust.
GNU General Public License v3.0
29 stars 2 forks source link

Treat usernames as secrets - keep in secret service #240

Closed tjtelan closed 4 years ago

tjtelan commented 4 years ago

Currently the builds fail fast because they don't have a username to use with the password. They aren't encoded in the git url like with ssh types.

The username needs to be saved into the Secret service with the password so it can be retrieved in future builds. Otherwise the username will always need to be provided by the user.

But SSH repos keep the username with the rest of the uri. This is more information leak than desired.

-- This will require changes to the way we get/set secrets since we're assuming that we only use a single key value. This appears to be the default from the hashicorp_vault crate.

I think my choices are to make 2 calls to Vault, or to use serde to save a hashmap and have a single call to vault. The latter choice might scale better.