Skip to content

Commit ebc4239

Browse files
authored
32269 - Remove hotjar (#3598)
1 parent 08b7394 commit ebc4239

File tree

9 files changed

+2
-35
lines changed

9 files changed

+2
-35
lines changed

auth-web/.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,5 @@ VUE_APP_KEYCLOAK_AUTH_URL="https://dev.loginproxy.gov.bc.ca/auth"
6565
VUE_APP_KEYCLOAK_REALM="bcregistry"
6666
VUE_APP_KEYCLOAK_CLIENTID="connect-web"
6767

68-
# vaults hotjar
69-
VUE_APP_HOTJAR_ID=
70-
7168
# Google Analytics
7269
VUE_APP_GTAG_ID=

auth-web/.env.test.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,3 @@ VUE_APP_KEYCLOAK_AUTH_URL="https://test.loginproxy.gov.bc.ca/auth"
6767
VUE_APP_KEYCLOAK_REALM="bcregistry"
6868
VUE_APP_KEYCLOAK_CLIENTID="connect-web"
6969

70-
#vaults hotjar
71-
VUE_APP_HOTJAR_ID=

auth-web/devops/vaults.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,5 @@ VUE_APP_KEYCLOAK_AUTH_URL="op://keycloak/$APP_ENV/base/KEYCLOAK_AUTH_BASE_URL"
6565
VUE_APP_KEYCLOAK_REALM="op://keycloak/$APP_ENV/base/KEYCLOAK_REALMNAME"
6666
VUE_APP_KEYCLOAK_CLIENTID="op://keycloak/$APP_ENV/account-web/UI_KEYCLOAK_RESOURCE_NAME"
6767

68-
#vaults hotjar
69-
VUE_APP_HOTJAR_ID="op://hotjar/$APP_ENV/auth-web/HOTJAR_ID"
70-
7168
# vaults google-analytics
7269
VUE_APP_GTAG_ID="op://google-analytics/$APP_ENV/developer/GTAG"

auth-web/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{ "key" : "X-XSS-Protection", "value" : "1; mode=block" },
2222
{
2323
"key": "Content-Security-Policy",
24-
"value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' data: *.hotjar.com https://*.cac1.pure.cloud; connect-src 'self' *.run.app *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net wss://*.hotjar.com *.hotjar.io https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;"
24+
"value": "default-src 'self'; frame-src 'self' *.gov.bc.ca *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.googleapis.com https://*.nr-data.net https://*.newrelic.com https://*.cac1.pure.cloud; style-src 'self' 'unsafe-inline' *.cloudflare.com *.googleapis.com; font-src 'self' *.gov.bc.ca *.cloudflare.com *.googleapis.com *.gstatic.com *.jsdelivr.net; img-src 'self' data: https://*.cac1.pure.cloud; connect-src 'self' *.run.app *.gov.bc.ca *.launchdarkly.com *.postescanada-canadapost.ca *.sentry.io *.apigee.net https://*.nr-data.net https://shyrka-prod-cac1.s3.ca-central-1.amazonaws.com https://*.newrelic.com https://*.cac1.pure.cloud wss://*.cac1.pure.cloud; manifest-src 'self'; media-src 'self' https://*.cac1.pure.cloud; object-src 'self' https://*.cac1.pure.cloud; child-src 'self' https://*.cac1.pure.cloud;"
2525
},
2626
{ "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate"},
2727
{ "key": "Pragma", "value": "no-cache"},

auth-web/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ http {
4040
add_header X-Frame-Options "DENY";
4141

4242
# Content Security Policy
43-
add_header Content-Security-Policy "default-src 'self'; frame-src 'self' *.gov.bc.ca *.hotjar.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.hotjar.com *.googleapis.com; style-src 'self' 'unsafe-inline' *.cloudflare.com *.jsdelivr.net; font-src 'self' *.gov.bc.ca *.hotjar.com *.cloudflare.com; img-src 'self' *.hotjar.com data:; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.hotjar.com *.postescanada-canadapost.ca *.sentry.io wss://*.hotjar.com *.hotjar.io; manifest-src 'self';";
43+
add_header Content-Security-Policy "default-src 'self'; frame-src 'self' *.gov.bc.ca; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.gov.bc.ca *.googleapis.com; style-src 'self' 'unsafe-inline' *.cloudflare.com *.jsdelivr.net; font-src 'self' *.gov.bc.ca *.cloudflare.com; img-src 'self' data:; connect-src 'self' *.gov.bc.ca *.launchdarkly.com *.postescanada-canadapost.ca *.sentry.io; manifest-src 'self';";
4444

4545
listen 8080;
4646
server_name _;

auth-web/package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"vue-auto-resize": "^1.0.1",
4444
"vue-debounce-decorator": "^1.0.1",
4545
"vue-gtag": "^1.16.1",
46-
"vue-hotjar": "^1.4.0",
4746
"vue-i18n": "8.28.2",
4847
"vue-i18n-composable": "^1.0.0",
4948
"vue-loader": "^15.9.2",

auth-web/src/main.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { PiniaVuePlugin, createPinia, setActivePinia } from 'pinia'
44
import App from './App.vue'
55
import CommonUtils from '@/util/common-util'
66
import ConfigHelper from '@/util/config-helper'
7-
import Hotjar from 'vue-hotjar'
87
import KeyCloakService from 'sbc-common-components/src/services/keycloak.services'
98
import LaunchDarklyService from 'sbc-common-components/src/services/launchdarkly.services'
109
// eslint-disable-next-line sort-imports
@@ -48,14 +47,6 @@ ConfigHelper.saveConfigToSessionStorage().then(async () => {
4847
// addressCompleteKey is for canada post address lookup, which is to be used in sbc-common-components
4948
(<any>window).addressCompleteKey = ConfigHelper.getAddressCompleteKey()
5049

51-
// initialize Hotjar
52-
const hotjarId = ConfigHelper.getHotjarId();
53-
(<any>window).hotJarId = hotjarId
54-
if (hotjarId) {
55-
console.info('Initializing Hotjar...') // eslint-disable-line no-console
56-
Vue.use(Hotjar, { id: hotjarId })
57-
}
58-
5950
await syncSession()
6051
renderVue()
6152
})

auth-web/src/util/config-helper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ export default class ConfigHelper {
188188
return `${import.meta.env.VUE_APP_REGISTRY_SEARCH_URL}`
189189
}
190190

191-
static getHotjarId () {
192-
return `${import.meta.env.VUE_APP_HOTJAR_ID}`
193-
}
194-
195191
static getLdClientId () {
196192
return `${import.meta.env.VUE_APP_AUTH_LD_CLIENT_ID}`
197193
}

0 commit comments

Comments
 (0)