Repository navigation
feat: introduce circuit breakers for oauth - #6411
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #6411 +/- ##
==========================================
+ Coverage 77.68% 77.77% +0.08%
==========================================
Files 528 529 +1
Lines 70196 70344 +148
==========================================
+ Hits 54534 54708 +174
+ Misses 12834 12817 -17
+ Partials 2828 2819 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
2 times, most recently
from
October 8, 2025 10:52
6bf0271 to
70521b3
Compare
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
3 times, most recently
from
October 8, 2025 14:09
21cbaa8 to
bd17c3d
Compare
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
from
October 9, 2025 06:21
bd17c3d to
03f3ba0
Compare
atzoum
marked this pull request as ready for review
October 9, 2025 10:14
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
from
October 9, 2025 10:15
03f3ba0 to
aad01bd
Compare
krishna2020
requested review from
vinayteki95
and removed request for
koladilip
October 12, 2025 16:45
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
2 times, most recently
from
October 13, 2025 15:36
945c7f6 to
68bff61
Compare
fracasula
reviewed
Oct 13, 2025
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
2 times, most recently
from
October 14, 2025 06:19
09acb94 to
54ea27f
Compare
fracasula
approved these changes
Oct 14, 2025
ktgowtham
reviewed
Oct 15, 2025
ktgowtham
approved these changes
Oct 15, 2025
vinayteki95
approved these changes
Oct 16, 2025
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
from
October 16, 2025 06:11
54ea27f to
d0eacb7
Compare
atzoum
force-pushed
the
feat.oauthCircuitBreakers
branch
from
October 16, 2025 06:22
d0eacb7 to
4e91a5a
Compare
This was referenced Oct 27, 2025
Merged
mihir20
pushed a commit
that referenced
this pull request
Oct 27, 2025
🤖 I have created a release *beep* *boop* --- ## [1.62.0-rc.1](v1.61.0...v1.62.0-rc.1) (2025-10-27) ### Features * introduce circuit breakers for oauth ([#6411](#6411)) ([b9ed172](b9ed172)) ### Bug Fixes * deltalake fetch table attributes ([#6455](#6455)) ([49907dc](49907dc)) * destination namespaces api to contain tablename filter ([#6388](#6388)) ([61cffa4](61cffa4)) * repo cardinatlity for warehouse queries ([#6451](#6451)) ([ac9adc4](ac9adc4)) ### Miscellaneous * always emit transformer_outgoing_request_latency metric ([#6454](#6454)) ([33b742c](33b742c)) * avoid scanning all schemas and use limit 1 ([#6396](#6396)) ([8bb69ee](8bb69ee)) * bump rudder-go-kit to 0.63.4 ([#6457](#6457)) ([d499351](d499351)) * cleanup Avoid using beigntx within repo package and instead use WithTx. ([#6389](#6389)) ([21b7129](21b7129)) * improve cron tracker ([#6397](#6397)) ([82407f4](82407f4)) * improve logging reporting event name trimming ([#6424](#6424)) ([ce4d56d](ce4d56d)) * improve pending uploads ([#6399](#6399)) ([717f6a6](717f6a6)) * improve populate table level schemas ([#6395](#6395)) ([a0aa222](a0aa222)) * improve table level schemas ([#6398](#6398)) ([a2d3786](a2d3786)) * remove monitor database ([#6393](#6393)) ([a02c218](a02c218)) * remove unused oauthV2Enabled logger ([#6465](#6465)) ([bf55861](bf55861)) * retaining both pickup query throttling configuration key options ([#6453](#6453)) ([a51f395](a51f395)) * **router:** pickup query throttling should be enabled by default ([#6447](#6447)) ([ff18dde](ff18dde)) * security improvements ([#6430](#6430)) ([ce4d56d](ce4d56d)) * simplify pickup throttling configuration ([#6460](#6460)) ([7fb035b](7fb035b)) * unused dependencies ([#6392](#6392)) ([8e585b7](8e585b7)) * use org-wide docker registry mirror configuration ([#6444](#6444)) ([f714b32](f714b32)) * using go-kit maxprocs ([#6433](#6433)) ([674ab55](674ab55)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
mihir20
pushed a commit
that referenced
this pull request
Oct 28, 2025
🤖 I have created a release *beep* *boop* --- ## [1.62.0](v1.61.0...v1.62.0) (2025-10-27) ### Features * introduce circuit breakers for oauth ([#6411](#6411)) ([b9ed172](b9ed172)) ### Bug Fixes * deltalake fetch table attributes ([#6455](#6455)) ([49907dc](49907dc)) * destination namespaces api to contain tablename filter ([#6388](#6388)) ([61cffa4](61cffa4)) * repo cardinatlity for warehouse queries ([#6451](#6451)) ([ac9adc4](ac9adc4)) ### Miscellaneous * always emit transformer_outgoing_request_latency metric ([#6454](#6454)) ([33b742c](33b742c)) * avoid scanning all schemas and use limit 1 ([#6396](#6396)) ([8bb69ee](8bb69ee)) * bump rudder-go-kit to 0.63.4 ([#6457](#6457)) ([d499351](d499351)) * cleanup Avoid using beigntx within repo package and instead use WithTx. ([#6389](#6389)) ([21b7129](21b7129)) * improve cron tracker ([#6397](#6397)) ([82407f4](82407f4)) * improve logging reporting event name trimming ([#6424](#6424)) ([ce4d56d](ce4d56d)) * improve pending uploads ([#6399](#6399)) ([717f6a6](717f6a6)) * improve populate table level schemas ([#6395](#6395)) ([a0aa222](a0aa222)) * improve table level schemas ([#6398](#6398)) ([a2d3786](a2d3786)) * remove monitor database ([#6393](#6393)) ([a02c218](a02c218)) * remove unused oauthV2Enabled logger ([#6465](#6465)) ([bf55861](bf55861)) * retaining both pickup query throttling configuration key options ([#6453](#6453)) ([a51f395](a51f395)) * **router:** pickup query throttling should be enabled by default ([#6447](#6447)) ([ff18dde](ff18dde)) * security improvements ([#6430](#6430)) ([ce4d56d](ce4d56d)) * simplify pickup throttling configuration ([#6460](#6460)) ([7fb035b](7fb035b)) * unused dependencies ([#6392](#6392)) ([8e585b7](8e585b7)) * use org-wide docker registry mirror configuration ([#6444](#6444)) ([f714b32](f714b32)) * using go-kit maxprocs ([#6433](#6433)) ([674ab55](674ab55)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adding two circuit breakers in the oauth handler for each account ID to prevent excessive requests to the oauth service:
Configuration options
OauthBreaker.consecutiveErrorsThreshold- number of consecutive errors to trip the error breaker (default: 5)OauthBreaker.errorsTimeout: time duration that needs to elapse to switch an open error breaker to half-open state (default: 5m)OauthBreaker.successesThreshold- number of successful (new) token generations within the interval to trip the success breaker (default: 5)OauthBreaker.successesInterval- time duration that needs to elapse to reset the success counter (default: 1m)OauthBreaker.successesTimeout- time duration that needs to elapse to switch an open success breaker to half-open state (default: 1m)The above configuration options can be overriden at a destination level,
e.g.
Router.REDDIT.OauthBreaker.consecutiveErrorsThresholdIntegration tests
Introducing integration tests for oauth handler verifying handler's behaviour against the actual auth services (config-backend & rudder-auth)
Linear Ticket
resolves PIPE-2459
Security