Skip to content

Commit 3d6b7a2

Browse files
committed
#RIVS-305 - Turn on keytar encryption for new users
1 parent 14c5489 commit 3d6b7a2

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

src/resources/agreements-spec.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.1",
2+
"version": "1.0.2",
33
"agreements": {
44
"analytics": {
55
"defaultValue": false,
@@ -35,6 +35,37 @@
3535
"title": "Server Side Public License",
3636
"label": "I have read and understood the Terms",
3737
"requiredText": "Accept the Server Side Public License"
38+
},
39+
"encryption": {
40+
"conditional": true,
41+
"checker": "KEYTAR",
42+
"defaultOption": "false",
43+
"options": {
44+
"true": {
45+
"defaultValue": true,
46+
"displayInSetting": false,
47+
"required": false,
48+
"editable": true,
49+
"disabled": false,
50+
"category": "privacy",
51+
"since": "1.0.2",
52+
"title": "Encryption",
53+
"label": "Encrypt sensitive information",
54+
"description": "Select to encrypt sensitive information using system keychain. Otherwise, this information is stored locally in plain text, which may incur security risk."
55+
},
56+
"false": {
57+
"defaultValue": false,
58+
"displayInSetting": false,
59+
"required": false,
60+
"editable": true,
61+
"disabled": true,
62+
"category": "privacy",
63+
"since": "1.0.2",
64+
"title": "Encryption",
65+
"label": "Encrypt sensitive information",
66+
"description": "Install or enable the system keychain to encrypt and securely store your sensitive information added before using the application. Otherwise, this information will be stored locally in plain text and may lead to security risks."
67+
}
68+
}
3869
}
3970
}
4071
}

src/webviews/src/constants/core/storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ enum StorageItem {
3131
cliDatabase = 'cliDatabase',
3232
databaseId = 'databaseId',
3333
openTreeNode = 'openTreeNode',
34+
openTreeDatabase = 'openTreeDatabase',
3435
}
3536

3637
export { StorageItem }

src/webviews/src/modules/eula/Eula.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const Eula = ({ onSubmitted }: Props) => {
155155
// : TelemetryEvent.SETTINGS_NOTIFICATION_MESSAGES_DISABLED,
156156
// })
157157
// }
158-
updateUserConfigSettingsAction({ agreements: { ...values, encryption: false } }, onSubmitted)
158+
updateUserConfigSettingsAction({ agreements: values }, onSubmitted)
159159
}
160160

161161
const SubmitBtn: ReactElement = (

0 commit comments

Comments
 (0)