Skip to content
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

[integrations][okta] - Added support for Oauth2 for okta.system data stream #7542

Merged
merged 9 commits into from
Sep 13, 2023

Conversation

ShourieG
Copy link
Contributor

@ShourieG ShourieG commented Aug 25, 2023

Type of change

  • Enhancement

What does this PR do?

This PR adds OAuth2 support for Okta System Logs data stream in the Okta integration.

Note

This PR can only be merged after the public release of 8.10 because of internal dependencies and features only available in 8.10. System tests will fail until 8.10 changes are available in the CI pipeline.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

Screenshot 2023-09-11 at 12 50 49 PM

@ShourieG ShourieG requested a review from a team as a code owner August 25, 2023 12:36
@ShourieG ShourieG changed the title Feature/okta auth 2 [integrations][okta] - Add support for Oauth2 for okta.system datastream Aug 25, 2023
@ShourieG ShourieG changed the title [integrations][okta] - Add support for Oauth2 for okta.system datastream [integrations][okta] - Add support for Oauth2 for okta.system data stream Aug 25, 2023
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@ShourieG ShourieG added the integration Label used for meta issues tracking each integration label Aug 25, 2023
@ShourieG ShourieG changed the title [integrations][okta] - Add support for Oauth2 for okta.system data stream [integrations][okta] - Added support for Oauth2 for okta.system data stream Aug 25, 2023
@elasticmachine
Copy link

elasticmachine commented Aug 25, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-09-12T07:14:42.977+0000

  • Duration: 17 min 56 sec

Test stats 🧪

Test Results
Failed 0
Passed 8
Skipped 0
Total 8

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Aug 25, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚
Classes 100.0% (1/1) 💚
Methods 100.0% (19/19) 💚 66.667
Lines 92.026% (577/627) 👎 -7.974
Conditionals 100.0% (0/0) 💚

Copy link
Contributor

@bhapas bhapas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Is there a way to document the common pitfalls regarding the config of OAuth2 on Okta server.
Lately, there were few issues with other products that customers faced regarding misconfiguration of the OAuth servers and leading to integration issues.

packages/okta/_dev/build/docs/README.md Outdated Show resolved Hide resolved
@bhapas bhapas added Integration:okta Okta enhancement New feature or request labels Sep 1, 2023
@ShourieG
Copy link
Contributor Author

ShourieG commented Sep 6, 2023

LGTM.

Is there a way to document the common pitfalls regarding the config of OAuth2 on Okta server. Lately, there were few issues with other products that customers faced regarding misconfiguration of the OAuth servers and leading to integration issues.

@bhapas The main issue I see is different oauth2 implementations require specific steps from users to get things working, specially in the case of machine to machine communication. The implementation of oauth2 followed by okta here deviates from standard oauth2 conventions making a single document covering pitfalls of oauth2 as a whole somewhat difficult. It needs to be a case by case basis in my opinion.

@bhapas
Copy link
Contributor

bhapas commented Sep 6, 2023

LGTM.
Is there a way to document the common pitfalls regarding the config of OAuth2 on Okta server. Lately, there were few issues with other products that customers faced regarding misconfiguration of the OAuth servers and leading to integration issues.

@bhapas The main issue I see is different oauth2 implementations require specific steps from users to get things working, specially in the case of machine to machine communication. The implementation of oauth2 followed by okta here deviates from standard oauth2 conventions making a single document covering pitfalls of oauth2 as a whole somewhat difficult. It needs to be a case by case basis in my opinion.

@ShourieG Yeah. I meant the OAuth2 configuration for Okta servers , not in general.

@ShourieG
Copy link
Contributor Author

LGTM.
Is there a way to document the common pitfalls regarding the config of OAuth2 on Okta server. Lately, there were few issues with other products that customers faced regarding misconfiguration of the OAuth servers and leading to integration issues.

@bhapas The main issue I see is different oauth2 implementations require specific steps from users to get things working, specially in the case of machine to machine communication. The implementation of oauth2 followed by okta here deviates from standard oauth2 conventions making a single document covering pitfalls of oauth2 as a whole somewhat difficult. It needs to be a case by case basis in my opinion.

@ShourieG Yeah. I meant the OAuth2 configuration for Okta servers , not in general.

@bhapas Yea we will take up this discussion point in the team meet and figure out a better way for these documentations.

Copy link
Contributor

@bhapas bhapas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Can you add some screenshots for the changed UI

@ShourieG ShourieG merged commit b2306b1 into elastic:main Sep 13, 2023
1 check passed
@ShourieG ShourieG deleted the feature/okta_auth_2 branch September 13, 2023 06:41
@elasticmachine
Copy link

Package okta - 2.0.0 containing this change is available at https://epr.elastic.co/search?package=okta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.11 candidate enhancement New feature or request Integration:okta Okta integration Label used for meta issues tracking each integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Meta][Okta] Support OAuth 2.0 for Integration
3 participants