Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH secret mounting improvements #414

Merged
merged 3 commits into from
Jun 12, 2023
Merged

Conversation

spilchen
Copy link
Collaborator

@spilchen spilchen commented Jun 8, 2023

When using your own ssh keys through a ssh secret, we now mount the secret for the root user too. This comes in handy if you are running a hybrid k8s server and need to run update_vertica from within the pod. Prior to this change you couldn't do that because the ssh key for the root user was unrecognized.

When using your own ssh keys through a ssh secret, we now mount the
secret for the root user too.

This comes in handy if you are running a hybrid k8s server and need to
run update_vertica from within the pod. Prior to this change you
couldn't do that because the ssh key for the root user was unrecognized.

This also mounts the ssh key without using sub path. This allows you to
update the ssh secret and see the change in the pod without having to
restart the pod.

Signed-off-by: Matt Spilchen <[email protected]>
@spilchen spilchen requested a review from roypaulin June 8, 2023 20:05
@spilchen spilchen self-assigned this Jun 8, 2023
HTTPServerCACrtName = "ca.crt"
)

// MountPaths lists all of the paths for internally generated mounts.
var MountPaths = []string{LocalDataPath, CELicensePath, MountedLicensePath,
HadoopConfPath, ConfigPath, ConfigSharePath, ConfigLogrotatePath,
LogPath, PodInfoPath, AdminToolsConf, AuthParmsFile, EulaAcceptanceFile,
EulaAcceptanceScript, CertsRoot, Krb5Conf, Krb5Keytab, SSHPath}
EulaAcceptanceScript, CertsRoot, Krb5Conf, Krb5Keytab, DBAdminSSHPath}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you also add RootSSHPath?

@spilchen spilchen merged commit 11598c8 into vertica:main Jun 12, 2023
@spilchen spilchen deleted the hybrid-root-ssh branch June 12, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants