Any application packagers lurking here? :slightly_...
# rancher-desktop
d
Any application packagers lurking here? ๐Ÿ™‚ I've locked down the option to automatically update Rancher Desktop within the application itself (since we are managing it elsewhere) using the registry. However, I was forced to set a schema version, so I'm worried that if and when the schema version is updated from 15 that the deployment profile might stop working. Has anyone got a better way of configuring this or is this the recommended way? ๐Ÿ™‚ (I tested it by setting the schema version to 10 and launched the application which seems to work, but as I said I'm just worried that it might stop working in the future). https://docs.rancherdesktop.io/getting-started/deployment/ I've locked it down using: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Rancher Desktop\Locked] "version"=dword:0000000f (<- 15) [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Rancher Desktop\Locked\application] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Rancher Desktop\Locked\application\updater] "enabled"=dword:00000000
p
The schema version exists so we can migrate from whatever you have to "current", whatever that means for the running application.
We use the same code for reading in the persisted settings
d
@proud-jewelry-46860 Does this mean I'm going about it the right way and won't need to think about the schema version later on or? ๐Ÿ™‚ Thanks for the quick reply btw.
w
the intent of the schema is that it is backwards compatible. so a future scheme might include elements for a new feature in the product so you may need to revisit it again, but the goal would likely be that for features covered by a schema level it wouldn't need rework.
๐Ÿ™ 1
f
The migrations for the locked schema is intentionally conservative. If a new feature is added, that an organization may reasonably want to lock down, then the migration will automatically lock the feature as disabled, even if the profile doesn't include it (because it didn't exist in earlier versions). An example is the Wasm support added in schema version 11. If you are migrating a locked profile from version 10 or earlier, Wasm will be disabled and locked: https://github.com/rancher-sandbox/rancher-desktop/blob/f910855c23329ac412ebe96c77fbafecfd00739e/pkg/rancher-desktop/config/settingsImpl.ts#L476-L481 If you have a schema 11 or later profile, and don't mention Wasm, then it will be unlocked, because you have the setting available in your schema, but choose not to lock it.