Skip to content

Add Access List usage events, emit event for userloginstate Generator.#32196

Merged
mdwn merged 1 commit intomasterfrom
mike.wilson/add-access-list-posthog-events
Sep 21, 2023
Merged

Add Access List usage events, emit event for userloginstate Generator.#32196
mdwn merged 1 commit intomasterfrom
mike.wilson/add-access-list-posthog-events

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Sep 20, 2023

Access List usage events have been added, counting create and delete for Access Lists and Access List members. Additionally, an event for granting Access List access to users has been added to the userloginstate Generator and is now tested for.

Note: I haven't actually tested this yet, I'm still trying to figure out how to do this, or if it's possible.

@mdwn
Copy link
Copy Markdown
Contributor Author

mdwn commented Sep 20, 2023

It looks like I've missed a few things w/r/t prehog here, so I need to add these in. I'll ping once these are finished.

@mdwn
Copy link
Copy Markdown
Contributor Author

mdwn commented Sep 20, 2023

Okay @avatus @Joerger, this should be good now. Sorry for the noise!

Comment thread lib/auth/userloginstate/generator.go Outdated
Comment thread lib/auth/userloginstate/generator.go Outdated
Comment thread lib/usagereporter/teleport/usagereporter_test.go Outdated
Comment thread lib/auth/userloginstate/generator.go Outdated
Comment thread proto/prehog/v1alpha/teleport.proto Outdated
Access List usage events have been added, counting create and delete for
Access Lists and Access List members. Additionally, an event for granting
Access List access to users has been added to the userloginstate Generator
and is now tested for.
@mdwn mdwn force-pushed the mike.wilson/add-access-list-posthog-events branch from 8137d83 to 638ba0f Compare September 21, 2023 12:57
@mdwn mdwn enabled auto-merge September 21, 2023 12:58
@mdwn mdwn added this pull request to the merge queue Sep 21, 2023
Merged via the queue into master with commit 49e4c96 Sep 21, 2023
@mdwn mdwn deleted the mike.wilson/add-access-list-posthog-events branch September 21, 2023 13:34
@public-teleport-github-review-bot
Copy link
Copy Markdown

@mdwn See the table below for backport results.

Branch Result
branch/v13 Failed
branch/v14 Create PR

@espadolini
Copy link
Copy Markdown
Contributor

espadolini commented Sep 22, 2023

There's not even a PR merged for this in cloud, so we just narrowly avoided a conflict in the protobuf definition, and the events generated here are just going to end up as errors in the ingest service's logs, because they're just parsed as unknown fields in the message. We should revert the v13 and v14 backports until we fix that.

edit: we just pushed forward and got the cloud side of things merged, so we can hold off on reverting the backports

@espadolini
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants