Host-based Access Control

Short description

I would like to offer users the ability to allow access to pages from outside our intranet. I envisage something like {{{#acl .example.com:read 192.168.2.0/24:read,write }}}

At the moment, of course, one can achieve something similar to this with Apache mod_access directives (Allow from), but this is a little too coarse-grained for users.

Our wiki is used as an intranet and some of the contents would not be appropriate for public consumption. However certain collaborations require making available information to colleagues at other institutions, and allowing them to contribute to the wiki.

As "'", "@", "." are legal within usernames the upper solution does not work. A solution should also avoid ":" and "," as they are used within acls. I'd suggest to append "/" to the domain names and check for a containing "/" as "/" is illegal in usernames. You could then modify MoinMoin.wikiacl.AccessControlList to check for these entries (after the groups because groups can contain "/"). May be using another char at the beginning is even better.

/!\ Host-based (IP-based) authentication / access control was one of the worst ideas in computer history, so I don't think we should implement that.

Just imagine that you give IP 1.2.3.4 access to something because this is the fixed IP of the boss' machine. The problem is that this IP might be well-known to be the boss machine's IP and so everybody else in the LAN could just configure this IP on his machine (when the boss' machine is off or unplugged) and do stuff that later will look like the boss would've done them.

Also, machine != user, there can be multiple users on the same machine.

There might be some good uses of IP-based stuff (e.g. if there is no other way, e.g. for blocking some attacker from the internet), but usage in ACLs and related stuff would make more problems than it's worth.

-- ThomasWaldmann 2007-11-13 13:02:06


The auth part can be easily done with the new auth system, and the host part could also be implemented there by making an auth method that always logs those hosts in ... Reject because we won't implement this but it is doable without any core changes. -- JohannesBerg 2008-03-18 01:13:06


CategoryFeatureRejected

MoinMoin: FeatureRequests/HostBasedAccessControl (last edited 2008-03-18 01:13:06 by JohannesBerg)