diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 01:40:46 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 01:40:46 +0000 |
commit | 325d5c791fc50dc3868b2f1938d052d39b676248 (patch) | |
tree | 56ddda187ec55f50f97f4a6ae2d04c59ad2763bb /doc | |
parent | 33b7f3444c20da53a18203ed33bb470b1c513f07 (diff) |
added adminuser settings, globlist support, and used this to implement page
locking
Diffstat (limited to 'doc')
-rw-r--r-- | doc/features.mdwn | 17 | ||||
-rw-r--r-- | doc/globlist.mdwn | 16 | ||||
-rw-r--r-- | doc/ikiwiki.setup | 3 | ||||
-rw-r--r-- | doc/security.mdwn | 9 | ||||
-rw-r--r-- | doc/todo.mdwn | 9 | ||||
-rw-r--r-- | doc/usage.mdwn | 6 |
6 files changed, 52 insertions, 8 deletions
diff --git a/doc/features.mdwn b/doc/features.mdwn index f362a7cbb..c20da504d 100644 --- a/doc/features.mdwn +++ b/doc/features.mdwn @@ -75,10 +75,21 @@ Currently implemented: * Smart merging and conflict resolution in your web browser - Since it uses subversion, ikiwiki takes advantage of its smart merging to avoid any conflicts when two people edit different parts of the same page at the same time. No annoying warnings about other editors, or locking, etc, instead the other person's changes will be automaticaly merged with yours when you commit. + Since it uses subversion, ikiwiki takes advantage of its smart merging to + avoid any conflicts when two people edit different parts of the same page + at the same time. No annoying warnings about other editors, or locking, + etc, instead the other person's changes will be automaticaly merged with + yours when you commit. - In the rare cases where automatic merging fails due to the same part of a page being concurrently edited, regular subversion commit markers are shown in the file to resolve the conflict, so if you're already familiar with that there's no new commit marker syntax to learn. + In the rare cases where automatic merging fails due to the same part of a + page being concurrently edited, regular subversion commit markers are + shown in the file to resolve the conflict, so if you're already familiar + with that there's no new commit marker syntax to learn. + +* page locking + + Wiki admin can [[lock]] pages so that only other admins can edit them. ---- -It also has lots of [[TODO]] items and [[Bugs]]. This wiki is not ready for production! +It also has some [[TODO]] items and [[Bugs]]. diff --git a/doc/globlist.mdwn b/doc/globlist.mdwn new file mode 100644 index 000000000..94f18127c --- /dev/null +++ b/doc/globlist.mdwn @@ -0,0 +1,16 @@ +When the wiki stores lists of pages, such as pages that are locked or pages +that you want to be emailed if changed, it uses a GlobList. + +This is a list of page names, separated by white space. The "glob" bit is +that as well as full page names, it can contain glob patterns. "`*`" stands +in for any part of the page name, and "`?`" for any single letter of its +name. So if you wanted to list all the pages about tea, and any +[[SubPage]]s of the SandBox, but not including the SandBox itself: + + *tea* SandBox/* + +You can also prefix an item in the list with "!" to skip matching any +pages that match it. So if you want to specify all pages except for +Discussion pages: + + !*/Discussion diff --git a/doc/ikiwiki.setup b/doc/ikiwiki.setup index d0a2829a1..7a561434e 100644 --- a/doc/ikiwiki.setup +++ b/doc/ikiwiki.setup @@ -7,7 +7,8 @@ use IkiWiki::Setup::Standard { wikiname => "MyWiki", - + #adminuser => ["yourname", ], + # Be sure to customise these.. srcdir => "/path/to/source", destdir => "/var/www/wiki", diff --git a/doc/security.mdwn b/doc/security.mdwn index 5fda9e678..63d140ec5 100644 --- a/doc/security.mdwn +++ b/doc/security.mdwn @@ -50,6 +50,13 @@ It's actually possible to force a whole series of svn commits to appear to have ikiwiki escapes any html in svn commit logs to prevent other mischief. +## page locking can be bypassed via direct svn commits + +A [[lock]]ed page can only be edited on the web by an admin, but +anyone who is allowed to commit direct to svn can bypass this. This is by +design, although a subversion pre-commit hook could be used to prevent +editing of locked pages when using subversion, if you really need to. + ---- # Hopefully non-holes @@ -136,4 +143,4 @@ directory with a symlink and trick it into following the link. Also, if someone checks in a symlink to /etc/passwd, ikiwiki would read and publish that, which could be used to expose files a committer otherwise wouldn't see. -To avoid this, ikiwiki will avoid reading files that are symlinks, and uses locking to prevent more than one instance running at a time. The lock prevents one ikiwiki from running a svn up at the wrong time to race another ikiwiki. So only attackers who can write to the working copy on their own can race it.
\ No newline at end of file +To avoid this, ikiwiki will avoid reading files that are symlinks, and uses locking to prevent more than one instance running at a time. The lock prevents one ikiwiki from running a svn up at the wrong time to race another ikiwiki. So only attackers who can write to the working copy on their own can race it. diff --git a/doc/todo.mdwn b/doc/todo.mdwn index d8c5a5b8b..1d4f4759a 100644 --- a/doc/todo.mdwn +++ b/doc/todo.mdwn @@ -104,11 +104,14 @@ you need that data.. Might be nice to support automatically generating an index based on headers in a page, for long pages. The question is, how to turn on such an index? -## page locking +## basewiki underlay -Some wikis will need the abiity to lock a page, or the whole wiki, so that only admins can edit them. Probably using the same globbing as for recentchanges mails to determine what to lock. +Rather than copy the basewii around everywhere, it should be configured to +underlay the main srcdir, and pages be rendered from there if not in the +srcdir. This would allow upgrades to add/edit pages in the basewiki. -Probably it's ok if locking is only supported for web commits. +Impementaion will be slightly tricky since currently ikiwiki is hardcoded +in many places to look in srcdir for pages. ## Logo diff --git a/doc/usage.mdwn b/doc/usage.mdwn index debe04e1f..7d7acf16a 100644 --- a/doc/usage.mdwn +++ b/doc/usage.mdwn @@ -94,6 +94,12 @@ flags such as --verbose can be negated with --no-verbose. Specifies a rexexp of source files to exclude from processing. May be specified multiple times to add to exclude list. +* --adminuser name + + Specifies a username of a user who has the powers of a wiki admin. + Currently allows locking of any page, other powers may be added later. + May be specified multiple times for multiple admins. + * --setup configfile In setup mode, ikiwiki reads the config file, which is really a perl |