MIR reporter’s template

MIR series

The article series provides guidance on all aspects of the Main Inclusion Reviews (MIR).

Process:

Contact:

This section is a guideline for the reporter as they are filing an MIR bug. The intent is to:

  • Make the future owning team think about common issues

  • Provide the detail needed by the reviewer to decide: Can this package be well maintained in main?

Usage follows How to use MIR templates.

Automated assistance available

The auto-mir tool can collect evidence and pre-fill a reporter draft for most of this template. See Using the auto-mir tool on the template usage page.

  1[Availability]
  2TODO: The package TBDSRC is already in Ubuntu universe.
  3TODO: The package TBDSRC build for the architectures it is designed to work on.
  4TODO: It currently builds and works for architectures: TBD
  5TODO: Link to package https://launchpad.net/ubuntu/+source/TBDSRC
  6
  7[Rationale]
  8
  9# -------- Demand
 10RULE: There must be a certain level of demand for the package
 11
 12TODO: - The package TBDSRC is required in Ubuntu main for TBD
 13TODO-A: - The package TBDSRC will generally be useful for a large part of
 14TODO-A:   our user base
 15TODO-B: - The package TBDSRC will not generally be useful for a large part of
 16TODO-B:   our user base, but is important/helpful still because TBD
 17TODO: - Additional reasons TBD
 18TODO: - Additionally new use-cases enabled by this are TBD
 19TODO: - Package TBDSRC covers the same use case as TBD, but is better
 20TODO:   because TBD, thereby we want to replace it.
 21TODO: - The package TBDSRC is a new runtime dependency of package TBD that
 22TODO:   we already support
 23
 24
 25# -------- Alternatives
 26RULE: Sometimes there are other/better ways, often are achieved by using a
 27RULE: library with similar functionality that is more commonly used and
 28RULE: thereby already in main or a better candidate to promote.
 29RULE: Reducing the set of supported software in Ubuntu helps to focus on the
 30RULE: right things, otherwise Ubuntu developers will be consumed by updating
 31RULE: many variations of the same - wasting valuable time that could be better
 32RULE: spent elsewhere.
 33RULE: If there are other packages in the archive that are close, but unable to
 34RULE: address the problem you might spend some time explaining what exists and
 35RULE: why it isn't a sufficient alternative.
 36
 37TODO: - There is no other/better way to solve this that is already in main or
 38TODO:   should go universe->main instead of this.
 39
 40
 41# -------- Prior-art
 42RULE: If the package is in main in other releases (use rmadison to check),
 43RULE: and the existing MIR and package content is still applicable and not
 44RULE: outdated relative to what you want to add, then please help us to
 45RULE: keep the discussion, argument and audit trail together.
 46RULE: To do so just add a new per-release tasks instead of creating a new MIR.
 47RULE: Otherwise - if the existing former case was way too different, continue
 48RULE: preparing this new MIR and please reference to the previous MIR.
 49RULE: This suggestion of per release tasks is valid in both directions.
 50RULE: For example forward when something was MIRed in 24.10 and 25.04 but got
 51RULE: demoted in 25.10 - and shall come back to 26.04 please add a task to
 52RULE: the existing MIR instead of creating a new one. Of course the reasons for
 53RULE: demotion in 25.10 will be important for this case.
 54RULE: And for example backwards, when something was MIRed for 24.04 onward,
 55RULE: but later is also needed in older releases like 22.04. In that
 56RULE: case you likely want to ensure via SRUs that things are up to date anyway
 57RULE: and yet again -  if the content, reasoning and outside factors are not
 58RULE: vastly different - you'd be expected to add per-release-tasks to the
 59RULE: existing MIR case which makes it easier for reporter and reviewer alike.
 60
 61TODO-A: - This is the first time package will be in main
 62TODO-B: - Package was in main before (Ubuntu aa.bb->xx.yy) (MIR-Bug LP: #...)
 63
 64
 65# -------- Main-vs-universe
 66RULE: You truly need to understand the difference between main and universe
 67RULE: in general and in the context of changed rules (build-depends) and
 68RULE: constraints (Ubuntu Pro made it less of a difference in many cases).
 69RULE: We have seen requests that were mostly based on old "I said supported (a
 70RULE: weakly defined term to begin with) in a contract, so it has to be in main"
 71RULE: feelings, but with sometimes no true reason - neither technically nor
 72RULE: helping the user base of Ubuntu. Hence we need to ask for that clearly.
 73
 74TODO: - The binary packages TBD needs to be in main to achieve TBD
 75TODO-A: - All other binary packages built by TBDSRC should remain in universe
 76TODO-B: - All binary packages built by TBDSRC need to be in main to achieve TBD
 77
 78
 79# -------- Deadline
 80RULE: Reviews will take some time. Also the potential extra work out of review
 81RULE: feedback from either MIR-team and/or security-team will take time.
 82RULE: For better prioritization it is quite helpful to clearly state the
 83RULE: target release and set a milestone to the bug task.
 84RULE: When doing so do not describe what you "wish" or "would like to have".
 85RULE: Only milestones that are sufficiently well-founded and related to
 86RULE: major releases will be considered
 87
 88TODO-A: - The package TBDSRC is required in Ubuntu main no later than TBD
 89TODO-A:   due to TBD
 90TODO-B: - It would be great and useful to community/processes to have the
 91TODO-B:   package TBD in Ubuntu main, but there is no definitive deadline.
 92
 93[Security]
 94
 95# -------- CVE-history
 96RULE: The security history and the current state of security issues in the
 97RULE: package must allow us to support the package for at least 9 months (120
 98RULE: for LTS+ESM support) without exposing its users to an inappropriate level
 99RULE: of security risks. This requires checking of several things:
100RULE:   - Search in the National Vulnerability Database using the PKG as keyword
101RULE:     https://cve.mitre.org/cve/search_cve_list.html
102RULE:   - check OSS security mailing list (feed into search engine
103RULE:     'site:www.openwall.com/lists/oss-security <pkgname>')
104RULE:   - Ubuntu CVE Tracker
105RULE:     https://ubuntu.com/security/cve?package=<source-package-name>
106RULE:   - Debian Security Tracker
107RULE:     https://security-tracker.debian.org/tracker/source-package/<source-package-name>
108
109TODO-A: - Had #TBD security issues in the past
110TODO-A:   - TBD links to such security issues in trackers
111TODO-A:   - TBD to any context that shows how these issues got handled in
112TODO-A:     the past
113TODO-B: - No CVEs/security issues in this software in the past
114
115
116# -------- Security-sensitive-behavior
117RULE: - Check for security relevant binaries, services and behavior.
118RULE:   If any are present, this requires a more in-depth security review.
119RULE:   Demonstrating that common isolation/risk-mitigation patterns are used
120RULE:   will help to raise confidence. For example a service running as root
121RULE:   open to the network will need to be considered very carefully. The same
122RULE:   service dropping the root permissions after initial initialization,
123RULE:   using various systemd isolation features and having a default active
124RULE:   apparmor profile is much less concerning and can speed up acceptance.
125RULE:   This helps Ubuntu, but you are encouraged to consider working with
126RULE:   Debian and upstream to get those security features used at wide scale.
127RULE: - It might be impossible for the submitting team to check this perfectly
128RULE:   (the security team will), but you should be aware that deprecated
129RULE:   security algorithms like 3DES or TLS/SSL 1.1 are not acceptable.
130RULE:   If you think a package might do that it would be great to provide a
131RULE:   hint for the security team like "Package may use deprecated crypto"
132RULE:   and provide the details you have about that.
133
134TODO: - no `suid` or `sgid` binaries
135TODO-A: - no executables in `/sbin` and `/usr/sbin`
136TODO-B: - Binary TBD in sbin is no problem because TBD
137TODO-A: - Package does not install services, timers or recurring jobs
138TODO-B: - Package does install services, timers or recurring jobs
139TODO-B:   TBD (list services, timers, jobs)
140TODO: - Security has been kept in mind and common isolation/risk-mitigation
141TODO:   patterns are in place utilizing the following features:
142TODO:   TBD (add details and links/examples about things like dropping
143TODO:   permissions, using temporary environments, restricted users/groups,
144TODO:   seccomp, systemd isolation features, apparmor, ...)
145TODO-A: - Packages does not open privileged ports (ports < 1024).
146TODO-B: - Packages open privileged ports (ports < 1024), but they have
147TODO-B:   a reason to do so (TBD)
148TODO-A: - Package does not expose any external endpoints
149TODO-B: - Package does expose an external endpoint, it is
150TODO-B:   TBD endpoint + TBD purpose
151TODO: - Packages does not contain extensions to security-sensitive software
152TODO:   (filters, scanners, plugins, UI skins, ...)
153
154
155# -------- Deprecated-crypto
156RULE: The package should not use deprecated security algorithms like 3DES or
157RULE: TLS/SSL 1.1. The security team is the one responsible to check this,
158RULE: but if you happen to spot something it helps to provide a hint.
159RULE: Provide whatever made you suspicious as details along that statement.
160RULE: Or remove the following lines entirely if you did not spot anything.
161
162TODO: - I've spotted what I consider deprecated algorithms, the security team
163TODO:   should have a more careful look please, details are:
164
165[Quality assurance - function/usage]
166RULE: - After installing the package it must be possible to make it working with
167RULE:   a reasonable effort of configuration and documentation reading.
168
169TODO-A: - The package works well right after install
170TODO-B: - The package needs post install configuration or reading of
171TODO-B:   documentation, there isn't a safe default because TBD
172
173[Quality assurance - maintenance]
174RULE: - To support a package, we must be reasonably convinced that upstream
175RULE:   supports and cares for the package.
176RULE: - The status of important bugs in Debian, Ubuntu and upstream's bug
177RULE:   tracking systems must be evaluated. Important bugs must be pointed out
178RULE:   and discussed in the MIR report.
179
180TODO: - The package is maintained well in Debian/Ubuntu/Upstream and does
181TODO:   not have too many, long-term & critical, open bugs
182TODO:   - Ubuntu https://bugs.launchpad.net/ubuntu/+source/TBDSRC/+bug
183TODO:   - Debian https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=TBDSRC
184TODO:   - Upstream's bug tracker, e.g., GitHub Issues
185TODO: - The package has important open bugs, listing them: TBD
186
187
188# -------- Exotic-hardware
189RULE: This is about confidence to be able to maintain the package, therefore
190RULE: any option (the examples or anything else you add) is "valid", but it
191RULE: depends on the case if that is then considered sufficient.
192RULE: The following examples are in descending order in regard to how "ok" they
193RULE: likely will be.
194
195TODO-A: - The package does not deal with exotic hardware we cannot support
196TODO-B: - The package does deal with exotic hardware, such hardware is available
197TODO-B:   to the team for debugging, test, verification and development via:
198TODO-B1:   - testflinger under the following queue(s): TBD
199TODO-B2:   - (multiple) Canonical systems in the TBD computing center/lab
200TODO-B3:   - an engineering sample in engineers home on TBD team, manager TBD
201TODO-B4:   - (multiple) cloud providers as type: TBD
202TODO-B5:   - hopefully somewhen getting it due to TBD
203
204[Quality assurance - testing]
205
206# -------- Build-time-tests
207RULE: - The package must include a non-trivial test suite
208RULE:   - it should run at package build and fail the build if broken
209
210TODO-A: - The package runs a test suite on build time, if it fails
211TODO-A:   it makes the build fail, link to build log TBD
212TODO-B: - The package does not run a test at build time because TBD
213
214
215# -------- Autopkgtests
216RULE:   - The package should, but is not required to, also contain
217RULE:     non-trivial autopkgtest(s).
218
219TODO-A: - The package runs an autopkgtest, and is currently passing on
220TODO-A:   this TBD list of architectures, link to test logs TBD
221TODO-B: - The package does not run an autopkgtest because TBD
222
223
224# -------- Failing-tests
225RULE: - existing but failing tests that shall be handled as "ok to fail"
226RULE:   need to be explained along the test logs below
227
228TODO-A: - The package does have not failing autopkgtests right now
229TODO-B: - The package does have failing autopkgtests tests right now, but since
230TODO-B:   they always failed they are handled as "ignored failure", this is
231TODO-B:   ok because TBD
232
233
234# -------- Untestable-packages
235RULE: - If no build tests nor autopkgtests are included, and/or if the package
236RULE:   requires specific hardware to perform testing, the subscribed team
237RULE:   must provide a written test plan in a comment to the MIR bug, and
238RULE:   commit to running that test either at each upload of the package or
239RULE:   at least once each release cycle. In the comment to the MIR bug,
240RULE:   please link to the codebase of these tests (scripts or doc of manual
241RULE:   steps) and attach a full log of these test runs. This is meant to
242RULE:   assess their validity (e.g. not just superficial).
243RULE:   If possible such things should stay in universe. Sometimes that is
244RULE:   impossible due to the way how features/plugins/dependencies work
245RULE:   but if you are going to ask for promotion of something untestable
246RULE:   please outline why it couldn't provide its value (e.g. by splitting
247RULE:   binaries) to users from universe.
248RULE:   This is a balance that is hard to strike well, the request is that all
249RULE:   options have been exploited before giving up. Look for more details
250RULE:   and backgrounds https://github.com/canonical/ubuntu-mir/issues/30
251RULE:   Just like in the SRU process it is worth to understand what the
252RULE:   consequences a regression (due to a test miss) would be. Therefore
253RULE:   if being untestable we ask to outline what consequences this would
254RULE:   have for the given package. And let us be honest, even if you can
255RULE:   test you are never sure you will be able to catch all potential
256RULE:   regressions. So this is mostly to force self-awareness of the owning
257RULE:   team than to make a decision on.
258
259TODO: - The package can not be well tested at build or autopkgtest time
260TODO:   because TBD. To make up for that:
261TODO-A:   - We have access to such hardware in the team
262TODO-B:   - We have allocated budget to get this hardware, but it is not here
263TODO-B:     yet
264TODO-C:   - We have checked with solutions-qa and will use their hardware
265TODO-C:     through testflinger
266TODO-D:   - We have checked with other team TBD and will use their hardware
267TODO-D:     through TBD (eg. MAAS)
268TODO-E:   - We have checked and found a simulator which covers this case
269TODO-E:     sufficiently for testing, our plan to use it is TBD
270TODO-F:   - We have engaged with the upstream community and due to that
271TODO-F:     can tests new package builds via TBD
272TODO-G:   - We have engaged with our user community and due to that
273TODO-G:     can tests new package builds via TBD
274TODO-H:   - We have engaged with the hardware manufacturer and made an
275TODO-H:     agreement to test new builds via TBD
276TODO-A-H: - Based on that access outlined above, here are the details of the
277TODO-A-H:   test plan/automation TBD (e.g. script or repo) and (if already
278TODO-A-H:   possible) example output of a test run: TBD (logs).
279TODO-A-H:   We will execute that test plan
280TODO-A-H1:  on-uploads
281TODO-A-H2:  regularly (TBD details like frequency: monthly, infra: jira-url)
282TODO-X:   - We have exhausted all options, there really is no feasible way
283TODO-X:     to test or recreate this. We are aware of the extra implications
284TODO-X:     and duties this has for our team (= help SEG and security on
285TODO-X:     servicing this package, but also more effort on any of your own
286TODO-X:     bug triage and fixes).
287TODO-X:     Due to TBD there also is no way to provide this to users from
288TODO-X:     universe.
289TODO-X:     Due to the nature, integration and use cases of the package the
290TODO-X:     consequences of a regression that might slip through most likely
291TODO-X:     would include
292TODO-X:     - TBD
293TODO-X:     - TBD
294TODO-X:     - TBD
295
296
297# -------- Micro-libraries
298RULE: - In some cases a solution that is about to be promoted consists of
299RULE:   several very small libraries and one actual application uniting them
300RULE:   to achieve something useful. This is rather common in the go/rust space.
301RULE:   In that case often these micro-libs on their own can and should only
302RULE:   provide low level unit-tests. But more complex autopkgtests make no
303RULE:   sense on that level. Therefore in those cases one might want to test on
304RULE:   the solution level.
305RULE:   - Process wise MIR-requesting teams can ask (on the bug) for this
306RULE:     special case to apply for a given case, which reduces the test
307RULE:     constraints on the micro libraries but in return increases the
308RULE:     requirements for the test of the actual app/solution.
309RULE:   - Since this might promote micro-lib packages to main with less than
310RULE:     the common level of QA any further MIRed program using them will have
311RULE:     to provide the same amount of increased testing.
312
313TODO: - This package is minimal and will be tested in a more wide reaching
314TODO:   solution context TBD, details about this testing are here TBD
315
316[Quality assurance - packaging]
317
318# -------- Upstream-watch
319RULE: - The package uses a debian/watch or debian/upstream/metadata file
320RULE:   whenever possible. The second option is the alternative for packages
321RULE:   maintained with git-buildpackage. Consider whether that's
322RULE:   still true at the time of reporting your MIR. In cases where this is
323RULE:   not possible (e.g. native packages), the package should either provide
324RULE:   a debian/README.source file or a debian/watch file (with comments only)
325RULE:   providing clear instructions on how to generate the source tar file.
326RULE:   For clarity the TODOs below refer as "upstream watch file" to any
327RULE:   solution similar to the alternatives above which must be present in the
328RULE:   package so tools can detect and fetch new upstream releases.
329
330TODO-A: - A mechanism to detect and fetch new upstream versions is present and works
331TODO-B: - A mechanism to detect and fetch new upstream versions is not present,
332TODO-B:   instead it has TBD
333TODO-C: - A mechanism to detect and fetch new upstream versions is not present
334TODO-C:   because it is a native package
335
336
337# -------- Maintainer
338RULE: - The package should define the correct "Maintainer:" field in
339RULE:   debian/control. This needs to be updated, using `update-maintainer`
340RULE:   whenever any Ubuntu delta is applied to the package, as suggested by
341RULE:   dpkg (LP: #1951988)
342
343TODO: - debian/control defines a correct Maintainer field
344
345
346# -------- Lintian
347RULE: - It is often useful to run `lintian --pedantic` on the package to spot
348RULE:   the most common packaging issues in advance
349RULE: - Non-obvious or non-properly commented lintian overrides should be
350RULE:   explained
351
352TODO: - This package does not yield massive lintian Warnings, Errors
353TODO: - Please link to a recent build log of the package <TBD>
354TODO: - Please attach the full output you have got from
355TODO:   `lintian --pedantic` as an extra post to this bug.
356TODO-A: - Lintian overrides are not present
357TODO-B: - Lintian overrides are present, but ok because TBD
358
359
360# -------- Obsolete-deps
361RULE: - The package should not rely on obsolete or about to be demoted packages.
362RULE:   That currently includes package dependencies on Python2 (without
363RULE:   providing Python3 packages), and packages depending on GTK2.
364
365TODO: - This package does not rely on obsolete or about to be demoted packages.
366TODO: - This package has no python2 or GTK2 dependencies
367
368
369# -------- Debconf
370RULE: - Debconf questions should not bother the default user too much
371
372TODO-A: - The package will be installed by default, but does not ask debconf
373TODO-A:   questions higher than medium
374TODO-B: - The package will not be installed by default
375
376
377# -------- Packaging-complexity
378RULE:  - The source packaging (in debian/) should be reasonably easy to
379RULE:   understand and maintain.
380
381TODO-A: - Packaging and build is easy, link to debian/rules TBD
382TODO-B: - Packaging is complex, but that is ok because TBD
383
384[UI standards]
385
386# -------- Translation
387RULE: - End-user facing applications must support translation/intl.
388RULE:   Non-end-user applications (libraries, daemons, CLI tools) are exempt.
389
390TODO-A: - Application is not end-user facing (does not need translation)
391TODO-B: - Application is end-user facing, Translation is present, via standard
392TODO-B:   intltool/gettext or similar build and runtime internationalization
393TODO-B:   system see TBD
394
395
396# -------- Desktop-file
397RULE: - End-user GUI applications should ship a standard conformant desktop file.
398
399TODO-A: - End-user applications that ships a standard conformant desktop file,
400TODO-A:   see TBD
401TODO-B: - End-user applications without desktop file, not needed because TBD
402
403[Dependencies]
404RULE: - In case of alternatives, the first alternative must be in main.
405RULE:   Depends: concrete-package-in-main | metapackage
406RULE: - Build(-only) dependencies can be in universe
407RULE: - If there are further dependencies they need a separate MIR discussion
408RULE:   (this can be a separate bug or another task on the main MIR bug)
409
410TODO-A: - Used check-mir from ubuntu-dev-tools to validate
411TODO-A:   all dependencies or recommends are in main.
412TODO-B: - There are further dependencies that are not yet in main, MIR for them
413TODO-B:   is at TBD
414TODO-C: - There are further dependencies that are not yet in main, the MIR
415TODO-C:   process for them is handled as part of this bug here.
416
417[Standards compliance]
418
419# -------- FHS-and-policy
420RULE: - Major violations should be documented and justified.
421RULE:   - FHS: https://refspecs.linuxfoundation.org/fhs.shtml
422RULE:   - Debian Policy: https://www.debian.org/doc/debian-policy/
423
424TODO-A: - This package correctly follows FHS and Debian Policy
425TODO-B: - This package violates FHS or Debian Policy, reasons for that are TBD
426
427
428# -------- License-longevity
429RULE: - The package's license must remain compatible with Ubuntu main for the
430RULE:   full support lifetime of the release (including ESM where relevant).
431RULE:   Consider whether the license could expire, time out, or otherwise change
432RULE:   after promotion. Examples of concerns include time-limited patent grants,
433RULE:   licenses tied to a specific upstream entity or contract, dual-licensed
434RULE:   code where the permissive branch could be withdrawn, or terms that only
435RULE:   apply to the current upstream version.
436RULE:   If you suspect any of the above may apply, flag it explicitly so the MIR
437RULE:   team can weigh the long-term cost before promotion.
438
439TODO-A: - Based on a reasonable review of information available at the time of
440TODO-A:   this report, no expiry, time-limited grants, or obvious legal
441TODO-A:   encumbrances have been identified that would be expected to affect
442TODO-A:   promotion
443TODO-B: - The license carries potential encumbrances or time-bound terms,
444TODO-B:   details: TBD
445
446[Maintenance/Owner]
447
448# -------- Owning-team
449RULE: The package must have an acceptable level of maintenance corresponding
450RULE: to its complexity:
451RULE: - All packages must have a designated "owning" team, regardless of
452RULE:   complexity. Only a selected set of Launchpad teams can own a package
453RULE:   in main, you can find this list here:
454RULE:   https://git.launchpad.net/ubuntu-archive-tools/tree/lputils.py#n46
455RULE:   This requirement of an owning-team comes in two aspects:
456RULE:   - A case needs to have a team essentially saying "yes we will own that"
457RULE:     to enter the MIR process. Usually that is implied by team members
458RULE:     filing MIR requests having the backup by their management for the
459RULE:     long term commitment this implies.
460RULE:     - A community driven MIR request might be filed to show the use case,
461RULE:       but then, as a first step, needs to get a team agreeing to own
462RULE:       it before the case can be processed further.
463RULE:       If unsure which teams to consider have a look at the current mapping
464RULE:       http://reqorts.qa.ubuntu.com/reports/m-r-package-team-mapping.html
465RULE:       In that case (you are not a representative of the team who will
466RULE:       gain the long term committment to this) please ask a representative
467RULE:       of that team to comment on the bug acknowledging that they are ok to
468RULE:       own it.
469RULE:   - The package needs a bug subscriber before it can be promoted to main.
470RULE:     Strictly speaking that subscription can therefore wait until the
471RULE:     moment of the actual promotion by an archive admin. But it is
472RULE:     strongly recommended to subscribe early, as the owning team will get
473RULE:     a preview of the to-be-expected incoming bugs later on.
474RULE: - Simple packages (e.g. language bindings, simple Perl modules, small
475RULE:   command-line programs, etc.) might not need very much maintenance
476RULE:   effort, and if they are maintained well in Debian we can just keep them
477RULE:   synced. They still need a subscribing team to handle bugs, FTBFS and
478RULE:   tests
479RULE: - More complex packages will usually need a developer or team of
480RULE:   developers paying attention to their bugs, whether that be in Ubuntu
481RULE:   or elsewhere (often Debian). Packages that deliver major new headline
482RULE:   features in Ubuntu need to have commitment from Ubuntu developers
483RULE:   willing to spend substantial time on them.
484
485TODO-A: - The owning team will be TBD and I have their acknowledgment for
486TODO-A:   that commitment
487TODO-B: - I Suggest the owning team to be TBD
488
489TODO-A: - The future owning team is already subscribed to the package
490TODO-B: - The future owning team is not yet subscribed, but will subscribe to
491TODO-B:   the package before promotion
492
493
494# -------- Static-builds
495RULE: - Responsibilities implied by static builds promoted to main, which is
496RULE:   not a recommended but a common case with golang and rust packages.
497RULE:   - the security team will track CVEs for all vendored/embedded sources in main
498RULE:   - the security team will provide updates to main for all `golang-*-dev`
499RULE:     packages
500RULE:   - the security team will provide updates to main for non-vendored
501RULE:     dependencies as per normal procedures (including e.g.,
502RULE:     sponsoring/coordinating uploads from teams/upstream projects, etc)
503RULE:   - the security team will perform no-change-rebuilds for all packages
504RULE:     listing an CVE-fixed package as Built-Using and coordinate testing
505RULE:     with the owning teams responsible for the rebuilt packages
506RULE:   - for packages that build using any `golang-*-dev` packages:
507RULE:     - the owning team must state their commitment to test
508RULE:       no-change-rebuilds triggered by a dependent library/compiler and to
509RULE:       fix any issues found for the lifetime of the release (including ESM
510RULE:       when included)
511RULE:     - the owning team must provide timely testing of no-change-rebuilds
512RULE:       from the security team, fixing the rebuilt package as necessary
513RULE:   - for packages that build with approved vendored code:
514RULE:     - the owning team must state their commitment to provide updates to
515RULE:       the security team for any affected vendored code for the lifetime of
516RULE:       the release (including ESM when included)
517RULE:     - the security team will alert the owning team of issues that may
518RULE:       affect their vendored code
519RULE:     - the owning team will provide timely, high quality updates for the
520RULE:       security team to sponsor to fix issues in the affected vendored code
521RULE:     - the owning team will use a minimal set of vendored code (e.g., Rust
522RULE:       packages are unlikely to need `*_win` crates to build)
523RULE:     - if subsequent uploads add new vendored components or dependencies
524RULE:       these have to be reviewed and agreed by the security team.
525RULE:     - Such updates in the project might be trivial, but imply that a
526RULE:       dependency for e.g. a CVE fix will be moved to a new major version.
527RULE:       Being vendored that does gladly at least not imply incompatibility
528RULE:       issues with other packages or the SRU policy. But it might happen
529RULE:       that this triggers either:
530RULE:       a) The need to adapt the current version of the main package and/or
531RULE:          other vendored dependencies to work with the new dependency
532RULE:       b) The need to backport the fix in the dependency as the main
533RULE:          package will functionally only work well with the older version
534RULE:       c) The need to backport the fix in the dependency, as it would imply
535RULE:          requiring a newer toolchain to be buildable that isn't available
536RULE:          in the target release.
537RULE: - The rust ecosystem currently isn't yet considered stable enough for
538RULE:   classic lib dependencies and transitions in main; therefore the
539RULE:   expectation for those packages is to vendor (and own/test) all
540RULE:   dependencies (except those provided by the rust runtime itself).
541RULE:   This implies that all the rules for vendored builds always
542RULE:   apply to them. In addition:
543RULE:   - The rules and checks for rust based packages are preliminary and might
544RULE:     change over time as the ecosystem matures and while
545RULE:     processing the first few rust based packages.
546RULE:   - It is expected rust builds will use dh-cargo so that a later switch
547RULE:     to non vendored dependencies isn't too complex (e.g. it is likely
548RULE:     that over time more common libs shall become stable and then archive
549RULE:     packages will be used to build).
550RULE:   - The tooling to get a Cargo.lock that will include internal vendored
551RULE:     dependencies is described at:
552RULE:     https://github.com/ubuntu/ubuntu-project-docs/blob/main/docs/MIR/mir-rust.md
553RULE:   - An example of how Rust dependency vendoring can be automated is
554RULE:     "s390-tools", isolating crates in a .orig-vendor.tar.xz tarball:
555RULE:     * https://git.launchpad.net/ubuntu/+source/s390-tools/tree/debian/rules
556RULE:     Other examples include "authd" (for a native package, combined with
557RULE:     Golang vendoring) and "gnome-snapshot" (using debian/missing-sources):
558RULE:     * authd:
559RULE:       https://github.com/ubuntu/authd/blob/main/debian/rules
560RULE:     * gnome-snapshot:
561RULE:       https://salsa.debian.org/ubuntu-dev-team/snapshot/-/blob/ubuntu/latest/debian/README.source
562
563RULE: - All vendored dependencies (no matter what language) shall have a
564RULE:   way to be refreshed
565
566TODO-A: - This does not use static builds
567TODO-B: - The team TBD is aware of the implications by a static build and
568TODO-B:   commits to test no-change-rebuilds and to fix any issues found for the
569TODO-B:   lifetime of the release (including ESM)
570
571TODO-A: - This does not use vendored code
572TODO-B: - The team TBD is aware of the implications of vendored code and (as
573TODO-B:   alerted by the security team) commits to provide updates and backports
574TODO-B:   to the security team for any affected vendored code for the lifetime
575TODO-B:   of the release (including ESM).
576
577TODO-A: - This does not use vendored code
578TODO-B: - This package uses vendored go code tracked in go.sum as shipped in the
579TODO-B:   package, refreshing that code is outlined in debian/README.source
580TODO-C: - This package uses vendored rust code tracked in Cargo.lock as shipped,
581TODO-C:   in the package (at /usr/share/doc/<pkgname>/Cargo.lock - might be
582TODO-C:   compressed), refreshing that code is outlined in debian/README.source
583TODO-D: - This package uses vendored code, refreshing that code is outlined
584TODO-D:   in debian/README.source
585
586TODO-A: - This does not use vendored code
587TODO-B: - This package uses vendored code, the debian/copyright has been
588TODO-B:   updated to cover the vendored content
589
590TODO-A: - This package is not rust based
591TODO-B: - This package is rust based and vendors all non language-runtime
592TODO-B:   dependencies
593
594
595# -------- Recent-build
596RULE: - Some packages build and update often, in this case everyone can just
597RULE:   check the recent build logs to ensure if it builds fine.
598RULE:   But some other packages are rather stable and have not been rebuilt
599RULE:   in a long time. There no one can be confident it would build on e.g.
600RULE:   an urgent security fix. Hence we ask if there has been a recent build.
601RULE:   That might be a recent build that has been done anyway as seen on
602RULE:   https://launchpad.net/ubuntu/+source/<source>, a reference to a recent
603RULE:   archive test rebuild (those are announced on the ubuntu-devel mailing
604RULE:   list like https://lists.ubuntu.com/archives/ubuntu-devel-announce/2024-January/001342.html),
605RULE:   or a build set up by the reporter in a PPA with all architectures
606RULE:   enabled.
607
608TODO-A: - The package has been built within the last 3 months in the archive
609TODO-B: - The package has been built within the last 3 months as part
610TODO-B:   of a test rebuild
611TODO-C: - The package has been built within the last 3 months in PPA
612TODO-D: - The package has been built within the last 3 months in sbuild as it
613TODO-D:   can not be uploaded yet
614RULE: - To make it easier for everyone, please provide a link to that build so
615RULE:   everyone can follow up easily e.g. checking the various architectures.
616RULE:   Example https://launchpad.net/ubuntu/+source/qemu/1:8.2.2+ds-0ubuntu1
617
618TODO: - Build link on launchpad: TBD
619
620
621# -------- Cross-team-impact
622RULE: A few times we had packages that seemed fine for the package itself, but
623RULE: caused quite some fallout and effort in related teams. We'd ask you to
624RULE: think who else might be affected by promoting this package(s) and to
625RULE: please coordinate with them upfront so they have time, understanding and
626RULE: sympathy available.
627RULE: Examples of the past which we admit could have been better (grows by
628RULE: painful lessons learned):
629RULE: - changing to rust coreutils forced us to update any apparmor profiles
630RULE:   that referred to these paths
631
632TODO-A: This change will not impact other teams
633TODO-B: This change will impact other teams TBD[, TBD] and they are
634TODO-B: aware due to TBD
635
636[Background information]
637RULE: - The package descriptions should explain the general purpose and context
638RULE:   of the package. Additional explanations/justifications should be done in
639RULE:   the MIR report.
640RULE: - If the package was renamed recently, or has a different upstream name,
641RULE:   this needs to be explained in the MIR report.
642
643TODO: The Package description explains the package well
644TODO: Upstream Name is TBD
645TODO: Link to upstream project TBD
646TODO: TBD (any further background that might be helpful