[Y-devel] Message over connection less protocol? / security issues

Peter Prohaska pitrp at wg78.de
Thu Feb 26 19:21:08 GMT 2004


On Thu, Feb 26, 2004 at 06:45:12PM +0100, Maurice van der Pot wrote:
> On Thu, Feb 26, 2004 at 05:44:45PM +0100, Peter Prohaska wrote:
> > In the thesis, it is required to use a connection based stream protocol,
> > if i got that right.
> > Why should it not be possible to send i.e. an UDP request that just pops
> > up a message window?
> 
> Unless you are going to implement your own acknowledgements/retransmits/etc,
> you can't use UDP because the packets are not guaranteed to arrive... at all.

I didn't realy care if the message really arrives. Let's say your ups
runs out of power, a sudden pupup to tell you why the system is shutting
down now can be really nice. If it does not reach you in time, you loose
nothing but if it does, it can avoid a shock ;)

I agree, it is not very useful. But since the discussion about secury
hasn't really started jet, it might help to find out where it should go.

[..]
> > I.e. My coffee maschine could just send a message that it has finished
> > directly to Y instead of having an extra client waiting for such
> > messages just to forward them to Y.
> 
> Do you want anything or anyone to just be able to trigger popups on your 
> machine? I suppose you want at least some control over who can trigger
> them. I think putting that control outside of Y is a good thing. 
> You want to avoid as much complexity as possible... if it does not
> have a (big) negative impact on performance, keep it out of Y.

Agreed.

> X allowed you to open up windows from a remote location in three ways:
> - set DISPLAY and use xhost+
> - use xauth (MIT-MAGIC-COOKIE)
> - use ssh -X

My expirience:
- The only useful way is to use ssh.
- The ability to use a set of different ways to achieve that is
  confusing and you have to understand them all if you want to trust
  yourself that you did not open the door somewhere without knowing.

> You really want to avoid the first one. The second one is ok, but it's 
> either cumbersome or you have to do some automation. The third one 
> actually automates the second one and does everything over an ssh connection.
> 
> If you ask me, at least of these three the last one is the best solution.

Agreed agin.
But the third one has one very big disatvantage: People need accounts.

I hav too usecases in mind:
(1) i want to show a frind a picture photo and he says show me.
    * today:
      - he sends it via mail, http, ftp
      - i wait, i search, i (evtl.) copy, i view
    * tomorrow:
      - i hav signed his pgp key and he has signed mine
      - he asks if he can show me a photo
      - i click "allow user with pgp key XYZ" to connect
      - he is allowed to directly pop up a window
(2) i edit some code and someone shall review it at the same time.
    * today:
      - we both get our copy tla/cvs/...
      - in this situation, chances for a conflict are high because we
        both work on the same document.
      - we both check in
      - someone merges
    * tomorrow:
      - I edit the document
      - I give him the right to access exactly that one application
      - We both can see where the other is working and avoid conflicts

These situations may sound strange but i now them very well and i know a
few people who would like it. (Think of last minute changes while
working on a movie).

  peter.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved