github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/root/keyring-rotate.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: operator root keyring rotate'
     4  description: |
     5    Rotate encryption key
     6  ---
     7  
     8  # Command: operator root keyring rotate
     9  
    10  The `operator root keyring rotate` command generates a new encryption key for
    11  all future variables.
    12  
    13  If ACLs are enabled, this command requires a management token.
    14  
    15  ## Usage
    16  
    17  ```plaintext
    18  nomad operator root keyring rotate [options]
    19  ```
    20  
    21  ## General Options
    22  
    23  @include 'general_options.mdx'
    24  
    25  ## Rotate Options
    26  
    27  - `-full`: Decrypt all existing variables and re-encrypt with the new key. This
    28      command will immediately return and the re-encryption process will run
    29      asynchronously on the leader.
    30  
    31  - `-verbose`: Enable verbose output
    32  
    33  ## Examples
    34  
    35  ```shell-session
    36  $ nomad operator root keyring rotate
    37  Key       State   Create Time
    38  f19f6029  active  2022-07-11T19:14:36Z
    39  
    40  $ nomad operator root keyring rotate -verbose
    41  Key                                   State   Create Time
    42  53186ac1-9002-c4b6-216d-bb19fd37a791  active  2022-07-11T19:14:47Z
    43  ```