Skip to content

Commit

Permalink
fix: issue with permit-X11-forwarding case using viper (#231)
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo RUTH <[email protected]>
  • Loading branch information
pablo-ruth and Pablo RUTH authored Jul 19, 2024
1 parent 98aab3a commit cc17d3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/signer/local/Signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func (s *Signer) Init(config *viper.Viper) error {
s.CriticalOptions = config.GetStringMapString("criticalOptions")
s.Extensions = config.GetStringMapString("extensions")

// Little hack to handle permit-X11-forwarding case issue with viper https://github.com/signmykeyio/signmykey/issues/230
if _, ok := s.Extensions["permit-x11-forwarding"]; ok {
s.Extensions["permit-X11-forwarding"] = ""
delete(s.Extensions, "permit-x11-forwarding")
}

return nil
}

Expand Down

0 comments on commit cc17d3b

Please sign in to comment.