docs: ci.md records what was seen on runs 1225 and 1226 and what was only rehearsed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b31564d51
commit
36c90c4595
1 file changed
+52
+52
@@ -406,6 +406,58 @@ What follows from it, in the workflows:
|
||||
- The log of a run that did hold the key shows the step headers with `***` for
|
||||
each line of the secret; nothing else prints it.
|
||||
|
||||
#### What has been seen, and what has not
|
||||
|
||||
Seen on a real runner ("Perfrormance Runner", reports `v3.1.0`), by dispatching
|
||||
`ci.yml` on the branch that introduced this order of steps:
|
||||
|
||||
- **Run 1226, the full path, green** (36 minutes). The check passes ("Runner …
|
||||
reports version v3.1.0, which masks secrets in the log"; "Event
|
||||
workflow_dispatch: no pull request"); the key step's header shows
|
||||
`PROTOCOL_DEPLOY_KEY: ***` and one `***` for each further line of the key, and
|
||||
prints `Deploy key installed: 256 SHA256:TWpZx3NgSMKTBkNLfp0C+Q1/DPD0E44Gy+GiHwK/zpI`
|
||||
(deploy key id 7); the fetch step reads VoelinProtocol, runs `cargo fetch --locked`
|
||||
(some eighteen seconds) and prints "The deploy key is removed from the job."; the
|
||||
cleanup step prints "No deploy key is left in the job."; the checks run
|
||||
`--offline`; the only `Updating crates.io index` after the fetch are the two
|
||||
`cargo install` steps. The log of the job has no line with `PRIVATE KEY`.
|
||||
- **Run 1225, the gate refusing, red by design.** A temporary commit raised
|
||||
`MIN_MASKING_RUNNER_VERSION` to `99.0.0` (reverted by the next commit): the check
|
||||
failed the job with "… the runner (Perfrormance Runner) reports version 'v3.1.0',
|
||||
and only a runner of version 99.0.0 or newer …"; the system packages, the
|
||||
toolchain, the key step, the fetch and the checks were not started and left no
|
||||
line in the log (so the secret was named nowhere), the cleanup step ran and said
|
||||
that no key is left, and the log has no `PRIVATE KEY` line and no mention of the
|
||||
secret.
|
||||
- Run 1224, of the same workflow as run 1226, was cancelled four minutes in, when
|
||||
1225 was dispatched on the same branch (Gitea runs one dispatch of a workflow per
|
||||
branch at a time): the key step, the fetch and the cleanup had run as in 1226 and
|
||||
the offline Clippy had started. It shows nothing more.
|
||||
|
||||
Rehearsed with stand-ins, not seen on a runner: the runner check of `ci.yml` and of
|
||||
`release.yml` for the reported versions above, and the pull request rule of
|
||||
`ci.yml` (head repository empty, another one, equal to the repository, with the
|
||||
expression's answer yes, no or missing: only equal and named passes); the key step
|
||||
with a text that is no key, with an empty one and with a failing `GITHUB_ENV` (the
|
||||
`EXIT` trap removes the directory) and with a key whose lines end in CR (it stays for
|
||||
the fetch); the fetch step with a key that VoelinProtocol does not know (`Permission
|
||||
denied (publickey)` from the server whose host key `.gitea/known_hosts` holds, the
|
||||
directory removed by the step's trap); the cleanup step with and without a
|
||||
directory; the ssh-agent step of `release.yml` with a key (the fingerprint, the
|
||||
variables) and its stop step (the agent is gone, the variables are emptied).
|
||||
|
||||
Not seen: a job on gitea-runner-docker (offline; the gate is rehearsed with a
|
||||
stand-in for the runner, above); a `pull_request` run, so neither the same-repository
|
||||
head (`yes`) nor a fork's (`no`) has been read from a real event payload (the field
|
||||
is the one that Gitea's API gives as `head.repo.full_name` of a pull request, which
|
||||
reads `Voelin/VoelinClient` for a branch of this repository, and an absent field
|
||||
fails closed); `release.yml` on a runner; the four Dockerfiles built (they pass
|
||||
`docker build --check` with no warning, and the `cargo fetch` then `cargo build
|
||||
--offline` split is that of VoelinGateWay's `docker/linux.Dockerfile`, which was
|
||||
built with `docker build --ssh default`; the Android Gradle task with
|
||||
`CARGO_NET_OFFLINE` has not been run). The first release or image build is the
|
||||
check.
|
||||
|
||||
#### Looking at a run
|
||||
|
||||
The fingerprint of the key step, and the proof that no log holds a private key
|
||||
|
||||
Reference in new issue
Block a user