Skip to content

Releases: renuo/fripa

v0.2.0

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 12 Oct 07:57
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.

v0.1.3

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 26 Nov 12:57
534615e

What's Changed

New Contributors

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 14 Nov 08:49
f1024c5

Fixed

  • Fixed Fripa.configure block syntax not working due to missing required host parameter in Configuration initializer
  • Configuration validation now happens at usage time instead of initialization time

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 13 Nov 20:40
340fcb5

New Features

  • Add configurable port support (optional, defaults to 443)
  • Add configurable scheme support (http/https, defaults to https)
  • Make host parameter required

What's Changed

This release adds flexibility for users running FreeIPA on non-standard ports or locally via HTTP.

Configuration Examples

Custom port:

Fripa.configure do |config|
  config.host = 'ipa.example.com'
  config.port = 8443
end

Local development with HTTP:

Fripa.configure do |config|
  config.host = 'localhost'
  config.port = 8080
  config.scheme = 'http'
  config.verify_ssl = false
end

Technical Details

  • 100% line coverage, 96% branch coverage
  • All 60 tests passing
  • Backward compatible (port and scheme are optional)

v0.1.0

Choose a tag to compare

@bruno-costanzo bruno-costanzo released this 31 Oct 10:31
f06346d