me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/doc
Ludovic Courtès ca87601dd9
git-authenticate: Ensure the target is a descendant of the introductory commit.
Fixes a bug whereby authentication of a commit *not* descending from the
introductory commit could succeed, provided the commit verifies the
authorization invariant.

In the example below, A is a common ancestor of the introductory commit
I and of commit X.  Authentication of X would succeed, even though it is
not a descendant of I, as long as X is authorized according to the
'.guix-authorizations' in A:

   X   	 I
    \   /
      A

This is because, 'authenticate-repository' would not check whether X
descends from I, and the call (commit-difference X I) would return X.

In practice that only affects forks because it means that ancestors of
the introductory commit already contain a '.guix-authorizations' file.

* guix/git-authenticate.scm (authenticate-repository): Add call to
'commit-descendant?'.
* tests/channels.scm ("authenticate-channel, not a descendant of introductory commit"):
New test.
* tests/git-authenticate.scm ("authenticate-repository, target not a descendant of intro"):
New test.
* tests/guix-git-authenticate.sh: Expect earlier test to fail since
9549f0283a is not a descendant of
$intro_commit.  Add new test targeting an ancestor of the introductory
commit, and another test targeting the v1.2.0 commit.
* doc/guix.texi (Specifying Channel Authorizations): Add a sentence.
2022-02-14 11:23:08 +01:00
..
images
build.scm doc: Normalize language codes in menu URLs. 2022-01-19 22:07:55 +01:00
contributing.texi doc: Add a rule of thumb to guide enabling new committers. 2022-01-31 23:38:52 -05:00
environment-gdb.scm doc: Update "guix shell -D -f" example to new input style. 2022-01-14 22:39:24 +01:00
fdl-1.3.texi
guix-cookbook.texi doc: cookbook: Update custom kernel guide. 2021-12-30 15:58:24 -05:00
guix.texi git-authenticate: Ensure the target is a descendant of the introductory commit. 2022-02-14 11:23:08 +01:00
he-config-bare-bones.scm Move (gnu home-services) to (gnu home services). 2021-10-09 19:24:18 +03:00
htmlxref.cnf doc: Update htmlxref.cnf. 2021-10-04 16:36:58 +02:00
local.mk nls: Update translations. 2022-02-04 18:29:00 +01:00
package-hello.json
package-hello.scm