Skip to content

Commit 384b5c2

Browse files
authored
entityanalytics_okta: record whether a user's credentials include a recovery question (#10702)
1 parent e208c2b commit 384b5c2

File tree

7 files changed

+27
-2
lines changed

7 files changed

+27
-2
lines changed

packages/entityanalytics_okta/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.3.0"
3+
changes:
4+
- description: Record whether a user's credentials include a recovery question.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/10702
27
- version: "1.2.0"
38
changes:
49
- description: Removed import_mappings. Update the kibana constraint to ^8.13.0. Modified the field definitions to remove ECS fields made redundant by the ecs@mappings component template.

packages/entityanalytics_okta/data_stream/user/_dev/test/pipeline/test-user.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"provider": {
4141
"type": "OKTA",
4242
"name": "OKTA"
43-
}
43+
},
44+
"recovery_question": {}
4445
}
4546
},
4647
"user": {

packages/entityanalytics_okta/data_stream/user/_dev/test/pipeline/test-user.json-expected.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"provider": {
2727
"name": "OKTA",
2828
"type": "OKTA"
29+
},
30+
"recovery_question": {
31+
"is_set": true
2932
}
3033
},
3134
"id": "00ub0oNGTSWTBKOLGLNR",

packages/entityanalytics_okta/data_stream/user/elasticsearch/ingest_pipeline/default.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,19 @@ processors:
548548
tag: append_user_profile_manager_name_into_related_user
549549
allow_duplicates: false
550550
if: ctx.entityanalytics_okta?.user?.profile?.manager?.name != null
551+
- set:
552+
field: okta.credentials.recovery_question.is_set
553+
value: true
554+
if: ctx.okta?.credentials?.recovery_question != null
555+
- set:
556+
field: okta.credentials.recovery_question.is_set
557+
value: false
558+
if: ctx.okta?.credentials?.recovery_question == null
559+
- rename:
560+
field: okta.credentials.recovery_question
561+
target_field: entityanalytics_okta.user.credentials.recovery_question
562+
tag: rename_user_credentials_recovery_question
563+
ignore_missing: true
551564
- rename:
552565
field: okta.credentials.provider.type
553566
target_field: entityanalytics_okta.user.credentials.provider.type

packages/entityanalytics_okta/data_stream/user/fields/fields.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
type: keyword
2727
- name: type
2828
type: keyword
29+
- name: recovery_question.is_set
30+
type: boolean
2931
- name: id
3032
type: keyword
3133
description: unique key for user.

packages/entityanalytics_okta/docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ An example event for `user` looks as following:
280280
| entityanalytics_okta.user.created | timestamp when user was created. | date |
281281
| entityanalytics_okta.user.credentials.provider.name | | keyword |
282282
| entityanalytics_okta.user.credentials.provider.type | | keyword |
283+
| entityanalytics_okta.user.credentials.recovery_question.is_set | | boolean |
283284
| entityanalytics_okta.user.id | unique key for user. | keyword |
284285
| entityanalytics_okta.user.last_login | timestamp of last login. | date |
285286
| entityanalytics_okta.user.last_updated | timestamp when user was last updated. | date |

packages/entityanalytics_okta/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.0.2"
22
name: entityanalytics_okta
33
title: Okta Entity Analytics
4-
version: "1.2.0"
4+
version: "1.3.0"
55
description: "Collect User Identities from Okta with Elastic Agent."
66
type: integration
77
categories:

0 commit comments

Comments
 (0)