Skip to content

Commit

Permalink
fix: issue with permit-X11-forwarding case using viper
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo RUTH authored and pablo-ruth committed Jul 19, 2024
1 parent 98aab3a commit 8a3123f
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 8a3123f

Please sign in to comment.