Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,57 @@ rules:
}
]
`}}
- path: /api/v1/users/00ub0oNGTSWTBKOLGLNR/roles
methods: ["GET"]
responses:
- status_code: 200
body: |
{{ minify_json `
[
{
"id": "IFIFAX2BIRGUSTQ",
"label": "Application administrator",
"type": "APP_ADMIN",
"status": "ACTIVE",
"created": "2019-02-06T16:17:40.000Z",
"lastUpdated": "2019-02-06T16:17:40.000Z",
"assignmentType": "USER",
"_links": {
"assignee": {
"href": "https://{yourOktaDomain}/api/v1/users/00ub0oNGTSWTBKOLGLNR"
}
}
},
{
"id": "JBCUYUC7IRCVGS27IFCE2SKO",
"label": "Help Desk administrator",
"type": "HELP_DESK_ADMIN",
"status": "ACTIVE",
"created": "2019-02-06T16:17:40.000Z",
"lastUpdated": "2019-02-06T16:17:40.000Z",
"assignmentType": "USER",
"_links": {
"assignee": {
"href": "https://{yourOktaDomain}/api/v1/users/00ub0oNGTSWTBKOLGLNR"
}
}
},
{
"id": "ra125eqBFpETrMwu80g4",
"label": "Organization administrator",
"type": "ORG_ADMIN",
"status": "ACTIVE",
"created": "2019-02-06T16:17:40.000Z",
"lastUpdated": "2019-02-06T16:17:40.000Z",
"assignmentType": "USER",
"_links": {
"assignee": {
"href": "https://{yourOktaDomain}/api/v1/users/00ub0oNGTSWTBKOLGLNR"
}
}
}
]
`}}
- path: /api/v1/devices
methods: ["GET"]
responses:
Expand Down
5 changes: 5 additions & 0 deletions packages/entityanalytics_okta/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.5.0"
changes:
- description: Add user roles collection feature.
type: enhancement
link: https://github.com/elastic/integrations/pull/13750
- version: "2.4.0"
changes:
- description: Remove redundant installation instructions.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
input: entity-analytics
service: entityanalytics_okta
data_stream:
vars:
okta_domain: trial-xxxxxxx-admin.okta.com
okta_token: xxxx
dataset: all
enrich_user_roles: true
preserve_duplicate_custom_fields: true
preserve_original_event: true
enable_request_tracer: true
ssl: |
certificate_authorities:
- |
-----BEGIN CERTIFICATE-----
MIIFszCCA5ugAwIBAgIUdyvMXQ1pOUhZnhb77AODd1TsD/AwDQYJKoZIhvcNAQEL
BQAwaTELMAkGA1UEBhMCWFgxFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEcMBoGA1UE
CgwTRGVmYXVsdCBDb21wYW55IEx0ZDElMCMGA1UEAwwcdHJpYWwteHh4eHh4eC1h
ZG1pbi5va3RhLmNvbTAeFw0yNDA3MTcxMjE0MThaFw0zNDA3MTUxMjE0MThaMGkx
CzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0Rl
ZmF1bHQgQ29tcGFueSBMdGQxJTAjBgNVBAMMHHRyaWFsLXh4eHh4eHgtYWRtaW4u
b2t0YS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCiDiTT7COr
0m/pXxLKm6KmUlZJHhHep8Yo5wwoWuYnKCv07pwMQRY/Kk3ymk9cFGVu7sILZDP+
rq2TJAi7nhuDabdbRyccdaZY8N8MAEvPkyC6KfIWw0Ge9vruoTqp0IUHw/9ZP19O
sogSLfTova3jHWhEiH335dUVcvnhgId9isx5ieB2RY9DiqTmsujGi37MadAKqm4q
/UJpn3Gd8uvs7/w4tb9HoknN8sVwaZSyO1y/7lUZk86ynHfdH1i0EUvwF7i9di3T
JPvHFp1dEWxtkQBBYBIU+l1bjD8nZ6uDqE7FSzxsbI3hn1aCvxrM1BrXhxIDdz/v
/IIXsQKh+wNmDlDOBrtZAmjP/PpWHJOOcwNycMyvO7Y2dO0AkvqXTHqDmmGd7hGK
yOi1tITeA+P9w4rJSIfkwOMvaYjpcnJ+f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EM0WZ0zWz
9EkWoxHOkvz1Pnp41Llpc7OPdbOQrx4=
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ update_interval: {{update_interval}}
okta_domain: {{okta_domain}}
okta_token: {{okta_token}}
dataset: {{dataset}}
{{#if enrich_user_roles}}
{{! We include groups in the list when enriching roles, since the default input is to enrich with groups. }}
{{! There is currently no way to disable groups enrichment, so we respect that behaviour. }}
enrich_with:
- groups
- roles
{{/if}}
{{#if proxy_url}}
request.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ processors:
field: user.group.name
value: '{{{_ingest._value.profile.name}}}'
allow_duplicates: false
- rename:
field: roles
target_field: entityanalytics_okta.roles
tag: rename_user_roles
ignore_missing: true
- rename:
field: okta.transitioningToStatus
target_field: entityanalytics_okta.user.transitioning_to_status
Expand Down
15 changes: 15 additions & 0 deletions packages/entityanalytics_okta/data_stream/entity/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ streams:
The dataset to collect from the API. Selecting all or devices requires that the devices
API has been activated in Okta. Rate limit information for the user and devices endpoints
is available [here](https://developer.okta.com/docs/reference/rl-global-mgmt/).
The user data set will be enriched with the users' group memberships via the API's /api/v1/users
endpoints, contributing to rate limit budget cost. One request will be made for each user to
obtain this enrichment data.
options:
- value: all
text: all
Expand All @@ -41,6 +44,18 @@ streams:
- value: devices
text: devices
default: users
- name: enrich_user_roles
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to have this not be an advanced setting so that it is more visible?

type: bool
title: Enrich User Roles
multi: false
required: false
show_user: true
default: false
description: >-
Enrich user entities with their Okta role data. This allows monitoring of privileged
users' actions. Enabling this setting increases the number of requests to the
/api/v1/users endpoint, with one request per user, which counts toward your Okta rate
limits.
- name: sync_interval
type: text
title: Sync Interval
Expand Down
4 changes: 2 additions & 2 deletions packages/entityanalytics_okta/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
format_version: "3.0.2"
name: entityanalytics_okta
title: Okta Entity Analytics
version: "2.4.0"
version: "2.5.0"
description: "Collect Identities from Okta with Elastic Agent."
type: integration
categories:
- security
conditions:
kibana:
version: "^8.15.0 || ^9.0.0"
version: "^8.17.0 || ^9.0.0"
elastic:
subscription: "basic"
screenshots:
Expand Down