athena audit logs - always pass utc to query#26784
Conversation
rosstimothy
left a comment
There was a problem hiding this comment.
How do other backends handle this? Should we consistently use UTC everywhere?
TLDR: no need to change in other backends, each backend handles it by themself. dynamo is using unix helpers, so UTC: teleport/lib/events/dynamoevents/dynamoevents.go Lines 1087 to 1088 in be00c95 teleport/lib/events/dynamoevents/dynamoevents.go Lines 455 to 457 in be00c95 Firestore also using unix helpers: teleport/lib/events/firestoreevents/firestoreevents.go Lines 387 to 388 in be00c95 And filework works on time.Time struct so it's safe: teleport/lib/events/filelog.go Lines 489 to 506 in be00c95 |
|
@tobiaszheller See the table below for backport results.
|
Part of https://github.com/gravitational/teleport.e/issues/894
RFD: https://github.com/gravitational/teleport/blob/master/rfd/0118-scalable-audit-logs.md
Query now enforces UTC time because parquet writer stores files in folders per date and date is UTC there. I believe UTC is not enforced in auth and it's up to client. This way we are sure that athena querier operates on UTC.