| title | How to use the 'blobfuse2 secure get' command to display the value of a parameter from an encrypted BlobFuse2 configuration file |
|---|---|
| titleSuffix | Azure Storage |
| description | Learn how to use the 'blobfuse2 secure get' command to display the value of a parameter from an encrypted BlobFuse2 configuration file |
| author | akashdubey-ms |
| ms.service | azure-blob-storage |
| ms.topic | how-to |
| ms.date | 12/02/2022 |
| ms.author | akashdubey |
How to use the BlobFuse2 secure get command to display the value of a parameter from an encrypted BlobFuse2 configuration file
Use the blobfuse2 secure get command to display the value of a specified parameter from an encrypted blobfuse2 configuration file.
blobfuse2 secure get --[flag-name]=[flag-value]
Flags that apply to blobfuse2 secure get are inherited from the grandparent command, blobfuse2, or apply only to the blobfuse2 secure subcommands.
The following flags are inherited from grandparent command blobfuse2:
| Flag | Short version | Value type | Default value | Description |
|---|---|---|---|---|
| disable-version-check | boolean | false | Enables or disables automatic version checking of the BlobFuse2 binaries | |
| help | -h | n/a | Help info for the blobfuse2 command and subcommands |
The following flags are inherited from parent command blobfuse2 secure:
| Flag | Value type | Default value | Description |
|---|---|---|---|
| config-file | string | ./config.yaml | The path of the encrypted configuration file |
| output-file | string | The path and name for the output file | |
| passphrase | string | The key to be used for encryption or decryption Can also be specified by environment variable BLOBFUSE2_SECURE_CONFIG_PASSPHRASE. The key must be 16 (AES-128), 24 (AES-192), or 32 (AES-256) bytes in length. |
The following flags apply only to command blobfuse2 secure get command:
| Flag | Short version |
Value type |
Default value |
Description |
|---|---|---|---|---|
| key | string | Configuration key (parameter) to be searched in an encrypted configuration file |
Note
The following examples assume you have already created an encrypted configuration file in the current directory.
Get the value of parameter logging.log_level from an encrypted BlobFuse2 configuration file using a passphrase:
blobfuse2 secure get --config-file=./config.yaml --passphrase=PASSPHRASESAMPLE --key=logging.log_level