Commit Briefs

4013c1a870 Stefan Sperling

CHANGES for 0.122 (tags/0.122)


0bc4f5c341 Stefan Sperling

document gotwebd's Content Security Policy



f7992aab1d Omar Polo

gotwebd: fix overflow css for clone-url


b9fd8f5422 Omar Polo

gotwebd: wrap the login hint in <pre>

and while here the "Log in by running" in a <p>


5dc151101d Stefan Sperling

make gotsys-write-conf put ssh fingerprints into global gotwebd.conf scope

Makes gotwebd display ssh fingerprints on the login hint page.


ed2f82904d Stefan Sperling

show ssh host key fingerprints on the login hint error page

ok op@


0e23f911fb Stefan Sperling

add ssh fingerprint settings to global and server context in gotwebd.conf

ok op@



9d049e7f3d Stefan Sperling

provide a link which can be used to log out when logged into gotwebd

ok op@


6861b1cdf8 Stefan Sperling

make gotwebd display the authenticated user name while logged in

ok op@


314884daaf Stefan Sperling

scope gotwebd authentication cookies to our URL root path

Prevents the auth cookie from being sent to pages on the same domain which aren't served by gotwebd. Spotted by + ok op@


ef7c838a18 Stefan Sperling

update expected output of gotwebd regression tests after recent gotwebd changes

The script-src CSP attribute was changed from 'none' to 'self', and the 'Clone URL:' label on the summary page is no longer displayed by default.




7097d61f37 Stefan Sperling

make gotsys-write-conf add ssh host key fingerprints to /etc/gotwebd.conf

ok op@


b020191856 Stefan Sperling

allow gotwebd to display SSH host key fingerprints for clone URLs

Add options to gotwebd.conf which set SSH hostkeys to be displayed beneath the clone URL. ok op@


7a6b6eeeda Stefan Sperling

make 'tog diff' indent log messages above patches for safety

Lack of log message indentation can be problematic when a patch is saved from 'tog diff' with the 'p' key and then sent elsewhere to be applied. Without indentation, diff text which happens to appear in a log message might be interpreted as part of the commit's patch. (Some patch programs will even strip leading indentation, but that is on them.) See https://github.com/i3/i3/pull/6564 for an example where a call to sleep() was added accidentally via a patch pasted into the log message.


65b128a66b Omar Polo

fix some typos, courtesy of codespell(1)


f05467224f Stefan Sperling

make gotsys-write-conf set the clone_url option in gotwebd.conf

If the web login hint user (usually "anonymous") has access to a repository via SSH we now add a corresponding clone_url option to /etc/gotwebd.conf.


59ec6f30d8 Stefan Sperling

add a per-repository clone_url option gotwebd.conf

This feature can be used to set a clone URL without having to create a file inside the repository.


f7321f76f7 Stefan Sperling

fix gotwebd serving websites from a branch other than HEAD

Problem found by tobhe@


0b41df0a1d Stefan Sperling

tweak gotwebd's Content-Security policy to allow javascript to be served

Custom websites may want to serve javascript, so let them. Problem spotted by tobhe@


e6d3650136 Stefan Sperling

fix paths to gotwebd static assets in generated HTML

We would end up generating paths like //repos/gotweb.css which causes the browser to complain about Content-Security-Policy: "The page’s settings blocked a style (style-src-elem) at https://repos/gotweb.css" Problem reported by tobhe@


5bf64361d0 Stefan Sperling

fix setting of a custom HEAD reference during repository creation by gotsysd

A parameter of got_repo_init() is supposed to be a branch name but gotsys-repo-create was passing an absolute reference name instead. This resulted in problems like refs/heads/refs/heads/foo being set as HEAD. Add test coverage for this issue. A workaround exists: Affected repositories are repaired as soon as another gotsys.conf change is committed or 'gotsys apply' is triggered manually.