Skip to content

alanm-hpe/csm-ssh-keys

 
 

Repository files navigation

csm-ssh-keys

The Cray Systems Management product needs a way to establish passwordless ssh between various trusted components, and ultimately, there needs to be exactly one entity that concerns itself with creation of these keys.

Other downstream products can choose to integrate against these keys; the intention is that the public half of these keys can be injected into an ssh environment's trusted keys file. To this effect, all NCN nodes that have the public half of the key will be able to ssh into them without specifying an interactive password.

The CSM key pair is not automatically installed into NCN images; however its public half can be consumed at any time from the exposed location. Doing so once manually enables users to ssh into nodes that have been booted to trust the configured public half.

The most appropriate place to establish client trust (computes, UAN nodes) is during image customization. Both the public halves and private halves can be consumed from the exposed interface (k8s secrets and configmaps) in order for passwordless ssh to work.

The goal of this setup is to grant a one-way authentication mechanism into managed nodes through a common mechanism, such that each downstream product:

  • Does not have to configure NCN environments separately for each downstream product
  • Can electively choose to consume the public half of this key and apply it to their environment

In 1.4, this deployment does not automatically apply the associated keys to NCN nodes; this must manually be applied to the NCN environments.

For security reasons, it is imperative that the private half of this key not be released or installed into the downstream product environments (UAN, Computes) as the complete keypair would grant access to all downstream nodes.

Administrators may choose to inject or overwrite the keypairs stored inside the published secrets/configmaps before meaningful image customization or use of CFS to configure environments. This deployment will only create the secrets/configmaps should they be missing. This allows users to populate this information asynchronously during install.

Any images or deployed environments will need to be reconfigured if the keypair is manually changed. There is no automatic process that initiates this reconfiguration.

Build Helpers

This repo uses some build helpers from the cms-meta-tools repo. See that repo for more details.

Local Builds

If you wish to perform a local build, you will first need to clone or copy the contents of the cms-meta-tools repo to ./cms_meta_tools in the same directory as the Makefile. When building on github, the cloneCMSMetaTools() function clones the cms-meta-tools repo into that directory.

For a local build, you will also need to manually write the .version, .docker_version (if this repo builds a docker image), and .chart_version (if this repo builds a helm chart) files. When building on github, this is done by the setVersionFiles() function.

Changelog

See the CHANGELOG for changes. This file uses the Keep A Changelog format.

Copyright and License

This project is copyrighted by Hewlett Packard Enterprise Development LP and is under the MIT license. See the LICENSE file for details.

When making any modifications to a file that has a Cray/HPE copyright header, that header must be updated to include the current year.

When creating any new files in this repo, if they contain source code, they must have the HPE copyright and license text in their header, unless the file is covered under someone else's copyright/license (in which case that should be in the header). For this purpose, source code files include Dockerfiles, Ansible files, RPM spec files, and shell scripts. It does not include Jenkinsfiles, OpenAPI/Swagger specs, or READMEs.

When in doubt, provided the file is not covered under someone else's copyright or license, then it does not hurt to add ours to the header.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.9%
  • Makefile 11.1%
  • Dockerfile 6.8%
  • Smarty 0.2%