vault-plugin-auth-ssh icon indicating copy to clipboard operation
vault-plugin-auth-ssh copied to clipboard

Add support for rsa algorithm signing

Open 42wim opened this issue 9 months ago • 4 comments

Fixes #24

42wim avatar Mar 24 '25 23:03 42wim

Wow.

131 avatar Mar 25 '25 12:03 131

Is there a way that the github action provide the artifacts so i can do some testing with the build ?

131 avatar Mar 25 '25 12:03 131

No, but you can build it very easy. Just install go and run go build -o vault-plugin-auth-ssh cmd/vault-plugin-auth-ssh/main.go in the cloned repo

42wim avatar Mar 25 '25 12:03 42wim

I've

CGO_ENABLED=0 go build -o vault-plugin-auth-ssh_rsa_ba039da cmd/vault-plugin-auth-ssh/main.go

sha256 
9d1bd9905172bcaf65391c493818832c7fe90eb40d02d329b3a7764140c0e3ad  vault-plugin-auth-ssh_rsa_ba039da

I've

resource "vault_plugin" "vault-plugin-auth-ssh" {
  provider = vault.primary
  type     = "auth"
  name     = "vault-plugin-auth-ssh"


  command  = "vault-plugin-auth-ssh_v0.3.1"
  version  = "v0.3.1"
  sha256   = "4c491435998d5476fd3f2a91f7a56fe6fd67c097f7786d097a3215533e5d839a"

  # command  = "vault-plugin-auth-ssh_rsa_ba039da"
  # version  = "v0.3.4+rsa"
  # sha256   = "9d1bd9905172bcaf65391c493818832c7fe90eb40d02d329b3a7764140c0e3ad"


}

to encounter weids


Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: "" is not a supported plugin type
│
│   with module.primary.vault_plugin.vault-plugin-auth-ssh,

I've


vault plugin register -sha256=9d1bd9905172bcaf65391c493818832c7fe90eb40d02d329b3a7764140c0e3ad -version=v0.3.4+rsa -command=vault-plugin-auth-ssh_rsa_ba039da auth vault-plugin-auth-ssh

to 
vault plugin list | grep ssh
vault-plugin-auth-ssh                auth        v0.3.4+rsa

Yet, the plugin does not seems to load properly

I'll try harder next week

131 avatar Mar 26 '25 10:03 131