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
2 changes: 1 addition & 1 deletion packages/okta/_dev/deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2.3'
services:
okta:
image: docker.elastic.co/observability/stream:v0.5.0
image: docker.elastic.co/observability/stream:v0.7.0
ports:
- 8080
volumes:
Expand Down
236 changes: 235 additions & 1 deletion packages/okta/_dev/deploy/docker/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,117 @@ rules:
Link:
- '<http://{{ hostname }}:{{ env "PORT" }}/api/v1/logs?after=2>; rel="next"'
- '<https://{{ hostname }}:{{ env "PORT" }}/api/v1/logs?after=1>; rel="self"'
body: "[\n { \n \"actor\": {\n \"alternateId\": \"xxxxxx@elastic.co\",\n \"detailEntry\": null,\n \"displayName\": \"xxxxxx\",\n \"id\": \"00u1abvz4pYqdM8ms4x6\",\n \"type\": \"User\"\n },\n \"authenticationContext\": {\n \"authenticationProvider\": null,\n \"authenticationStep\": 0,\n \"credentialProvider\": null,\n \"credentialType\": null,\n \"externalSessionId\": \"102bZDNFfWaQSyEZQuDgWt-uQ\",\n \"interface\": null,\n \"issuer\": null\n },\n \"client\": {\n \"device\": \"Computer\",\n \"geographicalContext\": {\n \"city\": \"Dublin\",\n \"country\": \"United States\",\n \"geolocation\": {\n \"lat\": 37.7201,\n \"lon\": -121.919\n },\n \"postalCode\": \"94568\",\n \"state\": \"California\"\n },\n \"id\": null,\n \"ipAddress\": \"108.255.197.247\",\n \"userAgent\": {\n \"browser\": \"FIREFOX\",\n \"os\": \"Mac OS X\",\n \"rawUserAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0\"\n },\n \"zone\": \"null\"\n },\n \"debugContext\": {\n \"debugData\": {\n \"deviceFingerprint\": \"541daf91d15bef64a7e08c946fd9a9d0\",\n \"requestId\": \"XkcAsWb8WjwDP76xh@1v8wAABp0\",\n \"requestUri\": \"/api/v1/authn\",\n \"threatSuspected\": \"false\",\n \"url\": \"/api/v1/authn?\"\n }\n },\n \"displayMessage\": \"Evaluation of sign-on policy\",\n \"eventType\": \"policy.evaluate_sign_on\",\n \"legacyEventType\": null,\n \"outcome\": {\n \"reason\": \"Sign-on policy evaluation resulted in ALLOW\",\n \"result\": \"ALLOW\"\n },\n \"published\": \"2020-02-14T20:18:57.762Z\",\n \"request\": {\n \"ipChain\": [\n {\n \"geographicalContext\": {\n \"city\": \"Dublin\",\n \"country\": \"United States\",\n \"geolocation\": {\n \"lat\": 37.7201,\n \"lon\": -121.919\n },\n \"postalCode\": \"94568\",\n \"state\": \"California\"\n },\n \"ip\": \"108.255.197.247\",\n \"source\": null,\n \"version\": \"V4\"\n }\n ]\n },\n \"securityContext\": {\n \"asNumber\": null,\n \"asOrg\": null,\n \"domain\": null,\n \"isProxy\": null,\n \"isp\": null\n },\n \"severity\": \"INFO\",\n \"target\": [\n {\n \"alternateId\": \"unknown\",\n \"detailEntry\": {\n \"policyType\": \"OktaSignOn\"\n },\n \"displayName\": \"Default Policy\",\n \"id\": \"00p1abvweGGDW10Ur4x6\",\n \"type\": \"PolicyEntity\"\n },\n {\n \"alternateId\": \"00p1abvweGGDW10Ur4x6\",\n \"detailEntry\": null,\n \"displayName\": \"Default Rule\",\n \"id\": \"0pr1abvwfqGFI4n064x6\",\n \"type\": \"PolicyRule\"\n }\n ],\n \"transaction\": {\n \"detail\": {},\n \"id\": \"XkcAsWb8WjwDP76xh@1v8wAABp0\",\n \"type\": \"WEB\"\n },\n \"uuid\": \"3af594f9-4f67-11ea-abd3-1f5d113f2546\",\n \"version\": \"0\"\n }\n]"
body: |-
[
{
"actor": {
"alternateId": "xxxxxx@elastic.co",
"detailEntry": null,
"displayName": "xxxxxx",
"id": "00u1abvz4pYqdM8ms4x6",
"type": "User"
},
"authenticationContext": {
"authenticationProvider": null,
"authenticationStep": 0,
"credentialProvider": null,
"credentialType": null,
"externalSessionId": "102bZDNFfWaQSyEZQuDgWt-uQ",
"interface": null,
"issuer": null
},
"client": {
"device": "Computer",
"geographicalContext": {
"city": "Dublin",
"country": "United States",
"geolocation": {
"lat": 37.7201,
"lon": -121.919
},
"postalCode": "94568",
"state": "California"
},
"id": null,
"ipAddress": "108.255.197.247",
"userAgent": {
"browser": "FIREFOX",
"os": "Mac OS X",
"rawUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"
},
"zone": "null"
},
"debugContext": {
"debugData": {
"deviceFingerprint": "541daf91d15bef64a7e08c946fd9a9d0",
"requestId": "XkcAsWb8WjwDP76xh@1v8wAABp0",
"requestUri": "/api/v1/authn",
"threatSuspected": "false",
"url": "/api/v1/authn?"
}
},
"displayMessage": "Evaluation of sign-on policy",
"eventType": "policy.evaluate_sign_on",
"legacyEventType": null,
"outcome": {
"reason": "Sign-on policy evaluation resulted in ALLOW",
"result": "ALLOW"
},
"published": "2020-02-14T20:18:57.762Z",
"request": {
"ipChain": [
{
"geographicalContext": {
"city": "Dublin",
"country": "United States",
"geolocation": {
"lat": 37.7201,
"lon": -121.919
},
"postalCode": "94568",
"state": "California"
},
"ip": "108.255.197.247",
"source": null,
"version": "V4"
}
]
},
"securityContext": {
"asNumber": null,
"asOrg": null,
"domain": null,
"isProxy": null,
"isp": null
},
"severity": "INFO",
"target": [
{
"alternateId": "unknown",
"detailEntry": {
"policyType": "OktaSignOn"
},
"displayName": "Default Policy",
"id": "00p1abvweGGDW10Ur4x6",
"type": "PolicyEntity"
},
{
"alternateId": "00p1abvweGGDW10Ur4x6",
"detailEntry": null,
"displayName": "Default Rule",
"id": "0pr1abvwfqGFI4n064x6",
"type": "PolicyRule"
}
],
"transaction": {
"detail": {},
"id": "XkcAsWb8WjwDP76xh@1v8wAABp0",
"type": "WEB"
},
"uuid": "3af594f9-4f67-11ea-abd3-1f5d113f2546",
"version": "0"
}
]
- path: /api/v1/logs
methods: ["GET"]
request_headers:
Expand All @@ -223,3 +333,127 @@ rules:
- '<https://{{ hostname }}:{{ env "PORT" }}/api/v1/logs?after=2>; rel="self"'
body: |-
[]
# "null" in ipAddress
- path: /api/v1/logs
methods: ["GET"]
request_headers:
authorization: "SSWS testing"
query_params:
after: "1"
responses:
- status_code: 200
headers:
Link:
- '<http://{{ hostname }}:{{ env "PORT" }}/api/v1/logs?after=2>; rel="next"'
- '<https://{{ hostname }}:{{ env "PORT" }}/api/v1/logs?after=1>; rel="self"'
body: |-
[
{
"actor": {
"alternateId": "xxxxxx@elastic.co",
"detailEntry": null,
"displayName": "xxxxxx",
"id": "00u1abvz4pYqdM8ms4x6",
"type": "User"
},
"authenticationContext": {
"authenticationProvider": null,
"authenticationStep": 0,
"credentialProvider": null,
"credentialType": null,
"externalSessionId": "102bZDNFfWaQSyEZQuDgWt-uQ",
"interface": null,
"issuer": null
},
"client": {
"device": "Computer",
"geographicalContext": {
"city": "Dublin",
"country": "United States",
"geolocation": {
"lat": 37.7201,
"lon": -121.919
},
"postalCode": "94568",
"state": "California"
},
"id": null,
"ipAddress": "null",
"userAgent": {
"browser": "FIREFOX",
"os": "Mac OS X",
"rawUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"
},
"zone": "null"
},
"debugContext": {
"debugData": {
"deviceFingerprint": "541daf91d15bef64a7e08c946fd9a9d0",
"requestId": "XkcAsWb8WjwDP76xh@1v8wAABp0",
"requestUri": "/api/v1/authn",
"threatSuspected": "false",
"url": "/api/v1/authn?"
}
},
"displayMessage": "Evaluation of sign-on policy",
"eventType": "policy.evaluate_sign_on",
"legacyEventType": null,
"outcome": {
"reason": "Sign-on policy evaluation resulted in ALLOW",
"result": "ALLOW"
},
"published": "2020-02-14T20:18:57.762Z",
"request": {
"ipChain": [
{
"geographicalContext": {
"city": "Dublin",
"country": "United States",
"geolocation": {
"lat": 37.7201,
"lon": -121.919
},
"postalCode": "94568",
"state": "California"
},
"ip": "108.255.197.247",
"source": null,
"version": "V4"
}
]
},
"securityContext": {
"asNumber": null,
"asOrg": null,
"domain": null,
"isProxy": null,
"isp": null
},
"severity": "INFO",
"target": [
{
"alternateId": "unknown",
"detailEntry": {
"policyType": "OktaSignOn"
},
"displayName": "Default Policy",
"id": "00p1abvweGGDW10Ur4x6",
"type": "PolicyEntity"
},
{
"alternateId": "00p1abvweGGDW10Ur4x6",
"detailEntry": null,
"displayName": "Default Rule",
"id": "0pr1abvwfqGFI4n064x6",
"type": "PolicyRule"
}
],
"transaction": {
"detail": {},
"id": "XkcAsWb8WjwDP76xh@1v8wAABp0",
"type": "WEB"
},
"uuid": "3af594f9-4f67-11ea-abd3-1f5d113f2546",
"version": "0"
}
]
5 changes: 5 additions & 0 deletions packages/okta/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.5.2"
changes:
- description: Handle invalid values in client.ipAddress
type: bugfix
link: https://github.com/elastic/integrations/pull/3010
- version: "1.5.1"
changes:
- description: Add documentation for multi-fields
Expand Down
Loading