good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Building a web-based system administration interface in Perlby wazoox (Prior) |
on Apr 09, 2009 at 10:14 UTC ( [id://756557]=note: print w/replies, xml ) | Need Help?? |
I've been thinking more about it. The main problem I see is that by definition, the administrative interface has to be able to do almost everything : modify base system files (/etc/hosts, /etc/passwd, /etc/resolv.conf etc.), start and stop daemons, run many different programs, partition drives, etc. That makes "whitelisting" command and parameters practically unmanageable.
Yes, however this is extremely low on my priority list. My main priority is to get something that works for common Linux systems, is clean and easy to extend. Other OSes come second; ancient stuff like Solaris 7 or IRIX I'll let to others :)
I want to make it webserver agnostic (this isn't hard, anyway). I plan to run the existing webserver ( apache for instance) with a special user and configuration. That's simple, and you can use any other webserver simply by using a different startup file in /etc/init.d/ or equivalent.
I'll be pragmatic. I'll stick as much as possible to Perl internals and core modules. However for external commands and shell, I'll try to stick to common basics. If necessary, I'll use bash or GNU core tools because they're readily available for any modern OS anyway. Of course, every module needs to have a site-specific configuration file.
Usability + ease of use are first in the prerequisites. If necessary, modules may need an AJAX and a pure HTML version.
Optional still means available. I don't see the point reinventing this wheel, I already have a carriage to build :)
In Section
Seekers of Perl Wisdom
|
|