opendevstack / ods-quickstarters

Contains project quickstarters (boilerplates) for Nginx, Go, Java (Spring Boot), Python (Flask), Rust (Axum), Scala (Play), TypeScript (Express), Angular, Ionic, Jupyter, RShiny - all including CI/CD integration & Jenkins build agents
Apache License 2.0
27 stars 39 forks source link

openssl compile for rust axum quickstarter #1026

Closed gerardcl closed 1 month ago

gerardcl commented 1 month ago

Is your feature request related to a problem? Please describe. For specific cryptographic requirements the openssl crate is so far the more advanced on support of algs, cyphers, etc. Crates like pem, ring or rustls can be a replacement for most of the features openssl provides, but there are cases one can't avoid using openssl (e.g.: legacy algs).

Describe the solution you'd like The openssl crate provides a safe interface to the popular OpenSSL and LibreSSL cryptography libraries. OpenSSL versions 1.0.1 through 3.x.x and LibreSSL versions 2.5 through 3.7.x are supported. To enable proper shipping of the rust compiled binaries with OpenSSL, we need to make sure Jenkins Rust Axum Agent can handle OpenSSL compilation with the crate's "vendored" feature enabled.

When checking the official docs, the only missing requirement is to add some perl dependencies in the jenkins agent. See Fedora case.

Describe alternatives you've considered N/A

Additional context It's possible not using the "vendored" feature option to build OpenSSL and hence openssl crate, but the building/shipping through jenkins gets less lean.