-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for commit sigining PGP key passphrases
Add support for decrypting the private key of the commit signing PGP key. The secret specified in `spec.commit.signingKey.secretRef` can now optionally have a `passphrase` key where it's value is the password to be used for decryptin the private key. Signed-off-by: Sanskar Jaiswal <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,7 +226,21 @@ will result in commits with the author `Fluxbot <[email protected]>`. | |
|
||
The optional `signingKey` field can be used to provide a key to sign commits with. It holds a | ||
reference to a secret, which is expected to have a file called `git.asc` containing an | ||
ASCII-armoured PGP key. | ||
ASCII-armoured PGP key. If the private key is protected by a password, you can specify the same | ||
in the secret using the `passphrase` key. | ||
|
||
```yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: signing-key | ||
namespace: default | ||
stringData: | ||
git.asc: | | ||
<ARMOR ENCODED PGP KEY> | ||
passphrase: <private-key-passphrase> | ||
``` | ||
|
||
The `messageTemplate` field is a string which will be used as a template for the commit message. If | ||
empty, there is a default message; but you will likely want to provide your own, especially if you | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters