From 4ac0fd01b73a0b718db3a756866fee121a1615f1 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 24 Apr 2011 12:57:38 -0700 Subject: Switching ikiwiki- username/group over to iki-; untested and requires a mass rebuildrepo --- docs/architecture/data.mdwn | 2 +- docs/issues/cgi_gateway.mdwn | 2 +- docs/issues/repo_name_limit.mdwn | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/architecture/data.mdwn b/docs/architecture/data.mdwn index a81a268..c86ec15 100644 --- a/docs/architecture/data.mdwn +++ b/docs/architecture/data.mdwn @@ -4,7 +4,7 @@ Dynamic data lookup should opportunisticly cache any associated cheap data. For [[!table format=dsv delimiter=# data=""" datum #stored location #constraint -username #usually $ENV{SUDO_USER} # !~ /^git-|^ikiwiki-/ and =~ /^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$/ +username #usually $ENV{SUDO_USER} # !~ /^git-|^iki-/ and =~ /^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$/ uid #/etc/passwd # None email #/etc/passwd GECOS #Email::Valid::Loose->new("-fqdn" => 1, "-fudge" => 0, "-local_rules" => 0, "-mxcheck" => 1, "-tldcheck" => 0 ); repoaccess #/etc/group git-$reponame entry # None diff --git a/docs/issues/cgi_gateway.mdwn b/docs/issues/cgi_gateway.mdwn index 8ac5c1b..b930665 100644 --- a/docs/issues/cgi_gateway.mdwn +++ b/docs/issues/cgi_gateway.mdwn @@ -20,7 +20,7 @@ Requirements: * pinyadmin command arguments * exits if username's uid < 1000 * exits if username violates piny username constraints (specifically git- and - ikiwiki- are not allowed) + iki- are not allowed) * executes with the appropriate uid/gid the specified pinyadmin command and the specified arguments diff --git a/docs/issues/repo_name_limit.mdwn b/docs/issues/repo_name_limit.mdwn index a7725c8..68a77f5 100644 --- a/docs/issues/repo_name_limit.mdwn +++ b/docs/issues/repo_name_limit.mdwn @@ -4,6 +4,6 @@ * Opened by: jrayhawk ### Discussion -Problem: Repository names are restricted to 24 characters by the groupname limit in libc6 plus our use of the ikiwiki- prefix. +Problem: Repository names are restricted to 24 characters by the groupname limit in libc6 plus our use of the iki- prefix. Possible solution: optional use of truncated md5 (the first character needing to be a letter) hash of reponame as groupnames, restriction of usernames to 31 characters to keep namespaces isolated, check in newrepo for hash collision before actions are taken -- cgit v1.2.3