Skip to content

#10464 Enabling Agentless for the OKTA integration - #12794

Merged
qcorporation merged 3 commits into
mainfrom
10464-okta-agentless
Feb 21, 2025
Merged

#10464 Enabling Agentless for the OKTA integration#12794
qcorporation merged 3 commits into
mainfrom
10464-okta-agentless

Conversation

@qcorporation

@qcorporation qcorporation commented Feb 14, 2025

Copy link
Copy Markdown
Contributor

Parent Ticket (Enhancement)

Okta ingest using the new Agentless onboarding

Proposed commit message

  • Highlighted the new Agentless Enabled integration mimcking the "Response enabled integration" notification (thanks @jamiehynds). Also a copy paste of the CSPM text with the addition of reference link to the Agentless description/definition
Screenshot 2025-02-14 at 16 05 02

Screenshot 2025-02-14 at 4 09 24 PM
Screenshot 2025-02-14 at 4 09 53 PM

  • Upgraded the format_version to latest, 3.2.3
  • Updated Kibana version constraints to ^8.18 || ^9.0.0

Checklist

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

How to test this PR locally

  1. An Elastic stack was setup using devenv - link
  2. Create a new project within serverless based upon the link
  3. Make changes to the integration and installed the integration through elastic-package install --zip <okta.zip>
  4. Setup Okta through the dev account, create a new api key and input the settings within the integration.
  5. Make sure Okta integration had an initial refresh rate of 60s and incremental refresh of 60s
  6. Swap the agent image for one that has the persistent storage changes in filebeat. Change the image by editing the agentlessconfig within the k8s cluster. I used elastic-agent-service:9.1.0-SNAPSHOT

Failure injection and Validation

  • validated that when an Agent/Filebeat that had the persistence storage enhancement (9.1.0 image) connected to ES that a new cursor was added to agentless-state-httpjson-okta.system-*
  • validated that when Agent/Filebeat fetched more data (by creating more logs within Okta) that the cursor was incremented in this index
  • Force a pod restart kubectl delete pods <pod> -n <namespace> and validate a new pod was brought back up and it uses the same cursor as before. To validate the cursor continuation I had to download the agent diagnostic logs after the restart and validated that the agent/filebeat did not publish all the logs again and only logs from the cursor
  • Run two agent okta policies with separate api keys, and validated that they both work independently especially there was a forced pod restart
  • Validate that when the agent policy was deleted the agent in agentless pod also got torn down
  • Validated that health status was updated in both fleet/agent page and integration page (ticket was logged)

Note:

  • Did not test document duplication as Okta integration implements a json.uuid which maps to _id. Elasticsearch will overwrite the existing doc with the new one.
@qcorporation
qcorporation requested a review from a team February 14, 2025 20:54
@qcorporation qcorporation self-assigned this Feb 14, 2025
@qcorporation qcorporation added Integration:okta Okta Team:Service-Integrations Label for the Observability Service Integrations team Team:Security-Deployment and Devices DEPRECATED Deployment and Devices Security team [elastic/sec-deployment-and-devices] labels Feb 14, 2025
@qcorporation
qcorporation marked this pull request as ready for review February 14, 2025 21:12
@qcorporation
qcorporation requested a review from a team as a code owner February 14, 2025 21:12
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

Comment thread packages/okta/_dev/build/docs/README.md Outdated
Comment thread packages/okta/_dev/build/docs/README.md Outdated
Comment thread packages/okta/changelog.yml Outdated
Comment thread packages/okta/manifest.yml Outdated
@qcorporation
qcorporation requested a review from efd6 February 18, 2025 14:33
- upgraded version to 3.5.0
- updated documentation
@qcorporation
qcorporation requested a review from a team February 20, 2025 18:05
@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @qcorporation

@qcorporation
qcorporation merged commit b929d31 into main Feb 21, 2025
@qcorporation
qcorporation deleted the 10464-okta-agentless branch February 21, 2025 14:43
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Package okta - 3.5.0 containing this change is available at https://epr.elastic.co/package/okta/3.5.0/

flexitrev pushed a commit that referenced this pull request Mar 20, 2025
* enabling Agentless for the okta integration
- upgraded version to 3.5.0
- updated documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:okta Okta Team:Security-Deployment and Devices DEPRECATED Deployment and Devices Security team [elastic/sec-deployment-and-devices] Team:Service-Integrations Label for the Observability Service Integrations team

5 participants