Commits


move got_gotconfig_read() into new file read_gotconfig_privsep.c


move code for reading Git's config file into new file read_gitconfig_privsep.c The end goal here is to remove the dependency of repository.c on privsep.c during compilation.


move functions which open objects into new file object_open_privsep.c For the future, this will make it possible to provide alternative implementations of functions now stored in object_open_privsep.c. This will probably be needed by future gotd(8) which runs inside a chroot(2) environment and without the "exec" pledge(2) promise, making it impossible to run libexec helpers on the fly. Details of this design are not yet settled, but moving functions into a separate compilation unit won't hurt in any case.


create and verify tags signed by SSH keys This adds a new -s flag to 'got tag' that specifies the signer identity (for example, a key file) of the tagger. The tag object will include a signature that validates each of the tag object headers and the tag message. Verifying these signed tags requires maintaining an allowed signers file which maps signer identities (i.e. the email address of the tagger) to SSH public keys. See ssh-keygen(1) for more details of the allowed signers file. After creating this file and providing the path to it in got.conf(5) using the allowed_signers option, tags may be verified using with 'got tag -V tag_name'. The return code will be non-zero if a signature fails to verify. ok stsp@


gotweb does not actually use anything from worktree.c or fileindex.c


use a bloom filter to avoid pointless pack index searches


make gotweb compile with the new diff implementation


add per-worktree got.conf(5) file in the .got directory; ok millert


fix gotweb build on sparc64; the old linker wants to see -lz after -lkcgi


make gotweb's install target respect DESTDIR for the devel/got port


add gotweb(8) man page and move README info there; discussed with tracey


ensure that we always install static binaries to gotweb's chroot Compile static libexec binaries for gotweb, keeping them separate from the main build. Use the same source files but a separate set of Makefiles. Previously, 'make web-install' installed whichever libexec binaries had already been built, and if those happened to be dynamically linked they failed to run inside the chroot which resulted in "privsep peer process closed pipe" being rendered on the index page.


link just gotweb with kcgi, not the libexec helpers


create dir for public repos during 'make web-install'; avoids an unveil error


fix problem with 'make web-install' not finding some of the files