Skip to content

Conversation

@erka
Copy link
Member

@erka erka commented Oct 31, 2025

This PR

Add experimental WithFromEnv() option to configure the OFREP provider using
environment variables.

  • Add WithFromEnv() configuration option supporting:
    • OFREP_ENDPOINT: base URI for the OFREP service
    • OFREP_TIMEOUT: timeout duration (e.g., "30s", "500ms")
    • OFREP_API_KEY: API key for X-API-Key authentication
    • OFREP_BEARER_TOKEN: token for Bearer authentication
    • OFREP_HEADERS: comma-separated custom headers

Related Issues

erka added 2 commits November 6, 2025 11:36
Add WithHeader(), WithBaseURI(), and WithTimeout() configuration options.
Improve error handling to include underlying error causes.
Set Content-Type header to application/json in HTTP requests.
Fix typo in test error message and update dependencies.

Signed-off-by: Roman Dmytrenko <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
Add experimental WithFromEnv() option to configure the OFREP provider using
environment variables.

New features:
- Add WithFromEnv() configuration option supporting:
  - OFREP_ENDPOINT: base URI for the OFREP service
  - OFREP_TIMEOUT: timeout duration (e.g., "30s", "500ms")
  - OFREP_API_KEY: API key for X-API-Key authentication
  - OFREP_BEARER_TOKEN: token for Bearer authentication
  - OFREP_HEADERS: comma-separated custom headers

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka erka changed the title feat(ofrep): add environment variable configuration and improve provider feat(ofrep): add environment variable configuration Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants