in reply to Orthogonal Code and Security
But I'm sort of confused as to what you are considering orthogonal and secure. In your example, you have a list of dirs, and you say that this isn't orthogonal because when you move the dir tree or add a new dir, you also have to update the code, so that's two placed to change. But on the other hand, you say that moving any security out from the code and elsewhere is insecure. I don't see how anything that operates at the file level cannot do the latter. You have to decide where you are going to pack the security features; if you do it in perl, you lose orthogonality, if you do it on the file system, you lose 'security' by your thoughts (please correct me if I'm wrong).
IMO, the best way to solve the problem above is to use a hash to point the keys to the directories that may be written to; the keys are the only things sent via CGI, while the values (untainted) and the only things used to create or write files. Your security configuration is in perl, but as you claim, this is not necessarily orthogonal.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re(2): Orthogonal Code and Security
by Ovid (Cardinal) on May 02, 2001 at 22:28 UTC | |
by Masem (Monsignor) on May 02, 2001 at 22:42 UTC | |
|
Re: Re: Orthogonal Code and Security
by MeowChow (Vicar) on May 02, 2001 at 23:25 UTC | |
by kudra (Vicar) on May 03, 2001 at 12:59 UTC |