-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
atlas-sw-probe: improve key creation #15488
Conversation
Some context... I tested the package and it works good... Problem is that i notice that if the atlas-probe script is run without a key, by adding one and restarting the probe won't register. I added a create_key function to facilitate all the things... Anyway i can confirm that this package works in 2 different router. (both r7800 running openwrt) |
04d1efb
to
84e2e95
Compare
Guys, don't forget to bump |
I notice that the key is lost on sysupgrade... I'm testing my solution and I will add it to this pr |
Ok I tested the changes... Now should be all correct. @ja-pa can you checkout the changes? What do you think about variable names? Any suggestions? |
I notice that dropbear private key is not compatible... so I had to add the package dropbearconvert if dropbear is present (with openssl server, ssh-keygen should be available right?) Anyway I tested now and the converted private key works correctly and the probe correctly registers. |
@neheb i read some warning for the dropbearconvert bin... Do you think that can cause some security risk ? |
What error? |
Someone should be root to exec dropbearconvert soooo ? |
- Exit start if a probe_key is not present - Add create_key command to generate a private_key based on the provided username in the atlas config. - Add registration instruction in /etc/atlas - Rework script to save probe_key on sysupgrade (the key are now adviced to be placed in the /etc/atlas dir and a link is used to make them accessible in the atlas-sw-scripts etc dir) Signed-off-by: Ansuel Smith <[email protected]>
LGTM. Thanks ! |
@@ -0,0 +1,12 @@ | |||
# Atlas probe setup instruction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if we want to ship this file together with the file as it seems we are supplying documentation. Well, there should be, I know, but in my view, I can copy&paste the documentation which I wrote together with @ja-pa and move it to OpenWrt's documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, we can solve it later. Let's dont delay merging this. :-)
@ja-pa
Signed-off-by: Ansuel Smith [email protected]