Doppler loader#108
Conversation
| http = Net::HTTP.new(uri.host, uri.port) | ||
| http.use_ssl = true | ||
|
|
||
| # dp.st.dev.9IAsQwBQnFDQsmnyukYTtaJBqjCXJhq8zSFdSvkBVHW |
There was a problem hiding this comment.
I think its better not to mention sensitive data in the codebase.
palkan
left a comment
There was a problem hiding this comment.
Thanks for the PR.
Please, see the comments.
|
|
||
| - Added `manifest.yml` for RBS. ([@palkan][]) | ||
|
|
||
| ## 2.3.0 (2023-01-11) |
There was a problem hiding this comment.
Please, do not change the version in the change log; we can not know when this PR will be released
| DOPPLER_REQUEST_ERROR = Class.new(StandardError) | ||
| DOPPLER_JSON_FORMAT_URL = "https://api.doppler.com/v3/configs/config/secrets/download" | ||
|
|
||
| def call(**_options) |
There was a problem hiding this comment.
We can probably use forwarding here to not care about the method signature
| def call(**_options) | |
| def call(...) |
There was a problem hiding this comment.
thanks!
but now here I set
(env_prefix:, **_options)
because, I use env_prefix now for Anyway::Env
| allow(http_success).to receive(:read_body) { doppler_content.to_json } | ||
| expect_any_instance_of(Net::HTTP).to receive(:request) { http_success } |
There was a problem hiding this comment.
Let's use webmock instead; we don't need to care about the underlying HTTP implementation here; it's likely to change over time (e.g., if we decide to add retry mechanism)
There was a problem hiding this comment.
Done
I included it in spec_helper and disabled all net connections
WebMock.disable_net_connect!(allow_localhost: true)
``
…ally doppler loader if DOPPLER_TOKEN exists
What is the purpose of this pull request?
Hello @palkan
Please, review my pr
What changes did you make? (overview)
Add Doppler loader
Checklist
Closes #107