user-ssh-keys-agent

command
v2.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

User SSH Keys Agent

This document explains the functionality of the user ssh keys agent, that is deployed in the kubermatic user clusters.

Functionality

The user ssh key agent is responsible for syncing the defined user ssh keys to the worker nodes, when users attach ssh keys to the user clusters. When users choose to add a user ssh key to a cluster after it was created the agent will sync those keys to the worker machines by fetching the ssh keys and write them to the authorized_keys file on each worker node. The agent runs as a daemonset in the cluster. If a user changes the authorized_keys file manually via logging into machine and change the content of the file the agent will reject the changes and will rewrite the content of the file based on the attached user ssh keys.

The agent is deployed to the user clusters by default and it is not possible to change whether to deploy it or not once the cluster has been created. The reason behind that is, once the agent is deployed after the cluster is created, any previously added ssh keys in the worker nodes(except the keys that have been added during the cluster creation) will be deleted. If the user was can disable the agent after the cluster creation, any pre-existing keys won't be cleaned up. Due to the previously mentioned reasons, the agent state cannot be changed once the cluster is createad. If users decide to disable the agent(during cluster creation), they should take care of adding ssh keys to the worker nodes by themselves.

Note: During the user cluster creation steps(at the second step), the users have the possibility to add a user ssh key and it is not affected by the agent, whether it was deployed or not.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL