Skip to content

Adopt SDK Configuration Pattern using Environment Variables #53

Description

@askpt

Overview

This issue proposes that the OpenFeature Protocol project consider adopting a configuration pattern for its SDKs similar to the approach outlined by OpenTelemetry (OTEL): https://opentelemetry.io/docs/concepts/sdk-configuration/

Context

Allowing the consumers to specify the OFREP configuration as an environment variables, would make the configuration more flexible. By using a well defined variable names defined by the SIG, we can enforce the consumers to know which variables can be used.

Discussion Points

  • How could this configuration principles be applied to OpenFeature Protocol?
  • Are there any compatibility or migration concerns?
  • What would a roadmap or next steps look like for exploration and possible adoption?
  • Which environment variables should be defined?

Proposed variables

  • OFREP_ENDPOINT -> http://localhost:2321
  • OFREP_HEADERS -> "Authentication=Bearer 123,Content-Type=json"
  • OFREP_TIMEOUT -> 5000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions