Skip to content

okta: fix missing boolean negation - #14990

Merged
efd6 merged 2 commits into
elastic:mainfrom
efd6:14988-okta
Aug 20, 2025
Merged

okta: fix missing boolean negation#14990
efd6 merged 2 commits into
elastic:mainfrom
efd6:14988-okta

Conversation

@efd6

@efd6 efd6 commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Proposed commit message

okta: fix missing boolean negation

The previous code was only doing the conversion when it was a semantic
no-op. Fix that.

Test sample obtained from internal sources with sanitisation.

Note

This never worked, so we are not bound by compatibility with the previous format. I think we should consider changing the v.toString() calls to Json.dump(v) calls, since the latter is more safely parseable. We cannot change to flattened, since it is possible (however unlikely) that there are indexes in the wild that have only ever been given strings in these fields.

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.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 self-assigned this Aug 20, 2025
@efd6 efd6 added Integration:okta Okta bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Aug 20, 2025
The previous code was only doing the conversion when it was a semantic
no-op. Fix that.

@andrewkroh andrewkroh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The logic LGTM.

Can we switch the IPs over to ones from the documentation range.

And +1 to json.dump, at least with this I can reason about the format on the basis that I know JSON. One potential issue, assuming I recall correctly, is that json.dump() does not apply consistent ordering. I think it depends on whether the underlying Java Map type is ordered (e.g. LinkedHashMap).

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@efd6

efd6 commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

Can we switch the IPs over to ones from the documentation range.

Is this new? I used the IPs that are provided by elastic-package checks, https://github.com/elastic/elastic-package/blob/main/internal/fields/_static/allowed_geo_ips.txt.

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @efd6

@efd6
efd6 marked this pull request as ready for review August 20, 2025 04:18
@efd6
efd6 requested a review from a team as a code owner August 20, 2025 04:18
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@andrewkroh

Copy link
Copy Markdown
Contributor

The ranges you linked to are still valid, and the documentation ranges are also in the database now (this is newish, I think). If we have a choice, I would always use the reserved ranges for documentation to eliminate any chance of the owner of the non-documentation ranges asking Elastic to remove their personal data. I may be overcorrecting after this year's earlier repo history rewrite.

@efd6
efd6 merged commit a3f21d4 into elastic:main Aug 20, 2025
9 checks passed
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

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

tehbooom pushed a commit to tehbooom/integrations that referenced this pull request Nov 19, 2025
The previous code was only doing the conversion when it was a semantic
no-op. Fix that.

Test sample obtained from internal sources with sanitisation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:okta Okta Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

3 participants