Skip to content

v0.2.0

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 12 Oct 07:57
· 4 commits to main since this release
caef33d

Changed

  • Network errors and timeouts (Faraday::Error) now raise Fripa::ConnectionError. Responses that are not JSON also raise Fripa::ConnectionError.
  • The session cookie keeps only name=value pairs. Attributes like path, httponly and secure are no longer sent back.
  • Login and API calls share one HTTP connection.
  • Fripa::Client#inspect and Fripa::Authenticator#inspect no longer show the password or the session cookie.
  • scheme is case-insensitive. An unknown scheme raises ArgumentError instead of falling back to HTTP.

Added

  • config.raise_on_partial_failure (default false): when true, calls that report per-entry failures (e.g. group_add_member with an unknown user, or a user that is already a member) raise Fripa::PartialFailureError (a Fripa::ResponseError). The full failed hash is in #data.
  • The client logs in again and retries once when the session expires (HTTP 401).
  • Fripa::Client#batch sends many commands in one HTTP request.
  • Configuration options: timeout, open_timeout, api_version and adapter (e.g. :net_http_persistent for keep-alive).
  • ipa_format: option for vault.archive and vault.retrieve, to read and write vaults in the format of the ipa CLI.
  • users.passwd accepts no current password, so admins can reset the password of another user.
  • RBS signatures in sig/.

Fixed

  • vault.retrieve returns nil for an empty vault instead of raising NoMethodError.
  • The vault resource fetches the KRA transport certificate once per client, not on every archive and retrieve.