opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Download CLEO endpoint

Open reimarstier opened this issue 1 year ago • 2 comments

To run CLEO in CI/CD a user wants to always have the matching binary for the current architecture.

Tasks

  • [ ] CARL should provide an HTTP endpoint to download CLEO
    • Serve debug binary in development mode
    • Serve directory with release binary of CLEO for the requested architecture
  • [ ] A distribution build should include the CLEO release within CARL's distribution
  • [ ] Add documentation on how to configure your CI pipeline

Details

A user wants to use CLEO in CI/CD. The following could be a description on how to use it.

Configure workflow environment variables:

  • CARL url
  • CARL CA (Keycloak CA, if different)
  • issuer URL for keycloak
  • Client id, secret
echo $CARL_CA > /path/to/ca.pem
export SSL_CERT_FILE=/path/to/ca.pem
curl https://carl/download/arch-triple/opendut-cleo.tar
tar xf opendut-cleo.tar
./opendut-cleo

reimarstier avatar Apr 12 '24 13:04 reimarstier

  • [x] CARL should provide an HTTP endpoint to download CLEO
    • [x] Serve debug binary in development mode
    • [x] Serve directory with release binary of CLEO for the requested architecture
  • [x] A distribution build should include the CLEO release within CARL's distribution
  • [ ] Add documentation on how to configure your CI pipeline

mtwardawski avatar Apr 19 '24 09:04 mtwardawski

Currently the download does not provide the client certificate, clientID and client secret. Requires: #190 and #198 to be fully usable

mirenz1 avatar May 02 '24 07:05 mirenz1