ROOT Team Meeting

→ Europe/Zurich
32/1-A24 (CERN)

32/1-A24

CERN

40
Show room on map
Danilo Piparo (CERN)
Description

Zoom link in announcement email; please contact rootdev@cern.ch if you did not receive it!

ROOT web gui security (Sergey Linev)

[Jonas Hahnfeld] HMAC, that's authenticated with connection/session key?
[Sergey] Session key is optional. If only the connection key is used, then HMAC is calculated only from that. The final key gets the session key appended. The session key is never transported over any kind of network, hopefully giving extra security guarantees.
[Jonas] I suppose the keys are needed when connecting, I suppose they are transported to the temporary html file.
[Sergey] Yes, otherwise you will be able to see them in the process list. At the moment any key can be used only once for a connection, no other connection can be done with this key.
[Jonas] You can sniff the connection key on any subsequent request but that won't help you because you can't use it.
[Sergey] Theoretically yes, if you can sniff the http request to the html page, but only for the connection key, not session key.
[Jonas] How can you guarantee authentication between client/server then?
[Sergey] Each packet is submitted with a hash
[Jonas] Also from the client to server
[Sergey] Yes, both directions

[Danilo] Just a clarification, is there any moment at which this procedure can be hacked in theory? Code injection in the server?
[Sergey] To my understanding, no. The only action that can be done is that people can sniff your traffic, but they cannot submit any other commands or replace your commands. Even if you send a packet to open a file or rewrite data, nobody will be able to redo it. It's not only running on the connection key/ session key but also the sequence number

[Danilo] I believe we shouldn't sell rootssh as an additional security layer. We should state that ROOT with the new changes is secure by design. Maybe we can sell rootssh as extra functionality. With that, you just have the graphics locally on your computer but the computations occur on the cluster.
[Sergey] All this can be done with the regular http server if you can reach lxplus machine. rootssh is for people who want to get the maximum security possible. Of course it's an additional feature that configures for the user the remote display.
[Danilo] But at the same time we cannot sell it that way, for people that use public shared machines. It's a matter of perception.

[Danilo] We have the loopback, the connection key. Is it possible to sniff the traffic in the loopback device without letting it out from the TCP/IP stack?
[Sergey] The loopback device is not regular TCP/IP, it's just a file handle. To my understanding you need special privileges to be able to sniff it.

[Danilo] Why is the session key optional?
[Sergey] We can make it default, it may increase the complexity/usability of these tools in the future. If we always enforce usage of both keys the links of the URLs gets scrambled or maybe you cannot provide further features. For example, in Jupyter you can start a new session by typing a URL and it will ask the connection key. In our case we will need to ask the users to provide 2 fields (connection, session)
[Jakob] If the session key is not optional, then the connection key can be another thing, e.g. just a number.
[Danilo] If the connection key is enough, then we don't need the optional session key. If that gives more security, then it's not optional.
[Jakob] It depends on whether you are on the loopback or not. One thing to keep in mind is the more options we add the more code complexity.
[Sergey] We should agree on the default features.
[Danilo] We need a decision
[Sergey] For the loopback device, the connection key should be sufficient. We should concentrate on that. We are using the connection key exactly in the way Jupyter does. The session key is a feature we might want to introduce in the future, it's more expert level.
[Jonas] If the session key is a future detail, leave it out for now. Just don't over-engineer it for now.
[Jakob] We are short of this "exper use cases" in the wild. But the code as it is right now it allows you to establish a real network connection and not use the loopback. If we allow going out of the loopback device, then we should have the session key for the security required there
[Danilo] The use case already there is Sergey at GSI
[Jonas] I thought those use cases are solved by the proxy server.
[Sergey] I believe with the session key we can make it secure up to the sniffing.
[Jonas] You said it's for expert users, so they should put in effort
[Sergey] For the moment the effort is that as soon as the user is not on the loopback device, then the session key is used.

[Danilo] You used the word cryptographic regarding the connection key. Can you guarantee cryptographical security for the 3 platforms?
[Sergey] Yes, we will guarantee this.

[Jakob] There's also a question about what we present to users and the state of the code repository. For now we can say that it's either loopback device or the https proxy. The third scenario, with http with integrity but not confidentiality is a scenario we don't discuss with the outside
[Jonas] But there's still code complexity added. I'm just asking if we really need to have that.

[Vassil] Is the problem we're solving now differnt from the problem Jupyter has to solve?
[Sergey] I'm not sure about the internals, but from the outside in Jupyter what you get by default is the loopback device. When you go to the outside, you need to configure the http server yourself. We wanted to provide some intermediate solution.
[Vassil] We can just say we're as secure as Jupyter if we just try to align with what they do.
[Sergey] I will do that once I get a review from an expert
[Vassil] We can ask to LBL
[Danilo] I think we can cover the most important use case, the use of local graphics. What I'm not convinced is this intermediate solution, as also others have said, as it adds more code complexity.
[Sergey] Also in Jupyter, when you go to a public service with https the connection key is not used. That means you have to have some optional features which are enabled/disabled partially. You are not using temporary html files even.
[Vassil] My naive understanding is that Jupyter starts a notebook and by default it gives a token (that's the connection key). The more complicated setup is on the users if they want to do so
[Jakob] If we decide we do not need the session key, then we should also drop all the HMAC business. We don't need it then.
[Sergey] In some sense yes.
[Jakob] When it comes to security, it's a binary result. It's either secure or not, we should give the message that we are secure full stop.

[Jakob] We should set up some kind of test bed to play with, with curl and sending commands and requests.
[Sergey] This can be done, we have infrastructure. In principle it's again the feature which is not directly used by the GUI and it's called headless interactive browser. We have one test which is already running in our CI.

[Danilo] If we want all this in 6.32, this will come mid-May. The minimal set of things we want to cover is the graphics/GUIs on the user machines. We don't want the new one by default, but as an option. I agree with Jakob, we should go with something which is secure, the rest we drop it for the moment.

Decision: We go for connection key + session key with HMAC, as we want this extra security also for users' local machine.

Topics

Patch releases

  • 6.28 branch is closed, going to release 6.28/12 tomorrow
  • 6.30 branch will be released soon after

[Sergey] There are important security updates for ROOT web graphics that I would like to backport to 6.30 and 6.28
[Danilo] Let's discuss after the meeting

Round table

Bertrand

I will add nodes to the Windows CI. I need to build ROOT on 32/64bit Debug/Release for every node. Then I can add a node to the CI.

[Danilo] Isn't there a puppet for Windows?
[Bertrand] cmf yes, but it's kind of broken

[Danilo] For anything that hinders productivity that is hardware related, which we can throw money at, please tell me.
[Jonas] Can we then have also more Mac nodes?
[Danilo] Yes!

Danilo

  • Updated shift schedule, but then discovered there are 2 ROOT calendars, one in google and one in outlook. I will rectify this.

  • We will need to think about ~ 6 teams for the fixathon

Vassil

  • Mostly worked on clad, ROOT has some problems with it. We need to move forward there.

Florine

  • Please review the contributing guidelines by Wednesday!

[Bertrand] About the feature to skip CI, I think we can just use one instead of the other.
[Danilo] I have a comment in a separate direction, so let's continue on the PR.

Jonas

The performance improvement comes by passing RClusterIndex not by const-ref but by value. It's just two integers so it's cheaper to pass by value than allocating on the stack.

Marta

[Danilo] What is the plan about varied filters?
[Marta] I believe we can make the logic easier so the implementation can also be easier. The way it is done now is that varied values are kept in the analysis even when the nominal values are discarded by upstream filter. If we decide on a criterion we can simplify the implementation.

There are minutes attached to this event. Show them.
    • 16:00 → 16:01
      Find notetaker 1m
    • 16:01 → 16:05
      News 4m
    • 16:05 → 16:10
      Shift handover 5m
    • 16:10 → 16:20
      Meeting Summaries and Plans 10m
      • I/O
      • TMVA
      • RooFit
      • PPP
      • Planning / Godparents /...
      • LIM
    • 17:00 → 17:25
      Round Table 25m
    • 17:25 → 17:30
      A.O.B. 5m