Files
tmail-flutter/docs/decisions.md
T
Benoit TELLIER 0f006234f1 ci: a fork pull request runs no code before a linagora member vouches for it (#5175)
Start the pipeline with the Authorize fork stage of twake-contacts-frontend:
a fork pull request builds only when its owner is a linagora member, or a
member approved its head commit or reviewed it with "Build this please".
Bind the github and dockerHub credentials only around the steps that use
them, Docker Hub in a throwaway Docker config. The helpers are the same
block in the Jenkinsfiles of twake-contacts-frontend, twake-calendar-frontend,
twake-calendar-side-service, webadmin-proxy and tmail-flutter.
2026-11-24 10:11:31 +01:00

2.0 KiB

Decisions

Decisions taken on tmail-flutter, oldest first. Append only: a decision that changes gets a new entry that replaces the old one and cites it. Entry format: the twake-decisions skill of linagora/twake-guidelines.

Categories: UX, UI, Product, Architecture, Infra, Tech.

2026-11-24, [Infra] A fork pull request runs no code before a linagora member vouches for its head commit

  • Decision: replaces the fork check of the PR image delivery, which let any fork run its tests and was approved by a comment tied to no commit: the Jenkinsfile starts with an Authorize fork stage: a pull request from a fork runs nothing of its own (build, tests, scripts, post actions) unless the fork owner is a linagora member, or a member approved its head commit, submitted a review "Build this please" on it, or commented "Build this please " with its full id. No credential is bound at pipeline level; github and dockerHub are bound only around the steps that use them (withGithubCredential, withDockerHubLogin with a throwaway Docker config). The block holding these helpers is the same in the Jenkinsfiles of twake-contacts-frontend, twake-calendar-frontend, twake-calendar-side-service, webadmin-proxy, tmail-flutter, esn-sabre, tmail-backend and twake-mail-admin, and is changed in all of them.
  • Decided by: Benoit Tellier, after the twake-qa security review of twake-calendar-side-service (SEV-1, 2026-11-23); the pipeline of twake-contacts-frontend is the model.
  • Why: the agents are persistent and shared, so code of a pull request that runs before the check can read a credential bound later in the same build, or leave a process behind for a later one. A review is tied to a commit by GitHub, unlike a comment, so a commit pushed after the approval is not built until a member reviews it again.
  • Scope: Jenkinsfile and JenkinsfileMobile. The backend teardown in post runs only for an authorized build.