feat(linux): add simple_secure_storage_linux_portal package - #17
Draft
EchoEllet wants to merge 1 commit into
Draft
feat(linux): add simple_secure_storage_linux_portal package#17EchoEllet wants to merge 1 commit into
EchoEllet wants to merge 1 commit into
Conversation
…esktop Secret Portal support Fixes Skyost#16
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #16
Checklist
xdg_secret_portal_store_defaultand implementxdg_secret_portal_storeusingcipherlibto migrate away fromcryptography([linux] support XDG Desktop Secret Portal (org.freedesktop.portal.Secret) #16 (comment))simple_secure_storagewith a Flatpak sandboxsimple_secure_storageto referencesimple_secure_storage_linux_portaland when to use it or how.InitializationOptions.appNameand/orInitializationOptions.namespacefor building the file path of the stored secrets. I purpose Linux application ID + allowing it to be overridden usingapplicationIdOverride(see also this section).Tip
Using direct access to the Secret Service API may result in
Flathub app submission not being approved.
New sandboxed applications should consider the XDG Desktop Portal Secret API when
available. This information can be documented in
simple_secure_storage's README.Dependencies
package:xdg_desktop_portal: A native Dart client implementation of XDG Desktop portals. The secret portal provides a unique master secret for the running application. By design, it is not a complete high-level secure storage like the secret service API.package:xdg_secret_portal_store: A helper library for storing application secrets in an encrypted file using the master secret provided by the XDG Desktop Portal Secret API. Designed to complement package:xdg_desktop_portal (but does not depend directly on it).package:xdg_secret_portal_store_default: A default cryptographic implementation ofpackage:xdg_secret_portal_storethat uses package:cryptography. Can be removed.package:linux_application_id+package:xdg_directories: Used to build the file path for the file containing the encrypted stored secrets. These dependencies could be replaced withpath_provider, but this would introduce more transitive dependencies.path_provider_linuxdepends onxdg_directoriesinternally.