Back to all reviewers

Prefer modern security

quarkusio/quarkus
Based on 1 comments
Xml

When implementing security features (such as artifact signing), use current best practices and prefer pure-Java security libraries over native executables whenever possible. This approach simplifies configuration, improves portability, and reduces security risks associated with native executable dependencies and their complex configurations.

Security Xml

Reviewer Prompt

When implementing security features (such as artifact signing), use current best practices and prefer pure-Java security libraries over native executables whenever possible. This approach simplifies configuration, improves portability, and reduces security risks associated with native executable dependencies and their complex configurations.

For example, when configuring Maven GPG plugin, prefer:

<configuration>
    <bestPractices>true</bestPractices>
    <useAgent>false</useAgent>
    <signer>bc</signer>
</configuration>

Instead of manual configurations with native executables:

<configuration>
    <!-- Prevent gpg from using pinentry programs -->
    <gpgArguments>
        <arg>--pinentry-mode</arg>
        <arg>loopback</arg>
    </gpgArguments>
</configuration>

This leverages libraries like BouncyCastle (Java-based cryptography) that eliminate the need for native GPG executable installation and complex signature setup.

1
Comments Analyzed
Xml
Primary Language
Security
Category

Source Discussions