Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 check-ins occurring around 7b843f2d4354a496.

Add the fossil_random_password() utility function and use it to generate a stronger initial admin-user password in the "fossil new" command. (check-in: 23a9f9ba user: drh tags: trunk)
If the test-markdown-render or test-wiki-render commands are invoked without a repository in which to check for Wiki page names and artifact hashes, then substitute a temporary, empty, in-memory repository so that the commands will still work and won't give SQL errors. (check-in: 0ac64dad user: drh tags: trunk)
Clarified the placement of "moderator" and "subscriber" in the power hierarchy expression within www/, since each could float up and down somewhat within the fixed hierarchy we give here. Also fixed a broken URL. (check-in: ba88f4f2 user: wyoung tags: caps-doc)
Markdown hyperlinks are only converted to links to wiki if the named wikipage actually exists. Otherwise, the link becomes a relative link. This is for backwards compatibility. (check-in: 3b10e644 user: drh tags: trunk)
Added www/, a complete treatment on user capabilities, user categories, login groups, and administration matters involving all of this. It does not replace the pre-existing doc, but a bit of its content did move into this new doc. The new doc also contains the user capability info previously in the doc. This is on a branch because although it's quite useful already, it could use some work before being merged down. At the barest minimum, there are some unanswered questions in the new doc that need addressing.    This new doc does not replace the existing documentation in the UI. It may be that we end up paring that down a bit now that we have a full doc to refer to, but that is a topic for the forum thread that will appear shortly after this checkin. (check-in: 832f107e user: wyoung tags: caps-doc)
Fixed a few fatal error messages from the login-group command that referred to an "add" command, which is now called "join". The symptom I saw is that "fossil login-group add" complained that "add" is not a valid command and that you should give '"add" or "leave"' instead! (check-in: 09c65d75 user: wyoung tags: trunk)
Fixed a few messages from the login-group command that referred to an apparent older name for the "join" sub-command, "add". This lead to a confusing symptom: "fossil login-group add foo" -> {unknown command "add" - should be "add" or "leave"}. (check-in: 739cd872 user: wyoung tags: trunk)
Stronger recommendation for changing the default user's random hex password prior to setting up a Fossil server after learning it's 6 hex digits, not 8 as I thoght when I wrote that! (check-in: 9fcd6e44 user: wyoung tags: trunk)
Added bullet list detailing the sources for <script nonce=""> from a Fossil server and the reasons we consider each path safe. (check-in: 91377ae4 user: wyoung tags: trunk)
Reworked the material explaining why in-page <style> is currently allowed by Fossil's default CSP to make it clearer that this is most likely a temporary situation and that local custom CSS should go in the skin instead. (check-in: 092eeebf user: wyoung tags: trunk)
Expanded the discussion of in-repo and out-of-repo resource links in (check-in: 23fcd765 user: wyoung tags: trunk)
Reworked the new introductory material in to be less about the CSP as last-resort and more about being a secondary filter to our other measures. Gave examples to clarify the tensions that prevent a purely server-side solution from being a practical solution. (check-in: 1c4df5bf user: wyoung tags: trunk)
"RaspberryPI" -> "Raspberry Pi" (check-in: 5182be99 user: wyoung tags: trunk)
Assorted refinements to the new pre- and post-activation advice sections in www/server/index.html: nix passive voice, add a few details, add some links to related docs, etc. Also fixed a CSS indenting problem preventing correct use of in , then made use of the new freedom in these sections' numbered lists. (check-in: b5c2c9bf user: wyoung tags: trunk)
Fix the $ROOT mechanism in HTML documents so that it accepts any whitespace character before href= and script=. Add $ROOT in appropriate places in the server documentation. (check-in: 3e183bfa user: drh tags: trunk)
Outline how to configure a repository before and after server activation. (check-in: 154ea087 user: drh tags: trunk)
Improvements to the althttpd documentation. (check-in: 44f1df9f user: drh tags: trunk)
Further improvements to the server document. (check-in: c2c4d303 user: drh tags: trunk)
Extra defenses against running fossil_atexit() more than once. (check-in: bc7683e1 user: drh tags: trunk)
Fix the "shell" command so that it avoids invoking the atexit() handler more than once. (check-in: 07a5a211 user: drh tags: trunk)
Server documentation updates. (check-in: b2426c27 user: drh tags: trunk)
Merge in recent developments on trunk. (check-in: 70d091ea user: andybradford tags: test-updates)
Disallow versioning of security sensitive settings tcl-setup, th1-setup, and th1-uri-regexp. For effective security, these settings should only be controllable by an administrator. (check-in: 2da704c5 user: drh tags: trunk)
Update to the default CSP page. Attempted to resolve merge conflicts, but more editting is likely necessary. (check-in: 33a7b8ba user: drh tags: trunk)
Added a header to the new XSS material in so we can refer directly to it. (check-in: 7b843f2d user: wyoung tags: trunk)
More thorough explanation of <script nonce> in www/, and explained the reason why Fossil has no way of providing that nonce in most content types rather than link to the "XSS via check-in rights" forum post. This new presentation of that post's ideas is more detailed and includes discussion of the feature's interaction with the TH1 docs feature. (check-in: 8d43bb87 user: wyoung tags: trunk)
Major improvements to the new article. Expanded the introductory material to better describe what the CSP does; added named anchors to headers; moved the discussion of $default_csp overrides into this document from, which now just says how you use that variable read-only; and added an entirely new section, "Replacing the Default CSP". (check-in: 366b23a1 user: wyoung tags: trunk)
Replaced the redundant copy of the default CSP in skins/bootstrap/header.txt with "$default_csp", allowing the TH1 setup script to override the CSP as in all the other stock skins. (Bootstrap is the last stock skin to define a custom <head> element.) (check-in: 14ac2cac user: wyoung tags: trunk)
Fix memcpy() compiler warnings. (check-in: 7ae4b1a7 user: drh tags: trunk)
Fix possible misaligned pointer to a 16-bit object. (check-in: f7c41be8 user: drh tags: trunk)
Updated and expanded documentation on how to set up a Fossil server. (check-in: f146e21a user: drh tags: trunk)
Add the --with-sanitizer option to the ./configure script. (check-in: 231d6933 user: drh tags: trunk)
Fixed a link punctuation bug introduced in [74a6578c]. (Closed-Leaf check-in: c57e1793 user: wyoung tags: server-docs)
The merge from trunk accidentally reverted part of the new text in www/ (This part was manually merged, and I missed a diff relative to trunk.) (check-in: 8976a9da user: wyoung tags: server-docs)
Missed a link to that should have been checked in with [74a6578c]. (check-in: d5def0c8 user: wyoung tags: server-docs)
Merged in trunk improvements (check-in: 42d28c02 user: wyoung tags: server-docs)
Reverted src/doc.c to the trunk version. The "Plan Z" reversion in [8264fd75] was incomplete, causing bad TH1 variable expansion. I believe this explains the symptom I worked around in [9bdf650f0b8]. This check-in also cherry-picks [3d6a4fd95c] onto the branch. (check-in: 3cdf764c user: wyoung tags: server-docs)
Updated all of the internal hyperlinks referencing www/ to point at either www/server/index.html or one of the docs it now points at. (check-in: 74a6578c user: wyoung tags: server-docs)
Fixed an unwanted "$nonce" variable expansion within the new introduced by [9044fd2dbe] which only occurs *sometimes*: not on, and apparently not in my earlier ckout testing prior to checking it in, but now in a different ckout test. This has to be a TH1 thing, but I don't understand why we didn't see this earlier. This is just a workaround for the symptom. (check-in: 9bdf650f user: wyoung tags: trunk)
Fixed a link from the new material in to the new CSP material: that briefly lived in before checking it in, but then I moved it to a new document and forgot to update the link. (check-in: f4cbfd5a user: wyoung tags: trunk)
Fixed a couple of Tcl syntax fixes that caused the new --with-sanitizer code to a) run unconditionally irrespective of the option's setting and b) to check for the existence of libubsan whether it was actually needed or not. (Closed-Leaf check-in: 66fdab76 user: wyoung tags: configure-updates)
Added www/, which documents the default Content Security Policy applied by Fossil to the HTML pages it serves. Linked that into embeddeddoc.wik and, which touched on this topic before but didn't go into much detail. (check-in: 4e6d36d7 user: wyoung tags: trunk)
Fix a compiler warning in the security-audit page. (check-in: 3243a6c1 user: drh tags: trunk)
Added --with-sanitizer configure-time option for appending -fsanitize=VALUE to CFLAGS and LDFLAGS, plus automatic detection of -lubsan for GCC, which doesn't automatically link to that with -fsanitize=undefined as Clang does. EDIT: This check-in breaks the built on Ubuntu 18.04. (check-in: 7907b6ff user: wyoung tags: configure-updates)
Removed "known to work with IIS" bit from www/server/index.html in the CGI section, since that is not actually true. We can put it back once someone figures out the IIS + CGI + Fossil CPU pegging problem. (check-in: 8b7c17de user: wyoung tags: server-docs)
Removed documentation of the nonce="$NONCE" feature in www/, removed as part of [8264fd75]. (check-in: d55f6b15 user: wyoung tags: server-docs)
Fix a broken hyperlink on the new server-docs index page. (check-in: 461c8f06 user: drh tags: server-docs)
Updating links in www/server/windows/ to correct locations. (check-in: 65d175ae user: ckennedy tags: server-docs)
Plan Z (check-in: 8264fd75 user: drh tags: server-docs)
Have the security-audit page analyze and display the content security policy. (check-in: 9cf90a4f user: drh tags: trunk)