diff --git a/docs/Privacy.md b/docs/Privacy.md index fccbff7cb..3a6890b71 100644 --- a/docs/Privacy.md +++ b/docs/Privacy.md @@ -2,7 +2,7 @@ _This is a summary of our Privacy policy, not a legal document, and might be incomplete._ -_For the full Privacy policy, see `static/policies/privacy.html`, or visit https://godbolt.org/#privacy_ +_For the full Privacy policy, see `static/generated/privacy.pug`, or visit https://godbolt.org/#privacy_ The main Compiler Explorer site (at https://godbolt.org/) has a cookie and privacy policy, and it's expected that any changes to the code are in compliance with those policies. It's worth taking a look at them if you're touching any area @@ -24,12 +24,17 @@ short links). All this makes perfect sense and would probably be done anyway, as We anonymise IP addresses so there's no exact mapping back to an individual using an IP. Not that it's trivial to map an IP to a user anyway. -We shouldn't store data forever: our web logs are set to delete after a few months. +We shouldn't store data forever: our web logs are set to delete after one month. Amazon infrastructure logs +(separate from our web logs) also contain full IP addresses and are kept for one month. Short URLs do turn up in the web logs: from the short URL of course one can easily extract the source code embedded in that short URL. Users are notified of this in the privacy policy. The ultimate recourse for users concerned about this is to not use the main Compiler Explorer but instead run their own local service, which is relatively straightforward. +We also integrate with third-party services with user consent: Claude Explain sends code to Anthropic for analysis, and +we use Sentry for error reporting (which keeps IP and browser info for 90 days). Users can control whether their code +is stored for diagnostic purposes through a setting that defaults to enabled but can be disabled. + ### Admins A very small group of people have administrator rights on the public Compiler Explorer. Those individuals can: diff --git a/etc/scripts/parsed-pug/parsed_pug_file.js b/etc/scripts/parsed-pug/parsed_pug_file.js index 8f54593cb..34a8ce354 100644 --- a/etc/scripts/parsed-pug/parsed_pug_file.js +++ b/etc/scripts/parsed-pug/parsed_pug_file.js @@ -9,7 +9,7 @@ const path = require('path'); // just update the hash here. const expectedHashes = { cookies: '08712179739d3679', - privacy: 'c0dad1f48a56b761', + privacy: '927087b3a3494681', }; function _execGit(command) { diff --git a/static/generated/privacy.pug b/static/generated/privacy.pug index 0b7802cda..bea77399c 100644 --- a/static/generated/privacy.pug +++ b/static/generated/privacy.pug @@ -17,6 +17,24 @@ html(lang="en") | Thanks for your interest in what Compiler Explorer does with your data. Data protection is really | important to the Compiler Explorer team, and we want to be very clear about what we do with your data. + h4 Your data + + ul + li #[strong Code] is stored temporarily while we compile it, then deleted within minutes. + li #[strong Shared links] store your code indefinitely if you create short URLs (full links don't store anything server-side). + li #[strong Web logs] contain semi-anonymised IP addresses, and are kept for up to one month. + li #[strong Error reports] - we may keep your code for up to a week if needed for debugging (you can opt out of this). + li #[strong Third parties] only receive data with your explicit consent. + + h4 How long we keep things + + ul + li #[strong Your source code] is usually deleted within minutes, or (unless you opt out) up to 1 week if we need it for debugging. + li #[strong Shared links] that use the shortened form are kept indefinitely (but can be deleted on request). + li #[strong Web logs] contain semi-anonymised IP addresses for up to 1 month. + li #[strong Amazon logs] contain full IP addresses for up to 1 month. + li #[strong Error reports] hold IP and browser info for up to 90 days. + h3 Who we are p @@ -37,28 +55,36 @@ html(lang="en") h3 Your data - p - | In order to process compilation and execution requests, your browser sends the source code you typed in the editor - | window along with your chosen compiler and options to the Compiler Explorer servers. There, the source code is - | written to disk and your chosen compiler is invoked on it. If your request was to have your code executed, the - | resulting executable is run. The outputs from compilation and execution are processed and sent back to your web - | browser, where they're shown. Shortly after this process completes, your source code is deleted from disk. If, in - | processing your query, an issue with Compiler Explorer is found, your code may be kept for up to a week in order to - | help debug and diagnose the problem. Only the Compiler Explorer team will have access to your code, and only for the - | purposes of debugging the site: we will never share your code with anyone. + h4 What happens when you compile code p - | The source code and options are also subject to a one-way hash, which is used to cache the results to speed up - | subsequent compilations of the same code. The cache is in-memory and on-disk. It's impossible to reconstruct the - | source code from the hash, but the resulting assembly code or binary output (the compilation result) is stored as - | plain text. There's no way to enumerate the in-memory cache contents. In exceptional cases, administrator members of - | the Compiler Explorer team may be able to enumerate the disk caches and retrieve the compilation output, but with no - | way to trace it back to the source code. + | When you compile, your browser sends your source code and compiler settings to our servers. We write your code + | to a temporary file, run the compiler on it, and send the results back to your browser. p - | In short: your source code is stored in plaintext for the minimum time feasible to be able to process your request. - | After that, it is discarded and is inaccessible. In very rare cases your code may be kept for a little longer (at - | most a week) to help debug issues in Compiler Explorer. + | #[strong Your code is deleted within minutes.] As soon as compilation finishes, we clean up the temporary files. + + p + | #[strong Exception for debugging:] If something goes wrong with Compiler Explorer itself (not your code, but our + | system), we might keep your code for up to a week to help us fix the problem. This only happens if you have the + | "Allow my source code to be temporarily stored for diagnostic purposes" setting enabled (which it is by default). + | You can disable this in Settings if you prefer. Only the Compiler Explorer team can access this, and we'll never + | share your code with anyone else. + + h4 How we speed things up (caching) + + p + | To make repeated compilations faster, we cache the results. + + p + | We create a unique fingerprint from your code and settings using a secure hash. We cannot reconstruct + | your original code from this fingerprint. However, we do store the compilation results (the assembly or executable + | output) as plain text, linked to that fingerprint. + + p + | Part of this cache lives in memory and disappears when we restart our servers. Part of it is stored on shared disk. In + | exceptional cases, Compiler Explorer administrators might be able to see these cached compilation results, but + | there's no way for us to trace them back to the original source code. h4 Short links @@ -73,36 +99,36 @@ html(lang="en") | Links of this form look like #[code https://godbolt.org/z/SHORTNAME]. p - | Prior to storing data itself, Compiler Explorer used an external URL shortening service ( - a(href="https://goo.gl/" target="_blank") goo.gl - | ) and the resulting short URL was rewritten as #[code https://godbolt.org/g/SHORTURLPART]. - | Prior to May 2025, the storage for the user experience state was in the short URL provider. Google's servers - | shut down in August 2025. Since May, we archived all we could and now we keep our own database. + | Before September 2018, Compiler Explorer used Google's goo.gl service for short links. + | We switched to our own system in 2018, but when Google shut down goo.gl in 2025, we migrated any remaining old + | links to ensure they keep working. h4 Application, web and error logs p - | Compiler Explorer keeps application logs, which contain semi-anonymised IP addresses, but no other personally - | identifying information. When a long URL is clicked, the hash part of the URL is not sent to the server, so the user - | state (including the source code) is NOT exposed in the web log. If a user clicks a short URL, then the short form - | #[em is] exposed in the web log (as #[code https://godbolt.org/g/SHORTURLPART]) and from this the source code can be - | retrieved. As such, if you create a short URL of your code, your source - | code and other user state can in principle be retrieved from the web log of Compiler Explorer. + | We keep two types of logs: p - | Compiler Explorer keeps a separate compile request log for Analytics purposes without identifying information. - | This log only contains the settings which were used - minus code and options that may contain sensitive data. + | Web access logs contain semi-anonymised IP addresses but no other personal information. + | When you visit a long Compiler Explorer URL (the ones with #[code #] in them), your code + | stays in your browser and isn't logged. If you visit a short URL we created (like #[code godbolt.org/z/abc123]), + | then we can potentially retrieve your code from our logs. p - | Compiler Explorer uses Amazon's web serving, load balancing and edge caching systems. In order to debug and diagnose - | Compiler Explorer, to help track down and block Denial of Service attacks, and to gather statistics about Compiler - | Explorer's performance and usage, the logs from these systems are archived. These logs contain the full IP addresses - | of requests. They are kept for no more than one month, after which they are permanently deleted. + | Compilation logs are separate analytics logs that record which compilers and settings people use, + | but don't contain any code or other sensitive information. p - | If your web browser experiences an error, we use a third party reporting system ( + | Amazon infrastructure logs: We use Amazon's servers to run Compiler Explorer. Their logs (which help us + | debug issues and block attacks) contain full IP addresses and are kept for up to one month, then permanently + | deleted. + + p + | For error reporting: If something goes wrong in your browser, we use + | a(href="https://sentry.io/" target="_blank") Sentry - | ). This keeps information, including your IP address and web browser user agent, for no more than 90 days. + | + | to help us fix it. This keeps your IP address and browser information for up to 90 days. h4 Executing your code @@ -116,7 +142,7 @@ html(lang="en") p | The "Claude Explain" view sends your code and data to Anthropic, the makers of Claude. We always ask for consent - | before sending your code, and Anthropic do not use anything we send them for training. For the purposes of + | before sending your code, and Anthropic does not use anything we send them for training. For the purposes of | Anthropic's own Privacy Policy, we use them as a "data processor", and so our own privacy policy applies to the | data. @@ -124,31 +150,50 @@ html(lang="en") p | Compiler Explorer uses small pieces of information stored on your computer: Cookies and Browser Local - | Storage (and Session Storage). Local storage is used to remember the user's settings, source code and user interface configuration, so - | that it's available when the user visits the Compiler Explorer site again. This information is not transmitted to - | Compiler Explorer, except as described above in order to fulfil the user's requests. There is a + | Storage (and Session Storage). Local storage remembers your settings, source code and user interface configuration + | so it's available when you visit again. This information is not transmitted to + | Compiler Explorer, except as described above in order to fulfil your requests. There is a | a(href="#cookies" rel="noreferrer noopener") separate document | | covering more on this. - h3 Your choices + h3 Your rights and choices + + h4 What you can control p - | Compiler Explorer is an open source project. If you are concerned about any of the data protection measures outlined - | above, or about what happens to your source code, you are encouraged to run your own local instance of Compiler - | Explorer. Instructions on how to do this are on the + | You decide if and when to create shared links. In case of an emergency you can request + | deletion by contacting us. + + p + | For Claude Explain, we always ask for your explicit consent before sending any code to Anthropic. + + p + | Compiler Explorer is open source. If you prefer complete control over your data, + | you can run your own instance. Instructions are on our | a(href="https://github.com/compiler-explorer/compiler-explorer" target="_blank" rel="noreferrer noopener") GitHub project page | . + h4 Data requests + + p + | If you have questions about your data or want to request deletion of a shared link, contact us at + | + a(href="mailto:privacy@compiler-explorer.com") privacy@compiler-explorer.com + | . + h3 Compiler Explorer and the GDPR p - | The Compiler Explorer team believes the Compiler Explorer site is compliant with the EU's General Data Protection - | Regulation (GDPR). Specifically, we store no personally identifying information, we anonymise the little data that - | we do have and we do not permanently store any user data. + | We comply with the EU's General Data Protection Regulation (GDPR) because: + + ul + li We don't collect or store permanently identifying personal information + li IP addresses in logs are semi-anonymised and deleted within one month + li Your source code is processed temporarily and then deleted h4 Name and contact details of the controller