-
Notifications
You must be signed in to change notification settings - Fork 547
feat(okta): Add rate limiter config #10880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
81117df to
71318e0
Compare
71318e0 to
704759f
Compare
| return fmt.Errorf("missing API token (should be set in the configuration or as %q environment variable)", OktaAPIToken) | ||
| } | ||
|
|
||
| const exampleDomain = "https://<CHANGE_THIS_TO_YOUR_OKTA_DOMAIN>.okta.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we really need to handle this specific case, we can just check for empty. But if we do handle this case, the example on the website right now is YOUR_OKTA_DOMAIN, not CHANGE_THIS_TO_YOUR_OKTA_DOMAIN
| func (s *Spec) setDefaults() { | ||
| const ( | ||
| minRetries = int32(3) | ||
| minBackOff = 5 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the default is 30s with 2 retries (based on a quick google finding this: https://github.com/okta/okta-sdk-golang/blob/master/okta/okta.go#L187); if users were already running into errors before we should probably keep the default backOff to 30s or so as well (the minimum can still be less)
|
Foiled by automerge, sorry |
🤖 I have created a release *beep* *boop* --- ## [2.4.0](plugins-source-okta-v2.3.1...plugins-source-okta-v2.4.0) (2023-05-22) ### This Release has the Following Changes to Tables - Table `okta_application_users`: column order changed for `id` - Table `okta_applications`: column order changed for `id` - Table `okta_groups`: column order changed for `id` - Table `okta_users`: column order changed for `id` ### Features * **deps:** Upgrade to Apache Arrow v13 (latest `cqmain`) ([#10605](#10605)) ([a55da3d](a55da3d)) * **okta:** Add rate limiter config ([#10880](#10880)) ([293d9d0](293d9d0)), closes [#10570](#10570) * **okta:** Enable SDK Debug Logs ([#10889](#10889)) ([4004bc9](4004bc9)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.0.8 ([#10798](#10798)) ([27ff430](27ff430)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Closes #10570