github bdd/runitor v1.4.0

latest releases: v1.4.1-build.2, v1.4.1
3 months ago

v1.4.0

New:

  • Add file: prefix support for flag and env var indirection

    Passing secrets via environment variables isn't always safe. This change
    add support for reading values from a file, preferably one residing on a
    non-swappable memory, like systemd-credentials or Docker Compose
    Secrets, that get mounted from hopefully a safer location from the host.

    Example:

    # From the environment variable.
    export PING_KEY=file:/run/secrets/hc_prod_pingkey
    runitor -slug nightly-backup restic backup --files-from manifest

    # From the command line flag.
    # Using systemd-creds(1).
    [Service]
    Type=oneshot
    SetCredentialEncrypted=hc-uuid-upgrades: \
      Whxqht+[........................................................]nvz/E= \
    ExecStart=/usr/bin/runitor \
      -uuid file:%d/hc-uuid-upgrades \
      /usr/local/sbin/unattended-upgrades

    [Unit]
    Description=Unattended Upgrades
  • Add PING_KEY environment as preferred alternative to HC_PING_KEY

  • Go 1.24

Bug fixes:

  • For pings with body (captured by default) retries failed to
    send the body again on the, causing 400 Bad Request errors due
    to mismatched Content-Length header and body size.

    Runitor retries if the remote server returns a status code of 408,
    429, or 50[0234].

    Reported by @yteraoka in #181

Don't miss a new runitor release

NewReleases is sending notifications on new releases.