Skip to content

Commit

Permalink
Merge pull request fluxcd#1048 from fluxcd/restore-key-algorithm-default
Browse files Browse the repository at this point in the history
Restore default key algorithm flag create source
  • Loading branch information
stefanprodan authored Mar 5, 2021
2 parents 80419f0 + ed93e93 commit ca660b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/flux/create_secret_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func init() {

func NewSecretGitFlags() secretGitFlags {
return secretGitFlags{
keyAlgorithm: "rsa",
keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.RSAPrivateKeyAlgorithm),
rsaBits: 2048,
ecdsaCurve: flags.ECDSACurve{Curve: elliptic.P384()},
}
Expand Down
1 change: 1 addition & 0 deletions cmd/flux/create_source_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func init() {

func newSourceGitFlags() sourceGitFlags {
return sourceGitFlags{
keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.RSAPrivateKeyAlgorithm),
keyRSABits: 2048,
keyECDSACurve: flags.ECDSACurve{Curve: elliptic.P384()},
}
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/flux_create_source_git.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ flux create source git [name] [flags]
-p, --password string basic authentication password
--secret-ref string the name of an existing secret containing SSH or basic credentials
--ssh-ecdsa-curve ecdsaCurve SSH ECDSA public key curve (p256, p384, p521) (default p384)
--ssh-key-algorithm publicKeyAlgorithm SSH public key algorithm (rsa, ecdsa, ed25519)
--ssh-key-algorithm publicKeyAlgorithm SSH public key algorithm (rsa, ecdsa, ed25519) (default rsa)
--ssh-rsa-bits rsaKeyBits SSH RSA public key bit size (multiplies of 8) (default 2048)
--tag string git tag
--tag-semver string git tag semver range
Expand Down

0 comments on commit ca660b7

Please sign in to comment.