Giter Club home page Giter Club logo

Comments (4)

geoand avatar geoand commented on July 23, 2024 1

@cmoulliard I propose we close this since we now have support for importing keys for GitHub.

from k8s-infra.

geoand avatar geoand commented on July 23, 2024

I don't think this should be done for the following reasons:

For the case where we are creating VM for local development, the new_iso.sh script already grabs the host's keys (see https://github.com/snowdrop/cloud-native-infra/blob/9c358170b1c8157fa77f3172f0d16ef99a2f56da/virtualbox/build-centos-iso/cloud-init/new-iso.sh#L59) and imports them into the VM allowing the user to then perform password-less login into the VM without having to execute any additional command.

For the case where we want to install Openshift onto a cloud machine using our scripts, it would not be good to have a publicly accessible set of public/private keys, because then anyone could access the machine as a root user.

from k8s-infra.

davidjbrewer avatar davidjbrewer commented on July 23, 2024

Feel free to look at https://github.com/eupraxialabs/tools and see if the ssh-import-id feature is something that can be worked into some of your use cases. See the section: "Special Tool in the Bag" The public image is at https://hub.docker.com/r/eupraxialabs/tools/

Clearly, you would want to parameterize the public key username in Ansible..

If we can be of any assistance, please let me know.


Other references: https://github.com/dustinkirkland/ssh-import-id

from k8s-infra.

geoand avatar geoand commented on July 23, 2024

@davidjbrewer Thanks, I'll take a look when I have some time :)

from k8s-infra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.