Stronghold
Store secrets and keys using the IOTA Stronghold encrypted database and secure runtime.
Supported Platforms
- Windows
- Linux
- macOS
Setup
This plugin requires a Rust version of at least 1.75
Install the stronghold plugin to get started.
Use your project’s package manager to add the dependency:
-
Install the stronghold plugin by adding the following to your
Cargo.toml
file: -
Modify
lib.rs
to initialize the plugin: -
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
Initialize with custom password hash function
Initialize with argon2 password hash function
Usage from JavaScript
The stronghold plugin is available in JavaScript.
Permissions
By default all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your capabilities
configuration.
See Permissions Overview for more information.
Permission | Description |
---|---|
stronghold:allow-create-client | Enables the create_client command without any pre-configured scope. |
stronghold:deny-create-client | Denies the create_client command without any pre-configured scope. |
stronghold:allow-destroy | Enables the destroy command without any pre-configured scope. |
stronghold:deny-destroy | Denies the destroy command without any pre-configured scope. |
stronghold:allow-execute-procedure | Enables the execute_procedure command without any pre-configured scope. |
stronghold:deny-execute-procedure | Denies the execute_procedure command without any pre-configured scope. |
stronghold:allow-get-store-record | Enables the get_store_record command without any pre-configured scope. |
stronghold:deny-get-store-record | Denies the get_store_record command without any pre-configured scope. |
stronghold:allow-initialize | Enables the initialize command without any pre-configured scope. |
stronghold:deny-initialize | Denies the initialize command without any pre-configured scope. |
stronghold:allow-load-client | Enables the load_client command without any pre-configured scope. |
stronghold:deny-load-client | Denies the load_client command without any pre-configured scope. |
stronghold:allow-remove-secret | Enables the remove_secret command without any pre-configured scope. |
stronghold:deny-remove-secret | Denies the remove_secret command without any pre-configured scope. |
stronghold:allow-remove-store-record | Enables the remove_store_record command without any pre-configured scope. |
stronghold:deny-remove-store-record | Denies the remove_store_record command without any pre-configured scope. |
stronghold:allow-save | Enables the save command without any pre-configured scope. |
stronghold:deny-save | Denies the save command without any pre-configured scope. |
stronghold:allow-save-secret | Enables the save_secret command without any pre-configured scope. |
stronghold:deny-save-secret | Denies the save_secret command without any pre-configured scope. |
stronghold:allow-save-store-record | Enables the save_store_record command without any pre-configured scope. |
stronghold:deny-save-store-record | Denies the save_store_record command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT