Decrypting with password protected private key #1808

Closed
opened 2025-12-29 17:19:18 +01:00 by adam · 3 comments
Owner

Originally created by @Yentel on GitHub (Jun 22, 2018).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: Unknown (no server access)
  • NetBox version: 2.3.1

Description

When a user uploads a self generated public key to Netbox and this key is approved, he should be able to decrypt passwords by pasting the private key inside the prompt box.

The issue here is that this user has created a public-private keypair protected with a password.
When he pastes his private key, the prompt is closed without any info.
When the keypair is changed to a selfgenerated one without password, this works like it should.

Is it possible to add a prompt for a password if the private key is password protected or to give a notification to the user that password protected private keys are not supported?

Thanks for all your work guys!
Yentel

Originally created by @Yentel on GitHub (Jun 22, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [X] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: Unknown (no server access) * NetBox version: 2.3.1 <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description When a user uploads a self generated public key to Netbox and this key is approved, he should be able to decrypt passwords by pasting the private key inside the prompt box. The issue here is that this user has created a public-private keypair protected with a password. When he pastes his private key, the prompt is closed without any info. When the keypair is changed to a selfgenerated one without password, this works like it should. Is it possible to add a prompt for a password if the private key is password protected or to give a notification to the user that password protected private keys are not supported? Thanks for all your work guys! Yentel
adam closed this issue 2025-12-29 17:19:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 29, 2018):

This seems like overkill. The key is only intended to be used with NetBox to begin with. I've actually been contemplating wrapping the public/private key pairing internally and just using a key passphrase to unlock secrets. I'll leave it open for discussion though.

@jeremystretch commented on GitHub (Jun 29, 2018): This seems like overkill. The key is only intended to be used with NetBox to begin with. I've actually been contemplating wrapping the public/private key pairing internally and just using a key passphrase to unlock secrets. I'll leave it open for discussion though.
Author
Owner

@Yentel commented on GitHub (Jun 29, 2018):

Yeah, that's correct, unlocking with a key passphrase would be even better concerning UX, but as long as it's allowed to upload self-generated keys, a pop-up with an error would be a nice addition to the UX if the private key you enter in the pop-up requires a password for the public/private keypair to be checked. Even if it would only say "Netbox does not support password protected private keys" instead of nothing right now :-)

Thanks for all the work!
Yentel

@Yentel commented on GitHub (Jun 29, 2018): Yeah, that's correct, unlocking with a key passphrase would be even better concerning UX, but as long as it's allowed to upload self-generated keys, a pop-up with an error would be a nice addition to the UX if the private key you enter in the pop-up requires a password for the public/private keypair to be checked. Even if it would only say "Netbox does not support password protected private keys" instead of nothing right now :-) Thanks for all the work! Yentel
Author
Owner

@jeremystretch commented on GitHub (Jul 18, 2018):

Even if it would only say "Netbox does not support password protected private keys" instead of nothing right now

Closing this out, but I'll add a note to the user key form indicating this.

@jeremystretch commented on GitHub (Jul 18, 2018): > Even if it would only say "Netbox does not support password protected private keys" instead of nothing right now Closing this out, but I'll add a note to the user key form indicating this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1808