summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 13:28:25 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 13:28:25 -0700
commit4d19e0af572486ff0cd38b365dfc7411a8207837 (patch)
treea95b2febbba5a76dedd3ffc421b8f49d36193fa1 /docs
parentffab3ec34b9fd949a9877d0a19182b58911424da (diff)
downloadpiny-code-4d19e0af572486ff0cd38b365dfc7411a8207837.tar.gz
piny-code-4d19e0af572486ff0cd38b365dfc7411a8207837.zip
Adding new <32 character limit to usernames
Diffstat (limited to 'docs')
-rw-r--r--docs/architecture/data.mdwn4
-rw-r--r--docs/issues/repo_name_limit.mdwn2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/architecture/data.mdwn b/docs/architecture/data.mdwn
index c86ec15..cc824ab 100644
--- a/docs/architecture/data.mdwn
+++ b/docs/architecture/data.mdwn
@@ -4,11 +4,11 @@ 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-|^iki-/ and =~ /^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$/
+username #usually $ENV{SUDO_USER} # !~ /^git-|^iki-/ and =~ /^[a-zA-Z][a-zA-Z0-9_.-]{0,30}$/
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
-reponame #/srv/git/$reponame.git # =~ /^[a-z0-9][a-z0-9.-]+$/
+reponame #/srv/git/$reponame.git # =~ /^[a-z0-9][a-z0-9.-]*$/
repodescription #/srv/git/$reponame.git/description # =~ /^[\x{0020}-\x{FDCF}\x{FDF0}-\x{FFFD}]{1,80}$/
repoowner #stat /srv/git/$reponame.git/objects uid; might be better as first non-ikiwiki user in /etc/group git-$reponame entry # None
repoglobalwritable #stat /srv/git/$reponame.git/objects o+w bit # None
diff --git a/docs/issues/repo_name_limit.mdwn b/docs/issues/repo_name_limit.mdwn
index 68a77f5..6059178 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 iki- prefix.
+Problem: Repository names are restricted to 28 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