Skip to content

Commit 0d0cfb0

Browse files
committed
Merge branch 'develop'
2 parents 5f2f3dd + 140fdbb commit 0d0cfb0

3 files changed

Lines changed: 62 additions & 5 deletions

File tree

‎.github/workflows/update-windows-info.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
contents: write
1818
env:
1919
DESKTOP_VERSION: ${{ github.event.client_payload.version }}
20+
outputs:
21+
changed: ${{ steps.commit-and-push.outputs.changed }}
22+
pr-url: ${{ steps.create-pr.outputs.url }}
2023
steps:
2124
- name: Checkout repo
2225
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -89,8 +92,15 @@ jobs:
8992
echo "url=$PR_URL" >> "$GITHUB_OUTPUT"
9093
env:
9194
GH_TOKEN: ${{ secrets.CRYPTOBOT_PR_TOKEN }}
95+
96+
notify:
97+
name: Notify about created PR
98+
needs: create-pr
99+
if: needs.create-pr.outputs.changed == 'true'
100+
# the Slack action is a Docker container action and therefore requires a Linux runner
101+
runs-on: ubuntu-latest
102+
steps:
92103
- name: Slack Notification
93-
if: steps.commit-and-push.outputs.changed == 'true'
94104
uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2.4.0
95105
env:
96106
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_CRYPTOMATOR_DESKTOP }}
@@ -99,6 +109,6 @@ jobs:
99109
SLACK_ICON_EMOJI: ':bot:'
100110
SLACK_CHANNEL: 'cryptomator-desktop'
101111
SLACK_TITLE: "Docs update PR created for release ${{ github.event.client_payload.version }} ."
102-
SLACK_MESSAGE: "See <${{ steps.create-pr.outputs.url }}|PR> on how to proceed."
112+
SLACK_MESSAGE: "See <${{ needs.create-pr.outputs.pr-url }}|PR> on how to proceed."
103113
SLACK_FOOTER: false
104114
MSG_MINIMAL: true

‎docs/desktop/admin-config.mdx‎

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,54 @@ cryptomator.pluginDir=@{userhome}/cryptomator/plugins
4343
:::warning
4444
After creating/editing the file, ensure correct file access permissions!
4545

46-
We recommend read access for all users, **write access only for system/device admins**.
46+
We recommend read access for all users, **write access only for system/device admins**. On Windows, Cryptomator enforces this and ignores the file otherwise, see [File Permissions on Windows](#file-permissions-on-windows).
4747
:::
4848

49+
## File Permissions on Windows {/* #file-permissions-on-windows */}
50+
51+
Since Cryptomator 1.19.5, the admin configuration is **only loaded on Windows if it cannot be edited by standard users**. Cryptomator checks the following requirements on every start and ignores the admin configuration if any of them is not met:
52+
53+
* `config.properties`, its directory and all parent directories up to the drive root are owned by `SYSTEM`, `Administrators` or `TrustedInstaller`.
54+
* No other user or group has permissions to modify the file (meaning write, append, delete, change permissions, take ownership) or to delete or replace one of the directories (delete, delete subfolders and files, change permissions, take ownership). Permissions to create new files in a directory are fine.
55+
* The path does not contain junctions or symbolic links.
56+
57+
If the admin configuration is ignored, the application log contains a warning starting with `Ignoring admin config`. The warning logged right before it names the concrete cause, e.g. the path and its untrusted owner, the modifying rights granted to an untrusted principal, or the link a path element resolves to.
58+
59+
During installation (including repair and upgrade) the installer sets up the directory `C:\ProgramData\Cryptomator` and, if no admin config exists, places an empty `config.properties` with correct permissions inside it.
60+
61+
An existing `config.properties` is left untouched, **including its owner and permissions**. To replace it with one the installer creates, proceed as follows with elevated privileges:
62+
63+
1. Rename `C:\ProgramData\Cryptomator\config.properties`, e.g. to `config.properties.old`.
64+
2. Repair the installation, e.g. by running the Cryptomator installer again and choosing *Repair*. This secures the directory and places a new, empty `config.properties` with correct permissions inside it.
65+
3. Copy the entries you need from the renamed file into the new `config.properties` and delete the renamed file afterwards.
66+
67+
:::warning
68+
Before copying entries, review the content of the renamed file for unexpected values, especially `cryptomator.pluginDir`.
69+
:::
70+
71+
For verification, run the following commands in PowerShell:
72+
73+
```powershell
74+
(Get-Acl "C:\ProgramData\Cryptomator").Sddl
75+
(Get-Acl "C:\ProgramData\Cryptomator\config.properties").Sddl
76+
```
77+
78+
Each command prints owner and permissions in [SDDL](https://learn.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-definition-language) form. For a configuration created by the installer, the output is:
79+
80+
```
81+
O:BAG:SYD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;BU)
82+
O:SYG:SYD:AI(A;ID;0x1200a9;;;BU)(A;ID;FA;;;BA)(A;ID;FA;;;SY)
83+
```
84+
85+
`SY` stands for `SYSTEM`, `BA` for `Administrators` and `BU` for `Users`; `TrustedInstaller` has no abbreviation and appears as its full SID. `FA` grants full access, `0x1200a9` read and execute. The installer-generated defaults have the following characteristics:
86+
87+
* The owner (`O:`) is `SY`, `BA` or `S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464` (`TrustedInstaller`).
88+
* The permissions after `D:` consist of exactly three entries, one each for `SY`, `BA` and `BU` (order may differ).
89+
* The directory's permissions contain the `P` flag (`D:PAI`).
90+
* The file's entries carry the `ID` flag.
91+
92+
A deployment tool that creates the admin config must meet the ownership, access and link restrictions described above; it does not need to reproduce the installer's ACLs exactly.
93+
4994
## Configurable Properties {/* #configurable-properties */}
5095

5196
The following property keys are supported.

‎docs/security/verify-installers.mdx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Our Windows installers are signed using a code signing certificate. You can veri
3737
Get-AuthenticodeSignature -FilePath "~\Downloads\Cryptomator-*.exe"
3838
```
3939
3. Verify that the output includes:
40-
- Column `SignerCertificate` with value {/* AUTOMATION MARKER FOR WORKFLOW */}`9DE645D63969984E0127C0F65BDA4652D7458056`(*)
40+
- Column `SignerCertificate` with value {/* AUTOMATION MARKER FOR WORKFLOW */}`0DDB9269A31F56CC6E9D9AD4D235741BB8917EFA`(*)
4141
- Column `Status` with value `Valid`
4242
- no errors
4343

@@ -65,7 +65,8 @@ Every Cryptomator installer is signed with a certificate. A certificate is ident
6565

6666
| Version(s) | Certificate Thumbprint |
6767
|---------------------|--------------------------------------------|
68-
| 1.19.4 |`9DE645D63969984E0127C0F65BDA4652D7458056`{/* AUTOMATION MARKER FOR WORKFLOW */} |
68+
| 1.19.5 |`0DDB9269A31F56CC6E9D9AD4D235741BB8917EFA`{/* AUTOMATION MARKER FOR WORKFLOW */} |
69+
| 1.19.4 |`9DE645D63969984E0127C0F65BDA4652D7458056` |
6970
| 1.19.3 | `F255C2D35DDB45D20CE854EBF393A266DB16736C` |
7071
| 1.19.2 | `20F30D7C5B1AB3ACAFA4AB27874ACBC4B47B0697` |
7172
| 1.19.1 | `BB0EEBF8E92E4584DF4B6AE4F9577B60BEB5DF4C` |
@@ -100,3 +101,4 @@ Identifier=org.cryptomator
100101
TeamIdentifier=YZQJQUHA3L
101102
```
102103

104+

0 commit comments

Comments
 (0)