Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

About the verify-sig and verify-provenance

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
papu
l33t
l33t
Posts: 772
Joined: Fri Jan 25, 2008 3:04 pm
Location: Sota algun pi o alzina...

About the verify-sig and verify-provenance

  • Quote

Post by papu » Thu Jan 22, 2026 12:56 pm

hi,

I decided to activate USE=" verify-sig" in my make.conf.
Now, verify-provenance (which seems to be only for Python packages what is it for? why is it only for Python ? Should I put it in make.conf too?

:oops:
Last edited by papu on Thu Jan 22, 2026 1:23 pm, edited 1 time in total.
~amd64 && systemd && plasma --cpu 7700 --ram 2x32GB --gpu RX 6600
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3529
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Thu Jan 22, 2026 1:16 pm

I don't know why one would enable something they don't know what it actually is.

According to the description of the use flag: verifies that the artifact comes from upstream source repository

But portage already performs checksum verification of all distfiles it downloads so it does not make sense to me. It looks redundant.

You can find more information in the man page of pypi.eclass (app-doc/eclass-manpages) or maybe even read the eclass itself.

Best Regards,
Georgi
Top
papu
l33t
l33t
Posts: 772
Joined: Fri Jan 25, 2008 3:04 pm
Location: Sota algun pi o alzina...

  • Quote

Post by papu » Thu Jan 22, 2026 1:28 pm

logrusx wrote:I don't know why one would enable something they don't know what it actually is.

According to the description of the use flag: verifies that the artifact comes from upstream source repository

But portage already performs checksum verification of all distfiles it downloads so it does not make sense to me. It looks redundant.

You can find more information in the man page of pypi.eclass (app-doc/eclass-manpages) or maybe even read the eclass itself.

Best Regards,
Georgi
Sorry, My previous post was wrong I would mean I am already using USE="verify-sig" in my make.conf , but don't know about verify-provenance

thanks!
:cry:
Last edited by papu on Thu Jan 22, 2026 6:46 pm, edited 1 time in total.
~amd64 && systemd && plasma --cpu 7700 --ram 2x32GB --gpu RX 6600
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4681
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Thu Jan 22, 2026 1:48 pm

logrusx wrote:I don't know why one would enable something they don't know what it actually is.
No need to be so negative about it.
Many users here are experimenting and/or learning. Despite OP was asking the effects of the USE flag (to which you did answer to).
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Jan 22, 2026 2:22 pm

Code: Select all

# verify-sig eclass provides a streamlined approach to verifying
# upstream signatures on distfiles.  Its primary purpose is to permit
# developers to easily verify signatures while bumping packages.
# The eclass removes the risk of developer forgetting to perform
# the verification, or performing it incorrectly, e.g. due to additional
# keys in the local keyring.  It also permits users to verify
# the developer's work.
#
# To use the eclass, start by packaging the upstream's key
# as sec-keys/openpgp-keys-*.  Then inherit the eclass, add detached
# signatures to SRC_URI and set VERIFY_SIG_OPENPGP_KEY_PATH.  The eclass
# provides verify-sig USE flag to toggle the verification.
#
# If you need to use signify, you may want to copy distfiles into WORKDIR to
# work around "Too many levels of symbolic links" error.
#
# A more complete guide can be found at:
# https://mgorny.pl/articles/verify-sig-by-example.html
Thus, while most users will not need it, it is helpful to users because it makes it easier for developers to do the right thing when bumping. Users can validate a download by relying on the checksums in the manifests, but the checksums are set by the developers when updating the ebuild, and only confirm that the user downloaded the file that the developer meant for you to download. If the developer added a checksum without verifying that the input file is a legitimate release, then the checksum validation would accept a potentially inappropriate file. USE=verify-sig aids developers by making signature verification an integral part of the workflow, so that a developer cannot accidentally add an inappropriate checksum.
Top
papu
l33t
l33t
Posts: 772
Joined: Fri Jan 25, 2008 3:04 pm
Location: Sota algun pi o alzina...

  • Quote

Post by papu » Fri Jan 23, 2026 12:55 am

The question was more to ask specifically about verify-provenance, since I already have verify-sig enabled for a few days. Will it gradually be applied to more packages like happened with verify-sig? That is, for now it only affects Python packages

thanks! :wink:
~amd64 && systemd && plasma --cpu 7700 --ram 2x32GB --gpu RX 6600
Top
sam_
Developer
Developer
User avatar
Posts: 2813
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Jan 23, 2026 1:10 am

verify-provenance is separate from verify-sig because we believe it is of "different" value to verify-sig.

See the gentoo-dev mailing list thread from its introduction, but in short, it's only in Gentoo because for some upstreams, it is the only verification method they provide, so we may as well use it. Sadly, pypi dropped PGP signatures because they were "underused" but instead of working on the UX around that, they dropped it entirely.

verify-sig is not reserved solely for PGP (we use it for minisig etc too) but we believe that the type of verification offered by "trusted publishers" is different enough to warrant marking it separately.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy