René's URL Explorer Experiment


Title: Anonymous users in logs + audit logs · Issue #6054 · coder/coder · GitHub

Open Graph Title: Anonymous users in logs + audit logs · Issue #6054 · coder/coder

X Title: Anonymous users in logs + audit logs · Issue #6054 · coder/coder

Description: Problem We track failed attempts in audit logs and logs, and to generate diffs we are using random uuids's for anonymous users (see #5925). The issue for this is that the uuids are not obviously anonymous at first glance, and might cause...

Open Graph Description: Problem We track failed attempts in audit logs and logs, and to generate diffs we are using random uuids's for anonymous users (see #5925). The issue for this is that the uuids are not obviously an...

X Description: Problem We track failed attempts in audit logs and logs, and to generate diffs we are using random uuids's for anonymous users (see #5925). The issue for this is that the uuids are not obviousl...

Opengraph URL: https://github.com/coder/coder/issues/6054

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Anonymous users in logs + audit logs ","articleBody":"# Problem\r\n\r\nWe track failed attempts in audit logs and logs, and to generate diffs we are using random uuids's for anonymous users (see https://github.com/coder/coder/pull/5925). \r\n\r\nThe issue for this is that the uuids are not obviously anonymous at first glance, and might cause some misunderstandings if logs are consumed programatically. It would be hard to tell if a uuid was random, or maybe some user that was deleted (hard delete).\r\n\r\n## Tracking the same anonymous user\r\n\r\nThe other issue with this is that it does not track the same anonymous user. IP address in logs does do this to an extent, and might be sufficient. We could set a cookie on the user's browser some identifying token that does not expire so all unauthenticated requests have the same tracking ID. That way in the audit logs, it is clear the same browser is making many failed requests. Especially useful if there is a group of users behind a NAT since the IP tracking would not distinguish individual users.\r\n\r\n# Idea\r\n\r\nOne idea to ensure that it is clear which UUIDs track anonymous users and have no relations to any data in the database, we could:\r\n\r\n## Static UUID\r\n\r\nWe could use a static id (eg `11111111-1111-1111-1111-111111111111`). This is obvious it is not a real UUID. \r\n\r\nThe downside is all anonymous users are the same.\r\n\r\n## Not completely random uuid\r\n\r\nWe could manipulate a random UUID. UUID's have various parts to them. The RFC states:\r\n\r\nhttps://www.rfc-editor.org/rfc/rfc4122#section-4.4\r\n```\r\n[4.4](https://www.rfc-editor.org/rfc/rfc4122#section-4.4).  Algorithms for Creating a UUID from Truly Random or\r\n      Pseudo-Random Numbers\r\n\r\n   The version 4 UUID is meant for generating UUIDs from truly-random or\r\n   pseudo-random numbers.\r\n\r\n   The algorithm is as follows:\r\n\r\n   o  Set the two most significant bits (bits 6 and 7) of the\r\n      clock_seq_hi_and_reserved to zero and one, respectively.\r\n\r\n   o  Set the four most significant bits (bits 12 through 15) of the\r\n      time_hi_and_version field to the 4-bit version number from\r\n      [Section 4.1.3](https://www.rfc-editor.org/rfc/rfc4122#section-4.1.3).\r\n\r\n   o  Set all the other bits to randomly (or pseudo-randomly) chosen\r\n      values.\r\n```\r\n\r\nStandard parts of a uuid (remember that v4 is the one we use and most of this is completely random)\r\n\r\n![386f74ad-340c-41f9-87ac-6c7c840cd459_What+is+a+UUID_+(1)](https://user-images.githubusercontent.com/5446298/217019371-2173b6e3-28ba-4300-a4cb-5c1d266464e8.png)\r\n\r\nWe could use a different version uuid, as it has the same format. I don't know what version exactly, but we could use a version (like v1) that uses time for many of the bits, and something static for the `Node` part. Meaning any \"anonymous user\" is essentially tracked to the time they were identified as an anonymous user.\r\n\r\nExample:\r\n(decode the uuid here to see the time: https://www.uuidtools.com/decode)\r\n```\r\n3cb47c7a-a637-11ed-afa1-aa0000000000\r\n```\r\n\r\n## Some combination of static and random\r\n\r\nSame as above, but more random parts instead of using time.","author":{"url":"https://github.com/Emyrk","@type":"Person","name":"Emyrk"},"datePublished":"2023-02-06T16:02:14Z","url":"https://github.com/coder/coder/issues/6054"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ad4d575-a666-011a-eae9-be1bdf1d236e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB140:62F48:21F436:2CD8F0:6B01BCBE
html-safe-nonced614c8ed049bbce2a1e3a6288c9d70fd3bae43d53fe7b5ee680671c08b9c4097
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQwOjYyRjQ4OjIxRjQzNjoyQ0Q4RjA6NkIwMUJDQkUiLCJ2aXNpdG9yX2lkIjoiNDIyMjE3NTE5NTYzMDI1NTI5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2f7f96e4c2dc55b66e8b9c10f7baed29f8e67fdbb95262e8f02dcbe9bf42fd6a
hovercard-subject-tagissue:1572841136
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/6054/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c233a294107d1f1f01da4aff149452fcccf94d4f4230265aede8c0a0a1e29231/coder/coder/issues/6054
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c233a294107d1f1f01da4aff149452fcccf94d4f4230265aede8c0a0a1e29231/coder/coder/issues/6054
og:image:altProblem We track failed attempts in audit logs and logs, and to generate diffs we are using random uuids's for anonymous users (see #5925). The issue for this is that the uuids are not obviously an...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEmyrk
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/6054#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F6054
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F6054
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/6054
Reloadhttps://github.com/coder/coder/issues/6054
Reloadhttps://github.com/coder/coder/issues/6054
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/6054
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/6054
Anonymous users in logs + audit logs https://github.com/coder/coder/issues/6054#top
https://github.com/Kira-Pilot
design neededRequest for more beautyhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22design%20needed%22
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
on Feb 6, 2023https://github.com/coder/coder/issues/6054#issue-1572841136
#5925https://github.com/coder/coder/pull/5925
https://www.rfc-editor.org/rfc/rfc4122#section-4.4https://www.rfc-editor.org/rfc/rfc4122#section-4.4
https://user-images.githubusercontent.com/5446298/217019371-2173b6e3-28ba-4300-a4cb-5c1d266464e8.png
https://www.uuidtools.com/decodehttps://www.uuidtools.com/decode
Emyrkhttps://github.com/Emyrk
featurehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22feature%22
design neededRequest for more beautyhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22design%20needed%22
on Feb 6, 2023https://github.com/coder/coder/issues/6054#event-8449078538
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Feb 6, 2023https://github.com/coder/coder/issues/6054#issuecomment-1419353212
https://github.com/Kira-Pilot
Kira-Pilothttps://github.com/Kira-Pilot
on Feb 8, 2023https://github.com/coder/coder/issues/6054#issuecomment-1423019210
#6108https://github.com/coder/coder/issues/6108
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Feb 9, 2023https://github.com/coder/coder/issues/6054#issuecomment-1424525028
https://www.enterpriseready.io/features/audit-log/https://www.enterpriseready.io/features/audit-log/
https://github.com/bpmct
bpmcthttps://github.com/bpmct
on Feb 9, 2023https://github.com/coder/coder/issues/6054#issuecomment-1424526353
https://gitlab.com/gitlab-org/gitlab/-/issues/233377https://gitlab.com/gitlab-org/gitlab/-/issues/233377
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Feb 10, 2023https://github.com/coder/coder/issues/6054#issuecomment-1425196096
@bpmcthttps://github.com/bpmct
https://github.com/Kira-Pilot
Kira-Pilothttps://github.com/Kira-Pilot
on Feb 10, 2023https://github.com/coder/coder/issues/6054#issuecomment-1425715912
@spikecurtishttps://github.com/spikecurtis
Kira-Pilothttps://github.com/Kira-Pilot
on Mar 20, 2023https://github.com/coder/coder/issues/6054#event-8796348511
https://github.com/Kira-Pilot
Kira-Pilothttps://github.com/Kira-Pilot
on Mar 22, 2023https://github.com/coder/coder/issues/6054#issuecomment-1480068928
herehttps://github.com/coder/coder/pull/6733
Gitlab's issuehttps://gitlab.com/gitlab-org/gitlab/-/issues/233377
herehttps://github.com/coder/coder/issues/6108
Kira-Pilothttps://github.com/Kira-Pilot
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 22, 2023https://github.com/coder/coder/issues/6054#event-8820051217
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/6054
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/6054
Kira-Pilothttps://github.com/Kira-Pilot
design neededRequest for more beautyhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22design%20needed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.