[Y-devel] Access control
Peter Prohaska pitrp at wg78.de
Fri Mar 5 10:29:58 GMT 2004
On Fri, Mar 05, 2004 at 10:39:21AM +0000, Leonardo Giordani wrote:
> Hi all,
>
> I joined the mailining list only two days ago, so I beg your pardon if I state
> already solved problems.
>
> What about access control?
> Is someone already working on it?
Hi Leonardo,
I'm currently working on this.
Some basic modules to seperate the destict stages of connecting and and
access control are ready in a proof of concept state.
The biggest problem i have to think through is currently the module
loader.
I have core modules providing an interface for i.e. connection management
and other modules implementing specific types of connections like tcp/ip
etc.
I asked about that problem on irc yesterday and mark told me that the
module manager does not support intermodule dependencies and alike. He
would apreciate if someone would try to write a better one which
supports things like (as i understand the problem):
- reference counting
- dependency resolution
- automatic loading / unloading
[- maybe signature verification and checksum verification
- ...]
I started to look into it in more detail and am trying to jot down some
layout and a feature list. Before that is fixed, i would have to compile
all the seperate modules into one and do not want to publish the stuff
in such a state. Noone should use that interface rewrite before it is
integrated in a reasonable manner.
I'm using a local arch branch splitted from patch-29 for development.
> I notice this:
> - When a client connects (i.e. invokes Window::create) the client is listed
> into the clients and is assigned a client number.
> - I tried to implement a message YMO_REQUEST_ACCESS in a Object::get_access
> method, but it does not work, because the client does not exist and cannot be
> reached (no m->from number)
mmmm... cannot follow here right now.
> So I think we should separate client connection (access request and client
> creation on server) and window creation.
My current approach is to clean up the client interface a little and to
provide an interface for writing "client modules".
At the moment I have seperated the system into:
* Listener:
- implements a server socket (i.e. tcp/ip, unix, etc.)
- On connection request, it spawns a Channel object
* Channel:
- responsible for read()/write()
- registering with either the control module or what ever is used to handle
sync/async io wakups
- buffering
* ProtocolCodec / MessageCodec:
- serialises / deserialises messages / data
* ProtocolCodecStack:
- links a set of ProtocolCodecs together
* Client:
- provides the send message / receive message interface
- uses ProtocolCodecStack and Channel objects as backend
First level authentication and authorisation can be implemented via
ProtocolCodecs. This way one can easily define that one needs a TLS
connection and SASL and have them block the stream until the
requirements are in place and later either detatch or switch to passthru
in case of TLS i.e.
Im am currently worrying most how configuration of those stacks shall be
handled. I various ideas here but i think it isn't that important right
now. The most important thing is a propper module loader to ease
developing of modules for this subsystem.
> What do you think about?
For a glimpse check my wiki page:
https://y-win-wiki.jciteassist.org/y-win-wiki/PeterProhaska
It is a little outdated and not very precise but i just wanted code it
bevore writing down evry detail. If things go on well, I will get
something usefull ready around the beginning of next week.
so far,
peter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040305/ab26ad9b/attachment.bin
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved