Re: [atlas] Automating software probe creation?

2021-01-04 Thread Steve Gibbard
> On Jan 4, 2021, at 4:11 AM, Philip Homburg  wrote:
> 
> On 2021/01/04 12:57 , Carsten Schiefner wrote:
>> IANAP and therefore probably miss a crucial point here: but can't user 
>> identification, authentication and so also probe-to-user association be done 
>> via an API, too?
> 
> That may become too complex. RIPE NCC currently has no API that allows a user 
> to log in. Logging in goes through a web form.
> 
> What we can do (in theory) is support logging in through a web form and then 
> creating an API key for probe registration (similar to keys we have for 
> creating measurements). Then the user can install the API key on the probe 
> and then register the probe using an API.
> 
> However, that seems overly complex. In addition it would be nice to name a 
> probe, give it a location. So there is a need to go to the website anyhow.
> 
> Of course it can be requested as feature. If there are good use cases, we can 
> put it on the list of things to look at.

Thanks for the information, Philip.  I think I now have this in a working state 
and can attempt a deployment.

If I may turn my question into a feature request:

I believe the API keys you have for measurement creation are already associated 
with user accounts, so that part seems like a solved problem.

What I have running on my probe hosts so far connects to one of my servers and 
sends its Atlas public key, ethernet MAC address (so I can track hardware 
inventory), and some other information to tell me how to remotely manage it.  
My server then gets the IP address the probe is connecting from (the probe may 
not know this itself, if it’s behind a NAT), geolocates it, and puts all the 
information in a database.

It would be nice if my server could then take that information and go 
auto-register the probe with Atlas.  As long as the volume is low I can also do 
this by hand, but being able to automate it would mean the probe could start 
working when plugged in instead of waiting for me to pay attention to it.

Thanks,
Steve


Re: [atlas] Automating software probe creation?

2021-01-04 Thread Rick Havern
I'd like to see this too.

Rick
GÉANT

-Original Message-
From: ripe-atlas  On Behalf Of Gert Doering
Sent: 04 January 2021 12:50
To: Colin Johnston 
Cc: Carsten Schiefner ; Philip Homburg 
; ripe-atlas@ripe.net
Subject: Re: [atlas] Automating software probe creation?

Hi,

On Mon, Jan 04, 2021 at 12:42:19PM +, Colin Johnston wrote:
> And automated up probe alerting needed as well :)

this!

Gert Doering
-- NetMaster
-- 
have you enabled IPv6 on something today...?

SpaceNet AG  Vorstand: Sebastian v. Bomhard, Michael Emmer
Joseph-Dollinger-Bogen 14Aufsichtsratsvors.: A. Grundner-Culemann
D-80807 Muenchen HRB: 136055 (AG Muenchen)
Tel: +49 (0)89/32356-444 USt-IdNr.: DE813185279




Re: [atlas] Automating software probe creation?

2021-01-04 Thread Carsten Schiefner
I see.

Thanks for explaining the backgrounds,  Philip.

-- 
Von meinem Android-Gerät gesendet.

-Original Message-
From: Philip Homburg 
To: Carsten Schiefner 
Cc: ripe-atlas@ripe.net
Sent: Mo., 04 Jan. 2021 13:12
Subject: Re: [atlas] Automating software probe creation?

On 2021/01/04 12:57 , Carsten Schiefner wrote:
> IANAP and therefore probably miss a crucial point here: but can't user 
> identification, authentication and so also probe-to-user association be 
> done via an API, too?

That may become too complex. RIPE NCC currently has no API that allows a 
user to log in. Logging in goes through a web form.

What we can do (in theory) is support logging in through a web form and 
then creating an API key for probe registration (similar to keys we have 
for creating measurements). Then the user can install the API key on the 
probe and then register the probe using an API.

However, that seems overly complex. In addition it would be nice to name 
a probe, give it a location. So there is a need to go to the website anyhow.

Of course it can be requested as feature. If there are good use cases, 
we can put it on the list of things to look at.

Philip




Re: [atlas] Automating software probe creation?

2021-01-04 Thread Gert Doering
Hi,

On Mon, Jan 04, 2021 at 12:42:19PM +, Colin Johnston wrote:
> And automated up probe alerting needed as well :)

this!

Gert Doering
-- NetMaster
-- 
have you enabled IPv6 on something today...?

SpaceNet AG  Vorstand: Sebastian v. Bomhard, Michael Emmer
Joseph-Dollinger-Bogen 14Aufsichtsratsvors.: A. Grundner-Culemann
D-80807 Muenchen HRB: 136055 (AG Muenchen)
Tel: +49 (0)89/32356-444 USt-IdNr.: DE813185279


signature.asc
Description: PGP signature


Re: [atlas] Automating software probe creation?

2021-01-04 Thread Carsten Schiefner

Hi, Philip -

a happy new year to you and everybody here on this list, first of all!

On 04.01.2021 11:53, Philip Homburg wrote:
We are working on an API. However, the only thing the API will do is to 
copy the public key to the atlas backend systems. You still have go to 
the web size, log in, etc. We want to associate a user with each probe.


IANAP and therefore probably miss a crucial point here: but can't user 
identification, authentication and so also probe-to-user association be 
done via an API, too?


Best,

-C.



Re: [atlas] Automating software probe creation?

2021-01-04 Thread Philip Homburg

On 2021/01/02 8:25 , Steve Gibbard wrote:

As far as I can tell from the documentation, it looks like the probes are 
identified by the encryption keys in /var/atlas-probe/etc/probe-key* .  If 
creating new probes from an image, is it sufficient to make each probe generate 
its own encryption keys, or are there other files that need to change?


If you build the debian package, then you can install that as many times 
as you like.


Probes are indeed identified by their public keys.


For registering the probes, I see a web form that requires being logged into a 
RIPE account, and don’t see any equivalent in the API documentation.  Is there 
a way to register new software probes via the API?


We are working on an API. However, the only thing the API will do is to 
copy the public key to the atlas backend systems. You still have go to 
the web size, log in, etc. We want to associate a user with each probe.


Philip