Skip to content

Commit

Permalink
chore(blog): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod committed Apr 28, 2024
1 parent 0b2b78f commit 5930de4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions content/blog/the-way-of-the-cookie.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SigninLogs
| where UserPrincipalName has_any (accounts)
| extend deviceDetails = parse_json(DeviceDetail)
| project TimeGenerated, Account = UserPrincipalName, Country = Location, Application = AppDisplayName, IP = IPAddress,
CompliantDevice = deviceDetails['isCompliant'], ManagedDevice = deviceDetails['isManaged'], OS = deviceDetails['operatingSystem'], IsInteractive
CompliantDevice = deviceDetails['isCompliant'], ManagedDevice = deviceDetails['isManaged'], OS = deviceDetails['operatingSystem'], IsInteractive
;
```

Expand Down Expand Up @@ -131,7 +131,7 @@ A nice workaround, is that you can actually use *AuditLogs* to filter for any PI
AuditLogs
| where tolower(OperationName) contains "approval requested (pim activation)"
| project TimeGenerated, Identity, Reason = ResultReason, TargetResources[0].displayName, TargetResources,
CorrelationId = tostring(parse_json(TargetResources[0]).id)
CorrelationId = tostring(parse_json(TargetResources[0]).id)
| extend DeviceDetails = toscalar(SigninLogs| where isnotempty(CorrelationId) and CorrelationId == CorrelationId | project DeviceDetail)
| project-away CorrelationId
;
Expand Down Expand Up @@ -213,15 +213,15 @@ The tailscale ACL for such a setup could look something like this:
"production-network:*"
]
},
// Allow access to non-production by default
{
"action": "accept",
"src": ["group:[email protected]"],
"dst": [
"tag:nonproduction:*",
// Allow access to non-production by default
{
"action": "accept",
"src": ["group:[email protected]"],
"dst": [
"tag:nonproduction:*",
"nonproduction-network:*"
]
}
]
}
]
}
```

0 comments on commit 5930de4

Please sign in to comment.