Skip to content

Commit b6d35ed

Browse files
authored
chore: remove meticulous from CI (#14369)
1 parent 03f05e2 commit b6d35ed

File tree

3 files changed

+2
-83
lines changed

3 files changed

+2
-83
lines changed

.github/workflows/meticulous.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

coderd/httpmw/csp.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
5959
cspDirectiveConnectSrc: {"'self'"},
6060
cspDirectiveChildSrc: {"'self'"},
6161
// https://github.com/suren-atoyan/monaco-react/issues/168
62-
cspDirectiveScriptSrc: {"'self' "},
62+
cspDirectiveScriptSrc: {"'self'"},
6363
cspDirectiveStyleSrc: {"'self' 'unsafe-inline'"},
6464
// data: is used by monaco editor on FE for Syntax Highlight
6565
cspDirectiveFontSrc: {"'self' data:"},
@@ -88,11 +88,6 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
8888
if telemetry {
8989
// If telemetry is enabled, we report to coder.com.
9090
cspSrcs.Append(cspDirectiveConnectSrc, "https://coder.com")
91-
// These are necessary to allow meticulous to collect sampling to
92-
// improve our testing. Only remove these if we're no longer using
93-
// their services.
94-
cspSrcs.Append(cspDirectiveConnectSrc, meticulousConnectSrc...)
95-
cspSrcs.Append(cspDirectiveScriptSrc, meticulousScriptSrc...)
9691
}
9792

9893
// This extra connect-src addition is required to support old webkit
@@ -136,8 +131,3 @@ func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.H
136131
})
137132
}
138133
}
139-
140-
var (
141-
meticulousConnectSrc = []string{"https://cognito-identity.us-west-2.amazonaws.com", "https://user-events-v3.s3-accelerate.amazonaws.com", "*.sentry.io"}
142-
meticulousScriptSrc = []string{"https://snippet.meticulous.ai", "https://browser.sentry-cdn.com"}
143-
)

site/src/index.tsx

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { tryLoadAndStartRecorder } from "@alwaysmeticulous/recorder-loader";
21
import { createRoot } from "react-dom/client";
32
import { App } from "./App";
43

@@ -15,28 +14,4 @@ if (element === null) {
1514
}
1615

1716
const root = createRoot(element);
18-
async function startApp() {
19-
// Record all sessions on localhost, staging stacks and preview URLs
20-
if (isInternal()) {
21-
// Start the Meticulous recorder before you initialise your app.
22-
// Note: all errors are caught and logged, so no need to surround with try/catch
23-
await tryLoadAndStartRecorder({
24-
projectId: "Y4uHy1qs0B660xxUdrkLPkazUMPr6OuTqYEnShaR",
25-
isProduction: false,
26-
});
27-
}
28-
29-
root.render(<App />);
30-
}
31-
32-
function isInternal() {
33-
return (
34-
process.env.NODE_ENV === "development" &&
35-
(window.location.hostname.indexOf("localhost") > -1 ||
36-
window.location.hostname.indexOf("127.0.0.1") > -1)
37-
);
38-
}
39-
40-
startApp().catch((error) => {
41-
console.error(error);
42-
});
17+
root.render(<App />);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy