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

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

未关闭
#1,663 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
49
派生
81
平均合并
20 小时 3 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先定位 OFREP SDK 的配置入口及其现有的编程式配置,然后检查请求和超时设置的表示方式。实现对 OFREP_ENDPOINT、OFREP_HEADERS 和 OFREP_TIMEOUT_MS 的处理,并以编程式值为优先级,同时按照 issue 中的描述添加验证、测试和文档示例。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。