-
- Downloads
gitlab-sshd: Add support for configuring host certificates
This adds support for specifying host certificates via the `host_cert_files` option and advertises the signed key to the client. This acts similarly to OpenSSH's `HostCertificate` parameter: gitlab-sshd attempts to match a host key to its certificate, and then substitutes the matching host key with a certificate signed by a trusted certificate authority's key. This is the first requirement to supporting SSH certificates. This will enable the client to trust the server if both trust a common certificate authority. The `TrustedUserCAKeys` option will need to be supported later for the server to trust all user keys signed by this certificate authority. Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/495
Showing
- config.yml.example 4 additions, 0 deletionsconfig.yml.example
- internal/config/config.go 1 addition, 0 deletionsinternal/config/config.go
- internal/sshd/server_config.go 64 additions, 8 deletionsinternal/sshd/server_config.go
- internal/sshd/server_config_test.go 40 additions, 0 deletionsinternal/sshd/server_config_test.go
- internal/testhelper/testdata/testroot/certs/invalid/server-cert.pub 1 addition, 0 deletions...esthelper/testdata/testroot/certs/invalid/server-cert.pub
- internal/testhelper/testdata/testroot/certs/valid/ca 38 additions, 0 deletionsinternal/testhelper/testdata/testroot/certs/valid/ca
- internal/testhelper/testdata/testroot/certs/valid/ca.pub 1 addition, 0 deletionsinternal/testhelper/testdata/testroot/certs/valid/ca.pub
- internal/testhelper/testdata/testroot/certs/valid/server-cert.pub 1 addition, 0 deletions.../testhelper/testdata/testroot/certs/valid/server-cert.pub
- internal/testhelper/testdata/testroot/certs/valid/server.pub 1 addition, 0 deletionsinternal/testhelper/testdata/testroot/certs/valid/server.pub
- internal/testhelper/testdata/testroot/certs/valid/server2-cert.pub 1 addition, 0 deletions...testhelper/testdata/testroot/certs/valid/server2-cert.pub
- internal/testhelper/testdata/testroot/certs/valid/server2.key 38 additions, 0 deletions...rnal/testhelper/testdata/testroot/certs/valid/server2.key
- internal/testhelper/testdata/testroot/certs/valid/server2.pub 1 addition, 0 deletions...rnal/testhelper/testdata/testroot/certs/valid/server2.pub
Please register or sign in to comment