Skip to content

docs: document permissive mode for prefetch-dependencies#598

Open
Kasturijadhav14 wants to merge 1 commit intokonflux-ci:mainfrom
Kasturijadhav14:document-prefetch-permissive-mode
Open

docs: document permissive mode for prefetch-dependencies#598
Kasturijadhav14 wants to merge 1 commit intokonflux-ci:mainfrom
Kasturijadhav14:document-prefetch-permissive-mode

Conversation

@Kasturijadhav14
Copy link
Copy Markdown

Closes #586

What this PR does

Adds documentation for enabling the permissive mode in the prefetch-dependencies task.

Why

Hermeto runs in strict mode by default, which can cause prefetch failures when a PyPI dependency contains a Rust extension with an outdated Cargo.lock file. This is a known limitation that affects real-world use cases.

Changes

  • Added a new Enabling permissive mode for prefetch-dependencies section to modules/building/pages/prefetching-dependencies.adoc
  • Explains when and why to use permissive mode
  • Shows how to enable it via the flags parameter in prefetch-input
  • Includes examples for single and multiple package managers
  • Adds a warning about the security trade-offs

@Kasturijadhav14 Kasturijadhav14 requested a review from a team as a code owner March 26, 2026 15:16
@snyk-io
Copy link
Copy Markdown

snyk-io bot commented Mar 26, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces new documentation for a 'permissive mode' in Hermeto's prefetch-dependencies feature, detailing its purpose, use cases, and configuration via prefetch-input flags in PipelineRun YAML. The review comments highlight that the new headings and sub-headings in the documentation do not adhere to the repository's style guide, which requires imperative mood language.

include::partial${context}-prefetch-hermeto-note.adoc[]
====

== [[permissive-mode]]Enabling permissive mode for `prefetch-dependencies`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The heading uses a gerund ("Enabling"). Per the repository style guide, please use imperative mood language for headings. Consider using "Enable" or "Configure" instead.

== [[permissive-mode]]Enable permissive mode for `prefetch-dependencies`
References
  1. Use imperative mood language. (link)

Enabling permissive mode reduces the strictness of the prefetch validation. This may result in less accurate SBOMs and reduced build reproducibility. Use this option only when necessary and be aware of the security trade-offs.
====

=== When to use permissive mode
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This sub-heading is not in imperative mood. Please rephrase it to follow the repository style guide.

=== Use permissive mode when
References
  1. Use imperative mood language. (link)

* A PyPI dependency contains a Rust extension whose `Cargo.lock` file is outdated or missing, causing the prefetch to fail in strict mode.
* You have confirmed the dependency is trustworthy and the prefetch failure is due to a known limitation rather than a security concern.

=== How to enable permissive mode
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This sub-heading is not in imperative mood. Please rephrase it to follow the repository style guide.

=== Enable permissive mode
References
  1. Use imperative mood language. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to enable the permissive mode for the "prefetch-dependencies" tasks

1 participant