Skip to content

Conversation

@candiduslynx
Copy link
Contributor

Closes #10570

@candiduslynx candiduslynx requested review from a team and yevgenypats and removed request for a team May 22, 2023 11:44
@candiduslynx candiduslynx added the automerge Automatically merge once required checks pass label May 22, 2023
@candiduslynx candiduslynx requested review from disq and hermanschaaf May 22, 2023 12:04
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"
Copy link
Member

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
Copy link
Member

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)

@disq disq self-requested a review May 22, 2023 12:34
@kodiakhq kodiakhq bot merged commit 293d9d0 into main May 22, 2023
@kodiakhq kodiakhq bot deleted the feat/okta/rl branch May 22, 2023 12:38
@disq
Copy link
Member

disq commented May 22, 2023

Foiled by automerge, sorry

kodiakhq bot pushed a commit that referenced this pull request May 22, 2023
🤖 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Okta source plugin rate limiting

5 participants