Repository navigation
Description
On 11 Nov a stolen developer token pushed a branch into five of our repositories, ran a workflow from it and read every secret that workflow could see. This issue tracks what we changed since, and what is left, in priority order. It is also the agenda for the review meeting.
Rule from now on: no new hardening PR unless it serves an open item below.
1. What is already in place
Organization
- Two-factor authentication required for all members.
- Actions policy: only GitHub's actions, our own, and an explicit list are allowed; every action must be pinned to a full commit SHA; fork PR workflows need approval.
- A security configuration (secret scanning, push protection, Dependabot alerts) is enforced on all public repositories and is the default for new ones.
- Only organization owners can delete or transfer a repository or change its visibility.
- Classic personal access tokens are blocked for the organization; fine-grained ones need approval (26 Nov). The credential stolen on 11 Nov was an OAuth token of the GitHub CLI, which this policy does not cover: what limits such a token is the rest of this list (no branch creation, environments, approvals).
Access
dirac-developerhas the triage role (assign, label; no push) on the DiracX repositories, as on the others. Pushing is limited to release managers.- The bot account is out of the admin team, and its tokens are revoked except those the
conda-forgeenvironment of DIRAC still uses. - GitHub Actions cannot approve pull requests on the 16 repositories without release-please.
Repositories (rulesets)
branches: protected branches change only through a pull request with one approval and signed (verified) commits; no force push, no deletion.fork-only: nobody creates branches in the repositories, pull requests come from forks. Renovate is the exception.tags: only release managers create tags (or nobody, where there are no releases).required-checkson 9 repositories:pre-commit(and a few stable jobs) must pass, and only results reported by GitHub Actions count.- The approval must come from someone other than the last person who pushed. A code owner must approve where a
CODEOWNERSfile exists: every repository with workflows has one for.github/, owned by the release managers (DIRAC keeps its own file and is exempt). - The rulesets are defined once, in
rulesets/of this repository, and applied withscripts/rulesets.py(applied on 23 and 24 Nov; all 20 repositories match the templates). To change a rule, change it there, then runapply.
Workflows
- The workflow token is read-only by default; each workflow declares the permissions it needs.
- Every action is pinned to a commit SHA; zizmor checks the workflows in pre-commit.
- pre-commit runs directly in the workflows (
pip install pre-commit==4.7.0), not throughpre-commit/action: that action callsactions/cacheby tag, which the SHA-pinning policy rejects. Renovate keeps the pinned version current. - Removed: the labeler and sweep workflows, the draft-PR workflows, the commit message check workflows, Docker Hub pushes, the pre-commit.ci apps (the
liteone included;pre-commitfails and prints the diff instead). - Cleaned up: dead and unknown webhooks, the unused
copilotandchartsenvironments, 89 old branches (only branches with an open pull request remain besides the protected ones).
Secrets and publishing
- Removed:
NPM_TOKEN,DRAFT_PAT,CHARTS_UPDATE_TOKEN, the release-please tokens of intercede and signurlarity, DIRACPAT, DIRACOS2GH_TOKEN. - PyPI and npm publishing use trusted publishers (short-lived OIDC tokens) from an environment that requires a release manager's approval.
- DIRAC: environments
cvmfsandconda-forgeare limited to release branches and tags, with approval. The CVMFS upload runs in its environment, which now holds the proxy; no repository in the organization has a repository-level secret left except the Mattermost webhook of.github. The tmate step is gone. - Trivy scan of the diracx images reports only fixable critical and high findings (ci: report only fixable critical and high findings from Trivy diracx#1211).
- Release pattern (CI drafts, a release manager publishes, CI ships after a second approval): in use. Released with it on 24-25 Nov: signurlarity 0.3.2, intercede 0.1.1, DIRAC 9.1.25 and 9.0.31, WebAppDIRAC 6.0.10 and 5.0.16, diracx-web 0.1.0-a12 (npm: staged by CI, approved by a maintainer on npm). DB12 and diraccfg already publish from a tag.
- Private vulnerability reporting and immutable releases are on for the repositories that release.
- Tests are required, by one stable job name, on DIRAC (
basic-ok, three branches), DIRACOS2, diracx-charts and Pilot (ci-ok); applied 26 Nov. WebAppDIRAC requirespre-commitandpyLint. - The release-please branch exemption of
fork-onlynames one branch per repository, no longer a pattern (chore: limit the release-please exception to the one branch it uses #27). - Codecov is gone from diracx, the only repository that used it (chore: remove codecov diracx#1219).
Dependencies
- One shared Renovate preset for all repositories: 7-day cooldown, pinned action digests, pre-commit hook updates.
- Locked pixi environments in CI, with the same cooldown at solve time.
- Renovate never proposes a new Python version for a pixi environment (chore: never bump the pixi environment python versions #23), nor a new TypeScript major in diracx-web (chore: require dashboard approval for major TypeScript updates diracx-web#526): both are deliberate choices.
Merged pull requests (196), by theme
- Publishing and releases: ci: trusted staged publish diracx-web#517, ci: use github token with release-please intercede#41, ci: relying on github token with release-please signurlarity#66, ci: draft releases published by a release manager signurlarity#73, ci: publish DB12 to PyPI via trusted publisher DB12#18, ci: publish diraccfg to PyPI via trusted publisher diraccfg#13, ci: publish DIRAC and DIRACCommon to PyPI via trusted publisher DIRAC#8886, [v8r0] chore: publish DIRAC to PyPI via trusted publisher DIRAC#8887, [v9r0] chore: publish DIRAC and DIRACCommon to PyPI via trusted publisher DIRAC#8888, ci: publish WebAppDIRAC to PyPI via trusted publisher WebAppDIRAC#818, chore: publish WebAppDIRAC to PyPI via trusted publisher WebAppDIRAC#819, Update images-creator.yml to remove Docker Hub steps management#76
- Tokens no longer needed: ci: stop pushing chart bumps to diracx-charts diracx#1183, ci: stop pushing chart bumps to diracx-charts diracx-web#518, chore: set up Renovate to bump diracx/diracx-web versions diracx-charts#322, ci: remove draft PR workflows and adjust #4, ci: drop the draft conversion on changes requested diracx#1184, ci: drop the draft conversion on changes requested diracx-web#519, ci: drop the draft conversion on changes requested diracx-charts#323, ci: drop the draft conversion on changes requested mkdocs-diracx-plugin#8
- zizmor, pinned actions, permissions: chore: add zizmor (pre-commit) and fix its auditor findings #6, chore: add zizmor (pre-commit) and fix its auditor findings DB12#19, chore: add zizmor (pre-commit) and fix its auditor findings DIRAC#8891, [v9r0] chore: add zizmor (pre-commit) and fix its auditor findings DIRAC#8892, [v8r0] chore: add zizmor (pre-commit) and fix its auditor findings DIRAC#8893, chore: add zizmor (pre-commit) and fix its auditor findings DIRACOS2#210, chore: add zizmor (pre-commit) and fix its auditor findings Pilot#291, ci: merge devel into master (pinned actions, permissions, Renovate preset) Pilot#297, chore: add zizmor (pre-commit) and fix its auditor findings WebAppDIRAC#820, chore: add zizmor (pre-commit) and fix its auditor findings container-images#51, fix(ci): bring zizmor to main and grant packages: write to the build job container-images#53, chore: add zizmor (pre-commit) and fix its auditor findings diracgrid.org#5, chore: add zizmor (pre-commit) and fix its auditor findings diracx-charts#326, chore: add zizmor (pre-commit) and fix its auditor findings diracx-web#520, ci: add zizmor (pixi task + pre-commit) and fix its auditor findings intercede#43, chore: add zizmor (pre-commit) and fix its auditor findings management#77, chore: add zizmor (pre-commit) and fix its auditor findings mkdocs-diracx-plugin#9, ci: add zizmor (pixi task + pre-commit) and fix its auditor findings signurlarity#68, chore: add zizmor (pre-commit) and fix its auditor findings tornado#5
- Shared Renovate preset: chore: add the shared DIRACGrid Renovate config preset #7, chore: enable Renovate's pre-commit manager in the shared preset #8, chore: preset: own packages skip the cooldown, disable the poetry manager #9, chore: drop the tornado and pre-commit approval rules from the preset #10, chore: proper README, pre-commit hygiene hooks, adopt the shared Renovate preset #11, Make grouped pre-commit hook commit messages conventional #14, chore: adopt the shared DIRACGrid Renovate config DB12#20, chore: adopt the shared DIRACGrid Renovate config DIRAC#8896, chore: stop Renovate from bumping tornado from PyPI DIRAC#8922, chore: extend the shared DIRACGrid Renovate config preset DIRACOS2#211, chore: adopt the shared DIRACGrid Renovate config DIRACWebAppResources#1, chore: adopt the shared DIRACGrid Renovate config Pilot#292, chore: adopt the shared DIRACGrid Renovate config WebAppDIRAC#823, chore: stop Renovate from bumping tornado from PyPI WebAppDIRAC#829, chore: replace Dependabot with the shared DIRACGrid Renovate config container-images#52, chore: adopt the shared DIRACGrid Renovate config dirac-webapp-packaging#1, chore: adopt the shared DIRACGrid Renovate config diraccfg#14, chore: adopt the shared DIRACGrid Renovate config diracgrid.org#6, chore: extend the shared DIRACGrid Renovate config preset diracx#1189, chore(renovate): batch diracx chart bumps monthly diracx#1208, chore: extend the shared DIRACGrid Renovate config preset diracx-charts#328, chore: extend the shared DIRACGrid Renovate config preset diracx-web#521, chore: extend the shared DIRACGrid Renovate config preset intercede#44, chore: drop the Renovate enabledManagers whitelist intercede#47, chore: adopt the shared DIRACGrid Renovate config management#78, chore: adopt the shared DIRACGrid Renovate config mkdocs-diracx-plugin#10, refactor: extend the shared DIRACGrid Renovate config preset signurlarity#69, chore: drop the Renovate enabledManagers whitelist signurlarity#74, chore: adopt the shared DIRACGrid Renovate config tornado#6, chore: adopt the shared DIRACGrid Renovate config tornado_m2crypto#11
- Locked environments and cooldown: feat: run the check jobs with pixi DIRAC#8900, feat: run the pilot wrapper tests with pixi DIRAC#8903, [v9r0] feat: run the check jobs with pixi DIRAC#8905, [v9r0] feat: run the pilot wrapper tests with pixi DIRAC#8906, [v8r0] feat: run the check jobs with pixi DIRAC#8907, [v8r0] feat: run the pilot wrapper tests with pixi DIRAC#8908, [rel-v5r0] feat: run the pylint job with pixi WebAppDIRAC#822, feat: run the pylint job with pixi WebAppDIRAC#824, ci: run the CI jobs with pixi diraccfg#15, chore: enforce the release-age cooldown at solve time (exclude-newer = 7d) diracx-charts#334, chore: enforce the release-age cooldown at solve time (exclude-newer = 7d) intercede#45, chore: enforce the release-age cooldown at solve time (exclude-newer = 7d) signurlarity#70, chore: enforce the release-age cooldown at solve time (exclude-newer = 7d) tornado#7
- pre-commit in CI, commit messages, static analysis: ci: run all pre-commit hooks in CI and rely on Renovate for hook updates diracx#1193, ci: run pre-commit via pre-commit/action and lite-action DIRAC#8904, ci: run pre-commit via pre-commit/action and lite-action WebAppDIRAC#825, chore: drop the commit message CI check, enforce the convention locally DIRAC#8915, chore: drop the commit message CI check, enforce the convention locally WebAppDIRAC#827, chore: drop the commit message CI check, enforce the convention locally Pilot#294, chore: add bandit (static security analysis) to pre-commit DB12#22, chore: add bandit (static security analysis) to pre-commit diraccfg#17, chore: cover flake8-bandit checks with ruff's S rules Pilot#296
- pre-commit run directly (23 Nov): ci: inline the pre-commit run instead of pre-commit/action #16, ci: inline the pre-commit run instead of pre-commit/action intercede#53, ci: inline the pre-commit run instead of pre-commit/action signurlarity#81, ci: inline the pre-commit run instead of pre-commit/action diracx#1210, ci: inline the pre-commit run instead of pre-commit/action diraccfg#22, ci: inline the pre-commit run instead of pre-commit/action diracx-charts#340, ci: inline the pre-commit run instead of pre-commit/action mkdocs-diracx-plugin#13, ci: inline the pre-commit run instead of pre-commit/action DIRAC#8945, ci: inline the pre-commit run instead of pre-commit/action DIRAC#8946, ci: inline the pre-commit run instead of pre-commit/action DIRAC#8947, chore: keep rel-v5r0 on dirac ~=8.0.0, never take major dirac bumps there WebAppDIRAC#845
- Ruleset templates: feat: ruleset templates and a script to compare or apply them #13, chore: add a .gitignore #17
- Hook updates and other: chore(deps): update pre-commit hooks DIRAC#8935, [v9r0] chore(deps): update pre-commit hooks DIRAC#8936, [v8r0] chore(deps): update pre-commit hooks DIRAC#8937, chore(deps): update pre-commit hooks WebAppDIRAC#838, chore(deps): update pre-commit hooks WebAppDIRAC#839, [v9r0] chore: drop the commit message CI check, enforce the convention locally DIRAC#8948, [v8r0] chore: drop the commit message CI check, enforce the convention locally DIRAC#8949, [v5r0] chore: drop the commit message CI check, enforce the convention locally WebAppDIRAC#846, chore(deps): update pre-commit hooks DB12#25, chore: add bandit (static security analysis) to pre-commit WebAppDIRAC#828, chore(renovate): require approval before raising upper bounds #15
- 24 Nov (CODEOWNERS, CVMFS environment, pixi channels, guardrails, Trivy): chore: require a release manager's review for .github/ changes diracx#1212, chore: require a release manager's review for .github/ changes diracx-web#525, chore: require a release manager's review for .github/ changes diracx-charts#341, chore: require a release manager's review for .github/ changes signurlarity#82, chore: require a release manager's review for .github/ changes intercede#54, chore: require a release manager's review for .github/ changes WebAppDIRAC#849, [v5r0] chore: require a release manager's review for .github/ changes WebAppDIRAC#850, chore: require a release manager's review for .github/ changes DIRACOS2#217, chore: require a release manager's review for .github/ changes DB12#26, chore: require a release manager's review for .github/ changes diraccfg#23, chore: require a release manager's review for .github/ changes #20, chore: run the CVMFS upload in a protected environment DIRAC#8942, [v9r0] chore: run the CVMFS upload in a protected environment DIRAC#8943, [v8r0] chore: run the CVMFS upload in a protected environment DIRAC#8944, chore: name the conda channels in pixi.toml DIRAC#8951, [v9r0] chore: name the conda channels in pixi.toml DIRAC#8952, [v8r0] chore: name the conda channels in pixi.toml DIRAC#8953, chore: name the conda channels in pixi.toml WebAppDIRAC#847, [v5r0] chore: name the conda channels in pixi.toml WebAppDIRAC#848, chore: never bump the pixi environment python versions #23, chore: require dashboard approval for major TypeScript updates diracx-web#526, ci: report only fixable critical and high findings from Trivy diracx#1211
- 24 Nov, second round (CODEOWNERS elsewhere, pre-commit.ci lite, first release): chore: require a release manager's review for .github/ changes Pilot#301, ci: merge devel into master (commit check removed, CODEOWNERS) Pilot#303, chore: require a release manager's review for .github/ changes container-images#56, chore: require a release manager's review for .github/ changes management#83, chore: require a release manager's review for .github/ changes mkdocs-diracx-plugin#14, chore: require a release manager's review for .github/ changes diracgrid.org#11, ci: drop the write permission of the pre-commit job signurlarity#83, ci: drop the pre-commit.ci lite step signurlarity#85, chore(master): release 0.3.2 signurlarity#72, chore: check the workflows with zizmor in pre-commit diraccfg#24, ci: drop the pre-commit.ci lite step DIRAC#8963, [9.0] ci: drop the pre-commit.ci lite step DIRAC#8964, [8.0] ci: drop the pre-commit.ci lite step DIRAC#8965, ci: drop the pre-commit.ci lite step WebAppDIRAC#853, ci: drop the pre-commit.ci lite step diracx#1214, ci: drop the pre-commit.ci lite step intercede#55, ci: drop the pre-commit.ci lite step diracx-charts#342
- 24-25 Nov (release pattern, aggregate check job, package metadata): chore: release from a draft published by a release manager DIRAC#8934, [v9] chore: release from a draft published by a release manager DIRAC#8971, [v8] chore: release from a draft published by a release manager DIRAC#8972, [integration] chore: release from a draft published by a release manager WebAppDIRAC#855, [v5] chore: release from a draft published by a release manager WebAppDIRAC#856, ci: draft releases published by a release manager intercede#56, ci: draft releases published by a release manager diracx-web#529, ci: do not open a release PR while a draft release is unpublished signurlarity#86, ci: add the basic-ok job, one check for the ruleset to require DIRAC#8966, [9.0] ci: add the basic-ok job, one check for the ruleset to require DIRAC#8967, [8.0] ci: add the basic-ok job, one check for the ruleset to require DIRAC#8968, ci: add the ci-ok job, one check for the ruleset to require DIRACOS2#218, ci: add the ci-ok job, one check for the ruleset to require diracx-charts#343, ci: add the ci-ok job, one check for the ruleset to require Pilot#304, fix: correct and complete project.urls metadata signurlarity#87, fix: complete project.urls metadata intercede#57, fix: remove sampleproject template leftovers mkdocs-diracx-plugin#15, fix: complete DIRACCommon project.urls metadata DIRAC#8969, fix: add project.urls metadata to all packages diracx#1215, refactor: migrate packaging metadata to pyproject.toml DIRACWebAppResources#3, refactor: migrate packaging metadata to pyproject.toml dirac-webapp-packaging#3, refactor: migrate packaging metadata from setup.py to pyproject.toml diraccfg#25
- 25 Nov (fixes found by the first releases, ruleset config): style: blank line after the docstring of check_release_version.py WebAppDIRAC#860, [v5] style: blank line after the docstring of check_release_version.py WebAppDIRAC#861, [v5] fix: check out DIRAC inside the workspace in the release job WebAppDIRAC#862, fix: give the draft release a title DIRAC#8974, [9.0] fix: give the draft release a title DIRAC#8975, [8.0] fix: give the draft release a title DIRAC#8976, ci: create one draft release, not one per package diracx-web#530, chore: write the repository field of diracx-web-components as an object diracx-web#532, chore: require the aggregate test job in DIRAC, DIRACOS2, Pilot and diracx-charts #26, chore: limit the release-please exception to the one branch it uses #27
- 26 Nov: ci: merge devel into master (ci-ok job) Pilot#305, chore: drop upstream's maint directory and its pinned requirements tornado#39, chore: remove codecov diracx#1219
- Workflows removed: Remove labeler and pr-sweep GitHub actions DIRAC#8881, Remove labeler and pr-sweep GitHub actions DIRAC#8882, Remove labeler and pr-sweep GitHub actions DIRAC#8883, Remove labeler and pr-sweep GitHub actions WebAppDIRAC#816, Remove labeler and pr-sweep GitHub actions WebAppDIRAC#817, [v9r0] chore: remove the pylint-py27 job DIRAC#8894, [v8r0] chore: remove the pylint-py27 job DIRAC#8895
2. Broken right now
- Releases. Working: signurlarity, intercede, DIRAC, WebAppDIRAC, diracx-web. Not tried: DB12, diraccfg. Still blocked: diracx (ci: use GITHUB_TOKEN for release-please and publish with the pypi environment diracx#1187), DIRACOS2, diracx-charts (fix in review: ci: publish chart oci diracx-charts#348). See P2.
- DIRAC's conda step appears as failed, but seems like effectively succeeding
- DIRAC: check for CVMFS deployment
3. Open work, by priority
P0. Close the path that was used
- diracx: ci: use GITHUB_TOKEN for release-please and publish with the pypi environment diracx#1187 (release-please without a stored token, PyPI through the
pypienvironment; thediracx.envexample now lives in the repository). Checks pass. Waiting for an approval: fstagni is the author and aldbr pushed last, so either another release manager approves, or fstagni pushes a real change (an empty commit does not count) and aldbr approves. With it: set the 10 PyPI publishers to require the environment.MY_RELEASE_PLEASE_TOKENis deleted (24 Nov).
P1. Make the rulesets uniform and meaningful
- Required checks beyond
pre-commit: first batch done (section 1); open pull requests in those repositories must be updated from their base branch. Left: the DIRAC integration tests (skipped on docs-only changes), and the second batch (diracx, diracx-web, signurlarity, intercede, DB12, diraccfg). - feat: automerge non-major Renovate updates #12 (Renovate automerge of non-major updates): wanted, release branches included. It does not depend on the item above: Renovate itself waits for all the checks of the pull request, required or not. Left: review and merge.
P2. Release without stored credentials, and prove it
Pattern (decided 20 Nov): CI drafts, a release manager publishes, CI ships. A workflow creates a draft release; a release manager publishes it, which creates the tag; on: release: published builds and publishes through the approved environment. No workflow stores a credential that can push to a protected branch or create a tag. Background: PyPI trusted publishers, rulesets, immutable releases.
Tick only after a real release:
- diracx: ci: use GITHUB_TOKEN for release-please and publish with the pypi environment diracx#1187
- DIRAC: 9.1.25 and 9.0.31 released with the pattern (25 Nov): PyPI and CVMFS done.
- DIRAC, conda-forge step: it creates the feedstock pull request, then fails when labelling it (a bug of the pinned
conda-forge/releaseaction, fixed upstream but not tagged; it has ended every release this way since October). For 9.1.25: label or merge feedstock PR 222 by hand. Then ask upstream for a tag and bump the pin. - WebAppDIRAC: 6.0.10 and 5.0.16 released with the pattern (25 Nov).
- DIRACOS2: the release script already drafts, uploads the installers, then publishes and pushes a version bump to
main. To do: stop at the draft, and replace the pushed version bump (refused by the ruleset), for example by computing the next version from the latest release. To agree with the DIRACOS2 maintainers; no PR yet - intercede: 0.1.1 released with the pattern (25 Nov).
- diracx-web: 0.1.0-a12 released with the pattern (25 Nov): npm package and release image done.
- DB12, diraccfg: already tag → build → publish
- diracx-charts: no chart has been published since 1.1.20 (12 Nov): the chart releaser cannot create tags or push
gh-pages. Decided 26 Nov: publish the chart toghcr.ioas an OCI package (oci://ghcr.io/diracgrid/diracx-charts), which needs neither. ci: publish chart oci diracx-charts#348 (in review; includes a one-off copy of the versions already published, and the install pages), documentation in docs: the chart is published to ghcr.io, extensions follow it with Renovate diracx#1223 (draft, to merge after). Then: make the package public and limit its write access to the repository's workflows; run the copy once; change therepository:line in lhcbdiracx-charts and gubbins, and the chart check of lhcbdiracx; delete the four stuck drafts; remove the chart releaser from the allowed actions.
Also:
P3. Protect the protections
- Eight accounts (the
dirac-release-managerteam) are admin on every repository and can edit any ruleset. Closed by the teams item below (admin for the organization owners only). A scheduled drift report is then optional. - Teams and roles: proposal under discussion (admin for the organization owners only; maintainer teams with write per project;
dirac-release-managerreduced to the people who release, used for the tag bypass, the environment approvals andCODEOWNERS). Apply it after P0: more people with write means more tokens that can merge. - Release branch exception: on diracx, diracx-web, intercede and signurlarity the
fork-onlyruleset lets anyone with write push the release-please branch, because the workflow token cannot be given a bypass. A workflow on that branch is not limited to whatmainruns. Harmless while only the admins have write; to settle before the teams item gives write to more people. Since 26 Nov the exemption names only the one branch release-please uses (chore: limit the release-please exception to the one branch it uses #27, applied). Then choose: replace release-please by a draft made on demand where the version comes from the tag, or accept it and add a scheduled report of pushes to that branch by anyone but the workflow.
P4. Housekeeping
- Package metadata: complete and correct
project.urlsin every package (Homepage = diracgrid.org, Repository, Issues, Security; Documentation for DIRAC and diracx), and migrate the legacysetup.cfg/setup.pypackaging to PEP 621: fix: correct and complete project.urls metadata signurlarity#87, fix: complete project.urls metadata intercede#57, fix: remove sampleproject template leftovers mkdocs-diracx-plugin#15, fix: complete DIRACCommon project.urls metadata DIRAC#8969 (DIRACCommon), fix: add project.urls metadata to all packages diracx#1215 (all 20 packages), refactor: migrate packaging metadata to pyproject.toml DB12#27 (the only one still open), refactor: migrate packaging metadata to pyproject.toml DIRACWebAppResources#3, refactor: migrate packaging metadata to pyproject.toml dirac-webapp-packaging#3, refactor: migrate packaging metadata from setup.py to pyproject.toml diraccfg#25. Follow-up migrations for the DIRAC and WebAppDIRAC monorepo packages: Migrate packaging metadata from setup.cfg to pyproject.toml [project] and complete project.urls DIRAC#8970, Migrate packaging metadata from setup.cfg to pyproject.toml [project] and complete project.urls WebAppDIRAC#854. - (fstagni) Trivy scan of the diracx images: no run yet since ci: report only fixable critical and high findings from Trivy diracx#1211 (weekly, next on Monday 30 Nov). The release manager who published looks at the alerts: step added to the release procedure in ci: use GITHUB_TOKEN for release-please and publish with the pypi environment diracx#1187.
- Triage the open Dependabot alerts of diracx-web (more than 100) and the Trivy alerts on diracx (more than 100).
- diracx-web: major npm updates wait for approval on the Renovate dashboard, minor and patch updates keep coming (chore: require dashboard approval for major npm dependency updates diracx-web#534, in review). Several major Renovate PRs had been open and broken for months.
- Allowed-actions list: remove
codecov/codecov-action(no longer used) and, once ci: publish chart oci diracx-charts#348 is merged,helm/chart-releaser-action. - tornado fork: the upstream maintainer file behind its 77 Dependabot alerts is removed (chore: drop upstream's maint directory and its pinned requirements tornado#39); the alerts were still listed on 26 Nov and should close when GitHub refreshes the dependency graph. The real exposure is not in the alerts: the fork is Tornado 5.1.1 (2018), and 25 published advisories affect that version, 12 of them high, 19 published in 2026; none is backported. Backporting at that rate is not sustainable: the way out is to drop the fork ([v9r0] Use SSL/cryptography instead of M2Crypto/pyasn1 DIRAC#8691, which removes M2Crypto and so the need for the patch).
- Private vulnerability reporting: on DIRAC, diracx, diracx-web and Pilot only. The organization security configuration leaves it unset: switch it on there.
- (fstagni) Immutable releases beyond diracx, DIRAC, diracx-charts: enable per repository after its first release with the new pattern (signurlarity can go now).
- The
copilotenvironment came back on diracx and diracx-charts (GitHub creates it when the Copilot agent works on a pull request). Harmless as long as no publisher names it; either leave it or switch the agent off for those repositories. [Decision: leave it] - diracx: close the old release PR chore(main): release 0.8.0 diracx#1133 once ci: use GITHUB_TOKEN for release-please and publish with the pypi environment diracx#1187 is merged.
- Written record of the incident: what was exposed, what was rotated and when. Export the organization audit log for November with it (it is not kept forever).
4. Decisions
Taken on 23 Nov:
- pre-commit runs directly in the workflows.
diracx.envis an example committed in the diracx repository.- The ruleset templates are merged and applied.
Taken on 24 Nov:
- Classic personal access tokens will be blocked, after an announcement.
- fstagni reviews the release pattern for DIRAC (chore: release from a draft published by a release manager DIRAC#8934) and takes the ports.
- Trivy stays, limited to findings that can be acted on.
Taken on 26 Nov:
- Charts are published to
ghcr.ioon every merge tomasterof diracx-charts, with no release manager: a deliberate exception to "CI drafts, a release manager publishes", because that repository releases on almost every merge (ci: publish chart oci diracx-charts#348). - Classic personal access tokens are blocked.
Still to take:
- Automerge (feat: automerge non-major Renovate updates #12): wanted, on all repositories and branches.
- Admin rights and teams: the layout in P3.
Activity
[-]On minimizing our dependencies to user tokens[/-][+]On minimizing our dependencies to secrets[/+][-]On minimizing our dependencies to secrets[/-][+]Security hardening (tasks collection)[/+]fstagni commentedon Nov 17, 2026
Status update on the failing PRs (all diagnosed, fixes pushed where needed):
New PRs opened:
ci: run the CI jobs with pixi(stacked on feat: ruleset templates and a script to compare or apply them #13). Conda has disappeared from theubuntu-latestrunners (last green CI Nov 13, thenconda: command not found), which was breaking the diraccfg CI (and the checks on feat: ruleset templates and a script to compare or apply them #13/Make grouped pre-commit hook commit messages conventional #14). diraccfg is therefore un-parked: locked pixi environments (py39/py310/py311, committedpixi.lock), build viapython -m build, actions pinned, minimal permissions.ci: only push the el9-dirac image from master. Fork PRs get a read-onlyGITHUB_TOKEN, so the unconditionaldocker pushalways failed on PRs (installation not allowed to Write organization package) — this is what was red on #78 (and #77 earlier). Same guard as thecertificates-generationjob already uses.Fixes pushed to existing PRs:
pixi.lockwas still in.gitignore→ never committed →prefix-dev/setup-pixifailed withFailed to generate cache keyon allcheck/check-py314jobs (and the environments weren't actually locked). Lockfile now generated and committed.$MATRIX_ARGS, merging allKEY=VALUEpairs ofmatrix.ARGSinto a single argument (MYSQL_VER="mariadb:11.4.3 ES_VER=..."→ invalid docker reference; backward-compat job got a mangledINSTALLATION_BRANCH). Word-splitting restored.upstream/rel-v8r0to resolve the conflict — the only conflict was thepylint-py27job, dropped in favor of the upstream removal (#8895). Now MERGEABLE again.Diagnosed as not caused by the PRs — re-runs triggered:
integration/rel-v9r0. The failed jobs have been re-run.main(cert-manager webhook not ready whenissuer.ymlis applied → diracx/dex pods never healthy →Connection refusedincli_env).mainis green again; failed jobs re-run.mainsince Nov 16 — same cert-manager demo bootstrap failure (secrets "root-secret" not found, webhookconnection refused/x509) plusghcr.io/gubbins/tasks:devanonymous-pull 403 in the gubbins run. Needs a separate infra issue for the diracx demo/chart maintainers; a plain re-run of #521 will likely fail until that's fixed.Still open (unchanged): the zizmor PRs awaiting review,
exclude-newerrollout (intercede, signurlarity, diracx-charts, diracx-web), the pixi lockfile-maintenance rule in the shared Renovate preset, and the diraccfg zizmor PR (now stacked on #13 → #15).chore: disable Renovate's pre-commit manager, pre-commit.ci does the …
chore: run pre-commit via pre-commit/action and lite-action
chore: run pre-commit via pre-commit/action and lite-action
chore: enable Renovate's pre-commit manager in the shared preset (#8)
chore: enforce the release-age cooldown at solve time (exclude-newer …
chore: enforce the release-age cooldown at solve time (exclude-newer …
chore: enforce the release-age cooldown at solve time (exclude-newer …
chore: enforce the release-age cooldown at solve time (exclude-newer …
chore: run pre-commit via pre-commit/action and lite-action
22 remaining items
ci: inline the pre-commit run instead of pre-commit/action (#340)
ci: inline the pre-commit run instead of pre-commit/action (#1210)
ci: inline the pre-commit run instead of pre-commit/action
ci: inline the pre-commit run instead of pre-commit/action
ci: inline the pre-commit run instead of pre-commit/action
feat: ruleset templates and a script to compare or apply them
chore: add bandit (static security analysis) to pre-commit
chore: stop Renovate from updating TypeScript
chore: stop Renovate from updating TypeScript (#526)
chore: release from a draft published by a release manager
chore: release from a draft published by a release manager
chore(deps): update pre-commit hooks (major) and apply the new format…
chore: release from a draft published by a release manager
chore: release from a draft published by a release manager
chore: remove codecov (#1219)