open-feature / open-feature/java-sdk-contrib

[OFREP] Implement support for OFREP Server SDK configuration using environment variables

オープン
#1,663 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Java
スター
49
フォーク
81
平均マージ
20時間 3分
マージ済み PR(30日)
6

説明

Overview

Implement support for OFREP SDK configuration using environment variables in the SDK.

Goal

Enable users of the OFREP to configure the client using standardized environment variables, improving flexibility and consistency across OpenFeature Protocol implementations.

Scope

Environment Variables to Support

The following environment variables should be implemented:

  • OFREP_ENDPOINT - The OFREP server endpoint (e.g., http://localhost:2321)
  • OFREP_HEADERS - Custom headers in comma-separated format (e.g., "Authentication=Bearer 123,Content-Type=json")
  • OFREP_TIMEOUT_MS - Request timeout in milliseconds (e.g., 5000)
Implementation Tasks
  • Add support for reading OFREP_ENDPOINT environment variable
  • Add support for reading OFREP_HEADERS environment variable with proper parsing
  • Add support for reading OFREP_TIMEOUT_MS environment variable
  • Ensure programmatic configuration takes precedence over environment variables
  • Add validation and error handling for invalid environment variable values
  • Update SDK documentation with environment variable usage examples
  • Add tests for environment variable configuration

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず OFREP SDK の設定エントリーポイントと既存のプログラムによる設定を特定し、次にリクエストとタイムアウト設定がどのように表現されているかを確認します。プログラムによる値を優先して OFREP_ENDPOINT、OFREP_HEADERS、OFREP_TIMEOUT_MS の処理を実装し、Issue に記載されているとおり、バリデーション、テスト、ドキュメントの例を追加します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。