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

[okta] validate okta.client.ip as IP address #2993

Closed
andrewkroh opened this issue Apr 4, 2022 · 2 comments · Fixed by #3010
Closed

[okta] validate okta.client.ip as IP address #2993

andrewkroh opened this issue Apr 4, 2022 · 2 comments · Fixed by #3010
Assignees

Comments

@andrewkroh
Copy link
Member

andrewkroh commented Apr 4, 2022

The okta.client.ip value is not validated as an IP address before being copied into client.ip and source.ip. The convert processors type: ip can be used. An on_failure handler can be used to remove the field if it is not a valid IP. All three okta.client.ip, source.ip, and client.ip are mapped as IP data types so that data must be valid to prevent mapping exceptions.

- rename:
field: json.client.ipAddress
target_field: okta.client.ip
ignore_missing: true
ignore_failure: true

@elasticmachine
Copy link

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

@r00tu53r r00tu53r assigned r00tu53r and unassigned r00tu53r Apr 5, 2022
@adriansr
Copy link
Contributor

adriansr commented Apr 5, 2022

as a note, the invalid IP address that is received from the Okta API is "null" (as a string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants