Having trouble importing Secrets

113 views
Skip to first unread message

Alex Rodenberg

unread,
May 18, 2017, 5:00:23 AM5/18/17
to NetBox


So I generated a user key on my admin user, double checked django's user key area:


But whenever I try to import a key I get this:




I kept everything in the same browser tab so should have a session ? 


Is there some error handling not showing the correct error here? Where would I look for more clues?


Jeremy Stretch

unread,
May 18, 2017, 9:13:05 AM5/18/17
to Alex Rodenberg, NetBox
Looks like a bug. You have an active userkey, but you haven't yet generated a session key by uploading your private RSA key. The secrets import form is supposed to prompt you for this if the form submission doesn't include a session key. I'll file an issue to fix this.

As a workaround, try viewing or creating an individual secret. Either should prompt you to provide your RSA key, after which you'll be issued a session key and should be able to bulk import secrets.

Jeremy

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/fba8321e-1632-4750-877c-ae3f646c2dc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Rodenberg

unread,
May 18, 2017, 9:20:20 AM5/18/17
to Jeremy Stretch, NetBox

Ahh but I don’t see anything but import there? (version 2.0.2)

 

 

 

From: Jeremy Stretch <jstr...@digitalocean.com>
Date: Thursday, 18 May 2017 at 15.12
To: Alex Rodenberg <arode...@danmagi.com>
Cc: NetBox <netbox-...@googlegroups.com>
Subject: Re: [netbox-discuss] Having trouble importing Secrets

 

Looks like a bug. You have an active userkey, but you haven't yet generated a session key by uploading your private RSA key. The secrets import form is supposed to prompt you for this if the form submission doesn't include a session key. I'll file an issue to fix this.

As a workaround, try viewing or creating an individual secret. Either should prompt you to provide your RSA key, after which you'll be issued a session key and should be able to bulk import secrets.

Jeremy

On Thu, May 18, 2017 at 5:00 AM, Alex Rodenberg <arode...@danmagi.com> wrote:

 

So I generated a user key on my admin user, double checked django's user key area:

 

But whenever I try to import a key I get this:

 

 

 

I kept everything in the same browser tab so should have a session ? 

 

Is there some error handling not showing the correct error here? Where would I look for more clues?

 

--

You received this message because you are subscribed to the Google Groups "NetBox" group.

To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

Jeremy Stretch

unread,
May 18, 2017, 9:20:31 AM5/18/17
to Alex Rodenberg, NetBox
The Javascript used to trigger the prompt was only matching on input elements, and this is a textarea. Should be fixed in the next release: #1199.

On Thu, May 18, 2017 at 9:12 AM, Jeremy Stretch <jstr...@digitalocean.com> wrote:
Looks like a bug. You have an active userkey, but you haven't yet generated a session key by uploading your private RSA key. The secrets import form is supposed to prompt you for this if the form submission doesn't include a session key. I'll file an issue to fix this.

As a workaround, try viewing or creating an individual secret. Either should prompt you to provide your RSA key, after which you'll be issued a session key and should be able to bulk import secrets.

Jeremy
On Thu, May 18, 2017 at 5:00 AM, Alex Rodenberg <arode...@danmagi.com> wrote:


So I generated a user key on my admin user, double checked django's user key area:


But whenever I try to import a key I get this:




I kept everything in the same browser tab so should have a session ? 


Is there some error handling not showing the correct error here? Where would I look for more clues?


--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

Jeremy Stretch

unread,
May 18, 2017, 9:45:42 AM5/18/17
to Alex Rodenberg, NetBox
Sorry, pick a device and try to add a secret to it.

On Thu, May 18, 2017 at 9:20 AM, Alex Rodenberg <arode...@danmagi.com> wrote:

Ahh but I don’t see anything but import there? (version 2.0.2)

 

 

 

From: Jeremy Stretch <jstr...@digitalocean.com>
Date: Thursday, 18 May 2017 at 15.12
To: Alex Rodenberg <arode...@danmagi.com>
Cc: NetBox <netbox-discuss@googlegroups.com>
Subject: Re: [netbox-discuss] Having trouble importing Secrets

 

Looks like a bug. You have an active userkey, but you haven't yet generated a session key by uploading your private RSA key. The secrets import form is supposed to prompt you for this if the form submission doesn't include a session key. I'll file an issue to fix this.

As a workaround, try viewing or creating an individual secret. Either should prompt you to provide your RSA key, after which you'll be issued a session key and should be able to bulk import secrets.

Jeremy

On Thu, May 18, 2017 at 5:00 AM, Alex Rodenberg <arode...@danmagi.com> wrote:

 

So I generated a user key on my admin user, double checked django's user key area:

 

But whenever I try to import a key I get this:

 

 

 

I kept everything in the same browser tab so should have a session ? 

 

Is there some error handling not showing the correct error here? Where would I look for more clues?

 

--

You received this message because you are subscribed to the Google Groups "NetBox" group.

To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.

Alex Rodenberg

unread,
May 18, 2017, 10:01:55 AM5/18/17
to NetBox
aha that worked.

I would say the documentation might need a bit more detail on how that works :)
Reply all
Reply to author
Forward
0 new messages