GithubHelp home page GithubHelp logo

Comments (6)

edolstra avatar edolstra commented on July 28, 2024 1

/root/.ssh/id_charon_vpn is a different key by the way. It's the private client key allowing the machine to create tunnels to other machines.

from nixops-aws.

edolstra avatar edolstra commented on July 28, 2024

The key in the user data is a temporary key only used while creating the machine, when there are no other users. It's then replaced by the actual key (see https://github.com/NixOS/nixops/blob/master/nixops/backends/ec2.py#L991).

Once upon a time we didn't replace the key, so we had a blackhole route to prevent access to the metadata server, but that's no longer needed.

from nixops-aws.

spinus avatar spinus commented on July 28, 2024

@edolstra thanks for explaining.

  1. Should user-data been removed after key is replaced?
  2. /root/.ssh/id_charon_vpn - indeed is different key, sorry for false alarm. I just compared not enough characters :-)

from nixops-aws.

edolstra avatar edolstra commented on July 28, 2024

AFAIK, there is no way to remove/change user data after instance creation. If there were, we wouldn't have to generate a new host key, we could just wipe the user data.

from nixops-aws.

spinus avatar spinus commented on July 28, 2024

Do you think it's worth to add this info to documentation or add description field to user-data with information for people that this is only one-time key?

from nixops-aws.

spinus avatar spinus commented on July 28, 2024

Should I make something to improve this (if yes, what could be the good way) or close the ticket?

from nixops-aws.

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.