| 1 |
<html> |
| 2 |
<body> |
| 3 |
|
| 4 |
<h2><a href="cvm.html">CVM</a></h2> |
| 5 |
|
| 6 |
<h1>CVM Design Rationale</h1> |
| 7 |
|
| 8 |
<h2>Design Rationale</h2> |
| 9 |
|
| 10 |
<dl> |
| 11 |
|
| 12 |
<dt>Single credential type per module. <dd><p>Eliminating the choice |
| 13 |
of credential types from the logic required by the modules simplifies |
| 14 |
the support code required by those modules. In fact, it should also |
| 15 |
simplify the code required by the invoking code, since the invoker |
| 16 |
will necessarily have different handling for reading and parsing |
| 17 |
different credential types from a client. Servers that only handle |
| 18 |
one type of credentials do not have to deal with this detail.</p> |
| 19 |
|
| 20 |
<dt>Variable fact list. <dd><p>There is no one list of facts that must |
| 21 |
be reported by an authenticator. This list that is reported may be |
| 22 |
extended to include more optional facts.</p> |
| 23 |
|
| 24 |
<dt>Single-byte fact identifiers. <dd><p>Simplifying identifier names |
| 25 |
into a single byte greatly simplifies parsing code, without making the |
| 26 |
output code any more complex, and without significantly reducing the |
| 27 |
range of facts that can be expressed. It also helps to avoid |
| 28 |
enlarging the datagram size, which is important due to the strict |
| 29 |
limits on total size (see below).</p> |
| 30 |
|
| 31 |
<dt>No chaining. <dd><p>What was accomplished by chaining with |
| 32 |
Courier's authentication modules can be better accomplished through |
| 33 |
other means. If multiple types of authentication for the same |
| 34 |
credentials can occur, run seperate services on seperate IPs that use |
| 35 |
different CVM modules. If multiple types of credentials are used, |
| 36 |
they will each invoke a seperate CVM module. This eliminates all of |
| 37 |
the coding and design headaches associated with chaining Courier IMAP |
| 38 |
authentication modules.</p> |
| 39 |
|
| 40 |
<dt>No execution by the module. <dd><p>With the checkpassword |
| 41 |
interface, the authentication module drops root priviledges before |
| 42 |
executing the second stage program. This however greatly reduces or |
| 43 |
eliminates the feasability of executing the unpriviledged second stage |
| 44 |
program in a chroot environment for additional security.</p> |
| 45 |
|
| 46 |
<dt>Limited input and output size. <dd><p>Limiting the total input and |
| 47 |
output and output size to reasonable values eliminates one class of |
| 48 |
denial of service attacks by limiting the amount of memory required |
| 49 |
for buffers and parsing on both the part of the module and the |
| 50 |
invoker.</p> |
| 51 |
|
| 52 |
<dt>512 byte request and response maximum sizes. <dd><p>A single UDP |
| 53 |
frame is limited to 512 bytes without introducing serious transmission |
| 54 |
reliability problems. The UDP response also contains a single byte |
| 55 |
indicating success/failure that the executable-mode programs transmit |
| 56 |
out-of-band through the program's exit code.</p> |
| 57 |
|
| 58 |
<dt>Options for long-running server modules. <dd><p>Long-running |
| 59 |
server modules provide a method for transitioning permissions |
| 60 |
boundaries (such as requiring EUID 0 to read <tt>/etc/shadow</tt>) |
| 61 |
without having to resort to setuid execution, as well as opportunities |
| 62 |
for caching of credential information that may otherwise take |
| 63 |
significant amounts of time to fetch.</p> |
| 64 |
|
| 65 |
<dt>Options for both UNIX domain and UDP server |
| 66 |
modules. <dd><p>Through the standard UNIX permission model, system |
| 67 |
administrators can restrict access to UNIX domain servers. |
| 68 |
Administrators of clusters can use UDP modules to provide centralized |
| 69 |
authentication services.</p> |
| 70 |
|
| 71 |
</dl> |
| 72 |
|
| 73 |
</body> |
| 74 |
</html> |