Repository navigation
Releases
Releases · satee-dev/satee-openfeature-provider-ruby
v0.3.0
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, theoffvariant, with the reasonDEFAULTand no error code, so a caller's default can't turn the rollout on for every keyless request. Passtargeting_keyin the evaluation context; see Rails for an example. - Rollout changes are announced.
PROVIDER_CONFIGURATION_CHANGEDalso 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
bundle add satee-openfeature-provider --version "~> 0.2.0"Changed behavior
- One failed poll no longer reports
STALE. The provider turnsSTALEfromREADYonce its flags are older thanpoll_interval+ 60 seconds (orpoll_intervalif that is longer) + 15 seconds: 80 seconds at the defaultpoll_interval. The age counts from the end of the last poll that brought a file it accepted or a304, 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 reportedSTALE. A provider inERRORstill stays inERROR.
Repository renamed
- The provider now lives at satee-dev/satee-openfeature-provider-ruby and the conformance suite at satee-dev/satee-openfeature-provider-conformance. Old links redirect. In an existing clone, run
git submodule syncso the conformance submodule uses the new URL. The gem's homepage and changelog links name the new repository.
Passes the Satee provider conformance suite v0.5.0. Requires Ruby 3.4 or later and openfeature-sdk 0.8.1.
v0.1.1
bundle add satee-openfeature-provider --version "~> 0.1.1"Changed behavior
- A rejected flag file is not downloaded again. A
200whoseETagmatches 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
304does not. A file without anETagrejected 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
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_CHANGEDwith 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; reportsERRORfor a refused key and
slows polling to once a minute. - Honors
Retry-Afteron429and503. - 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.