Commits


CHANGES for 0.122


document gotwebd's Content Security Policy


adjust expected test output after HTML changes to gotwebd login hint page


gotwebd: fix overflow css for clone-url


gotwebd: wrap the login hint in <pre> and while here the "Log in by running" in a <p>


make gotsys-write-conf put ssh fingerprints into global gotwebd.conf scope Makes gotwebd display ssh fingerprints on the login hint page.


show ssh host key fingerprints on the login hint error page ok op@


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


update gotsysd/gotwebd regression tests for login status and logout button


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


make gotwebd display the authenticated user name while logged in ok op@


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@


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.


repair tog regression tests after tog diff indentation change


only display the "Clone URL:" label if there is a clone URL to display


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


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@


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.


fix some typos, courtesy of codespell(1)


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.


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.


fix gotwebd serving websites from a branch other than HEAD Problem found by tobhe@


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@


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@


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.