From 7d0bdbe04ae5b557ef35f85e2b99089e50dc8fb5 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Thu, 30 Aug 2018 17:07:08 -0700 Subject: [PATCH] hide ssh key in api --- apis/management.cattle.io/v3/machine_types.go | 2 +- apis/management.cattle.io/v3/rke_types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/machine_types.go b/apis/management.cattle.io/v3/machine_types.go index 46c805df..5ea2e66a 100644 --- a/apis/management.cattle.io/v3/machine_types.go +++ b/apis/management.cattle.io/v3/machine_types.go @@ -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"` } diff --git a/apis/management.cattle.io/v3/rke_types.go b/apis/management.cattle.io/v3/rke_types.go index 2f0c616b..3963f21b 100644 --- a/apis/management.cattle.io/v3/rke_types.go +++ b/apis/management.cattle.io/v3/rke_types.go @@ -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"` }