open-feature / open-feature/java-sdk-contrib
[OFREP] Implement support for OFREP Server SDK configuration using environment variables
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 49
- Fork
- 81
- Merge trung bình
- 20 giờ 3 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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_ENDPOINTenvironment variable - Add support for reading
OFREP_HEADERSenvironment variable with proper parsing - Add support for reading
OFREP_TIMEOUT_MSenvironment 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xác định điểm vào cấu hình của OFREP SDK và cấu hình bằng code hiện có, sau đó kiểm tra cách các request và thiết lập timeout được biểu diễn. Triển khai việc xử lý OFREP_ENDPOINT, OFREP_HEADERS và OFREP_TIMEOUT_MS, trong đó các giá trị được cấu hình bằng code được ưu tiên, đồng thời thêm validation, test và các ví dụ trong tài liệu như được mô tả trong issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100