From c7bb21a63a6ca11bf4045d916165a36852b2e09b Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Tue, 19 Sep 2023 22:29:21 +0200 Subject: [PATCH] Update polkit policy --- agent/systemauth/biometrics/polkit.go | 59 +++++++++--------- resources/com.quexten.goldwarden.policy | 79 ++++++++++--------------- 2 files changed, 61 insertions(+), 77 deletions(-) diff --git a/agent/systemauth/biometrics/polkit.go b/agent/systemauth/biometrics/polkit.go index d8b5c5b..dcb7565 100644 --- a/agent/systemauth/biometrics/polkit.go +++ b/agent/systemauth/biometrics/polkit.go @@ -9,36 +9,37 @@ import ( const POLICY = ` - + "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd"> - - Allow access to the vault - Allows access to the vault entries - - auth_self - auth_self - auth_self - - - - Use SSH Key - Authenticate to use an SSH Key from your vault - - auth_self - auth_self - auth_self - - - - Browser Biometrics - Authenticate to allow Goldwarden to unlock your browser. - - auth_self - auth_self - auth_self - - + + + Allow access to the vault + Allows access to the vault + + auth_self + auth_self + auth_self + + + + Use SSH Key + Authenticate to use an SSH Key from your vault + + auth_self + auth_self + auth_self + + + + Browser Biometrics + Authenticate to allow Goldwarden to unlock your browser + + auth_self + auth_self + auth_self + + + ` func CheckBiometrics(approvalType Approval) bool { diff --git a/resources/com.quexten.goldwarden.policy b/resources/com.quexten.goldwarden.policy index b7fe542..ec0ba4e 100644 --- a/resources/com.quexten.goldwarden.policy +++ b/resources/com.quexten.goldwarden.policy @@ -1,52 +1,35 @@ - + "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd"> - - Allow Credential Access - Authenticate to allow access to a single credential - - auth_self - auth_self - auth_self - - - - Approve Pin Change - Authenticate to change your Goldwarden PIN. - - auth_self - auth_self - auth_self - - - - Use Bitwarden SSH Key - Authenticate to use an SSH Key from your vault - - auth_self - auth_self - auth_self - - - - Modify Bitwarden Vault - Authenticate to allow modification of your Bitvarden vault in Goldwarden - - auth_self - auth_self - auth_self - - - - Browser Biometrics - Authenticate to allow Goldwarden to unlock your browser. - - auth_self - auth_self - auth_self - - - + + + Allow access to the vault + Allows access to the vault + + auth_self + auth_self + auth_self + + + + Use SSH Key + Authenticate to use an SSH Key from your vault + + auth_self + auth_self + auth_self + + + + Browser Biometrics + Authenticate to allow Goldwarden to unlock your browser + + auth_self + auth_self + auth_self + + + + \ No newline at end of file