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

Implement public-key authentication for netconf over ssh #109

Open
wants to merge 1 commit into
base: stable/yoga-m3
Choose a base branch
from

Conversation

swagner-de
Copy link
Collaborator

Rotating credentials can be easier using key authentication for two
reasons.

  1. We read the key from disk on each authentication, allowing us to
    exchange the secret without having to restart the driver.
  2. The device allows us to populate multiple keys for the same user.

With credential rotation in mind, we implement the ability to use
multiple keys and also report if authentication with those keys have
been successful, allowing third party tooling to verify that it is safe
to rotate a key.

The _connect has also been moved from the YangConnection class to
the ASR1KContext class. This has been done, as it was only using
attributes of ASR1KContext, it was using none of the YangConnection
attributes and could have been static. I also feel that is tightly
coupled with the ASR1KContext.

Rotating credentials can be easier using key authentication for two
reasons.
1. We read the key from disk on each authentication, allowing us to
   exchange the secret without having to restart the driver.
2. The device allows us to populate multiple keys for the same user.

With credential rotation in mind, we implement the ability to use
multiple keys and also report if authentication with those keys have
been successful, allowing third party tooling to verify that it is safe
to rotate a key.

The `_connect` has also been moved from the `YangConnection` class to
the `ASR1KContext` class. This has been done, as it was only using
attributes of `ASR1KContext`, it was using none of the YangConnection
attributes and could have been static. I also feel that is tightly
coupled with the `ASR1KContext`.
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.

1 participant