okta: fix missing boolean negation - #14990
Conversation
The previous code was only doing the conversion when it was a semantic no-op. Fix that.
andrewkroh
left a comment
There was a problem hiding this comment.
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).
🚀 Benchmarks reportTo see the full report comment with |
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. |
💚 Build Succeeded
History
cc @efd6 |
|
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
|
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. |
|
Package okta - 3.10.2 containing this change is available at https://epr.elastic.co/package/okta/3.10.2/ |
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.




Proposed commit message
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 toJson.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
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots