Skip to content

Releases

v0.3.0

Choose a tag to compare

@satee-owner satee-owner released this 02 Dec 13:56
bundle add satee-openfeature-provider --version "~> 0.3.0"

Changed behavior

  • Reads the /v2/ flag file instead of /v1/. 0.2.0 and earlier keep reading the /v1/ file, which Satee still publishes. They keep working, but they see a rolled-out flag as off for everyone. Upgrade every app that reads a rolled-out flag. See Older releases.

New

  • Percentage rollouts. A flag rolled out to a share of users is on for the targeting keys whose bucket is below the share, with the reason TARGETING_MATCH. Buckets come from the flag key and the targeting key, so a user gets the same answer every time, in every process and every Satee provider, each flag buckets on its own, and raising the share keeps everyone who already had the flag. A rollout is close to N% of users, not exactly N%. See Percentage rollouts.
  • No targeting key, no rollout. Without a targeting key, or with an empty one or one that is not a string, a rolled-out flag returns false, the off variant, with the reason DEFAULT and no error code, so a caller's default can't turn the rollout on for every keyless request. Pass targeting_key in the evaluation context; see Rails for an example.
  • Rollout changes are announced. PROVIDER_CONFIGURATION_CHANGED also names an enabled flag whose rollout share changed, or that was rolled out or whose rollout ended.

Passes the Satee provider conformance suite v0.6.0. Requires Ruby 3.4 or later and openfeature-sdk 0.8.1.

v0.2.0

Choose a tag to compare

@satee-owner satee-owner released this 01 Dec 19:59
bundle add satee-openfeature-provider --version "~> 0.2.0"

Changed behavior

  • One failed poll no longer reports STALE. The provider turns STALE from READY once its flags are older than poll_interval + 60 seconds (or poll_interval if that is longer) + 15 seconds: 80 seconds at the default poll_interval. The age counts from the end of the last poll that brought a file it accepted or a 304, so a failed poll doesn't reset it, and the provider doesn't wait for a poll to finish to notice. In 0.1.1 the first failed poll after flags loaded reported STALE. A provider in ERROR still stays in ERROR.

Repository renamed

Passes the Satee provider conformance suite v0.5.0. Requires Ruby 3.4 or later and openfeature-sdk 0.8.1.

v0.1.1

Choose a tag to compare

@satee-owner satee-owner released this 01 Dec 08:54
bundle add satee-openfeature-provider --version "~> 0.1.1"

Changed behavior

  • A rejected flag file is not downloaded again. A 200 whose ETag matches the last rejected file is not read. The poll counts as failed with the original reason and is not logged as a new rejection. Before, every poll downloaded and parsed the bad file again until a good one was published.
  • Only the latest rejected file is remembered. If an earlier rejected file is served again after another one, it is logged as rejected again. Loading a file clears the remembered one; a 304 does not. A file without an ETag rejected twice in a row for the same reason is logged once.

Status and events are unchanged: STALE on the first failed poll after flags load, never over an ERROR.

New

  • Signed gems. Release gems are attested with Sigstore and pushed with the attestation. 0.1.0 was published without one.
  • macOS and forked processes. The README explains that on macOS a forked child can crash while looking up a host name, and how to run Puma and Solid Queue in development so the provider's process isn't forked. See macOS.

Passes the Satee provider conformance suite v0.4.0. Requires Ruby 3.4 or later and openfeature-sdk 0.8.1.

v0.1.0

Choose a tag to compare

@satee-owner satee-owner released this 30 Nov 15:45

First release of the Satee provider for the OpenFeature Ruby SDK.

bundle add satee-openfeature-provider
  • Reads Satee flags from memory; evaluation never waits on the network.
  • Polls for changes every 5 seconds with the flag file's ETag and emits PROVIDER_CONFIGURATION_CHANGED with the
    changed flag keys.
  • Startup waits at most 5 seconds, then serves your defaults while it keeps trying.
  • Keeps the last loaded flags when Satee is unreachable and reports STALE; reports ERROR for a refused key and
    slows polling to once a minute.
  • Honors Retry-After on 429 and 503.
  • Checks the SDK key when the provider is created; a missing, browser or malformed key raises
    Satee::OpenFeature::Provider::ConfigurationError.
  • Never logs the key, the path ID or the flag file URL. Takes your own logger.
  • Restarts polling in forked processes, such as Puma cluster workers.
  • Passes the Satee provider conformance suite v0.3.0.

Requires Ruby 3.4 or later and openfeature-sdk 0.8.1. See the README
for setup and behavior.