1
0
mirror of https://github.com/rancher/types.git synced 2025-08-30 19:32:18 +00:00

hide ssh key in api

This commit is contained in:
Daishan Peng 2018-08-30 17:07:08 -07:00 committed by Craig Jellick
parent 6b3463d9ba
commit 7d0bdbe04a
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ type CustomConfig struct {
// Optional - Docker socket on the node that will be used in tunneling
DockerSocket string `yaml:"docker_socket" json:"dockerSocket,omitempty"`
// SSH Private Key
SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty"`
SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty" norman:"type=password"`
Label map[string]string `yaml:"label" json:"label,omitempty"`
}

View File

@ -53,7 +53,7 @@ type BastionHost struct {
// SSH Agent Auth enable
SSHAgentAuth bool `yaml:"ssh_agent_auth,omitempty" json:"sshAgentAuth,omitempty"`
// SSH Private Key
SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty"`
SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty" norman:"type=password"`
// SSH Private Key Path
SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"`
}