Skip to content

Commit

Permalink
Merge pull request #40 from perpetualcacophony/secret-hotfix
Browse files Browse the repository at this point in the history
quick fix to only take the first line of a secret
  • Loading branch information
perpetualcacophony authored Aug 29, 2024
2 parents b0af3ab + 4e9a660 commit 9231988
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/framework/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,11 @@ impl SecretStore for SecretFiles<'_> {
tokio::fs::read_to_string(self.directory.join(secret.to_string()))
.await
.ok()
.map(|s| {
s.lines()
.next()
.expect("secret file should not be empty")
.to_owned()
})
}
}

0 comments on commit 9231988

Please sign in to comment.