Integrate Easy Use of User-RSA-Key with Copy and Download Button #3966

Closed
opened 2025-12-29 18:32:20 +01:00 by adam · 8 comments
Owner

Originally created by @tb-killa on GitHub (Aug 10, 2020).

Environment

  • Python version: 3.7.3
  • NetBox version: 2.8.8

Proposed Functionality

If User create his own RSA-Key-Pair on first try you have to manually act for copy and save somewhere.
For easier Usage there should be two new Buttons per TextArea with "Copy" and "Download".

POC:

image

Use Case

Implement two Buttons per TextArea who act with two Functions:

  • Copy:
    -- Copy per Textarea Content to Clipboard
  • Download:
    -- Download per Textarea as Key-File directly via http

For this could be use native Javascript like this: new Blob([ textToWrite ], { type: 'text/plain' });

Database Changes

None

External Dependencies

None

Originally created by @tb-killa on GitHub (Aug 10, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.7.3<!-- Example: 3.6.9 --> * NetBox version: 2.8.8<!-- Example: 2.7.3 --> <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality If User create his own RSA-Key-Pair on first try you have to manually act for copy and save somewhere. For easier Usage there should be two new Buttons per TextArea with "Copy" and "Download". POC: ![image](https://user-images.githubusercontent.com/932481/89824998-39b32900-db54-11ea-97e6-615951bb5893.png) <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case Implement two Buttons per TextArea who act with two Functions: - Copy: -- Copy per Textarea Content to Clipboard - Download: -- Download per Textarea as Key-File directly via http For this could be use native Javascript like this: ``` new Blob([ textToWrite ], { type: 'text/plain' }); ``` <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes None <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies None
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 18:32:20 +01:00
adam closed this issue 2025-12-29 18:32:20 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 11, 2020):

Bear in mind that the entire process for encrypting and decrypting secrets is due to be overhauled in v2.10 (see #4346). Anything beyond perhaps a "copy to clipboard" button is likely not going to be worth the effort.

@jeremystretch commented on GitHub (Aug 11, 2020): Bear in mind that the entire process for encrypting and decrypting secrets is due to be overhauled in v2.10 (see #4346). Anything beyond perhaps a "copy to clipboard" button is likely not going to be worth the effort.
Author
Owner

@tb-killa commented on GitHub (Aug 12, 2020):

If allowed i would go with the copy to clipboard Button.

@tb-killa commented on GitHub (Aug 12, 2020): If allowed i would go with the copy to clipboard Button.
Author
Owner

@jeremystretch commented on GitHub (Aug 13, 2020):

@tb-killa would you like to volunteer for this?

@jeremystretch commented on GitHub (Aug 13, 2020): @tb-killa would you like to volunteer for this?
Author
Owner

@tb-killa commented on GitHub (Aug 18, 2020):

Sorry for late Response. Yes would be volunteer.

@tb-killa commented on GitHub (Aug 18, 2020): Sorry for late Response. Yes would be volunteer.
Author
Owner

@jeremystretch commented on GitHub (Sep 2, 2020):

@tb-killa are you still planning to implement this?

@jeremystretch commented on GitHub (Sep 2, 2020): @tb-killa are you still planning to implement this?
Author
Owner

@tb-killa commented on GitHub (Sep 6, 2020):

@jeremystretch : I´m sorry for the late response. the last days we migrate our systems at work so i´m busy with them but i hope to finish my drawt this week to provide fully PR.

@tb-killa commented on GitHub (Sep 6, 2020): @jeremystretch : I´m sorry for the late response. the last days we migrate our systems at work so i´m busy with them but i hope to finish my drawt this week to provide fully PR.
Author
Owner

@stale[bot] commented on GitHub (Nov 7, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@stale[bot] commented on GitHub (Nov 7, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@stale[bot] commented on GitHub (Nov 22, 2020):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@stale[bot] commented on GitHub (Nov 22, 2020): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3966