---
title: "oz0 server secrets-key reseal-older"
description: "Data subjects' keys and tenants' payload keys are sealed by the edges with the secrets key, which management does not hold."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/server/secrets-key/reseal-older"
---
# oz0 server secrets-key reseal-older

> Data subjects' keys and tenants' payload keys are sealed by the edges with the secrets key, which management does not hold.

For: Operators and developers looking up a command.

Data subjects' keys and tenants' payload keys are sealed by the edges with the secrets key, which management does not hold. An edge that was there before the edges sealed every key re-seals the older ones (sealed with the master key) for a day from its first start, and then refuses every key no edge sealed.

A new edge, or one whose data directory was lost, refuses them from its start, whatever the database says, so that a key placed by someone with the database is never taken. Run this on an edge's machine, with its data directory, when the keys still need it: every edge lost its data directory, or the cluster's keys were sealed before it had edges apart from management.

The edge reads the request at its next start, removes it, and re-seals such keys until a round finds none left, for a day at most; meanwhile it opens keys sealed with the master key, which management holds too. Run it on one edge, and only while management is one you trust.

## Usage

```bash
oz0 server secrets-key reseal-older [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --data-dir
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        ~/.local/share/orchestrator-zero
      </code>
    </td>
    
    <td>
      the edge's data directory, as given to oz0 server start
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
