You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 62918df
Browse filesBrowse the repository at this point in the historyBrowse files
app: write zipped archive 0600, flush before deleting (#4833)
* app: write zipped archive 0600, flush before deleting
`charon create cluster --zipped` and `charon dkg --zipped` created the archive with os.Create (usually world-readable 0644), although it holds validator key shares and the ENR private key. It is now 0600, including an archive left from an earlier run. BundleOutput also closed the tar and gzip writers only in defers, after deleting the originals and ignoring their errors, so a failed flush (e.g. a full disk) could lose key shares. The archive is now flushed, synced and closed before anything is deleted.
category: bug
ticket: none
* app: write the zipped archive to a temporary file and rename it
BundleOutput now writes to a 0600 temporary file in the target directory
and renames it into place once it is flushed, synced and closed, so the
archive name never holds a partial archive. A failed run removes the
temporary file and leaves the originals. An archive left by an earlier
run is replaced rather than archived into the new one.
* app: fix zipped archive in relative dirs, stricter tests
* testutil: move archive test helpers out of app
---------
Co-authored-by: kalo <24719519+KaloyanTanev@users.noreply.github.com>
Copy file name to clipboardExpand all lines: KNOWN_ISSUES.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ If you believe you have found a new, distinct issue, report it to the Obol Secur
16
16
* **Legacy lock formats are retained for compatibility.** Charon must keep loading the existing cluster locks of running clusters. Some lock formats from before v1.7 carry fewer signatures than current ones.
17
17
* **`--no-verify` is out of scope.** This flag disables cluster definition and lock verification. Findings that depend on an operator running with it are not eligible.
18
18
* **Operators control their own node and its inputs.** Operators choose their own beacon node, validator client, configuration, and cluster lock file. Findings that depend on an operator running a lock, configuration, or binary they did not produce or verify themselves are not eligible.
19
-
* **Access to the operator's host is out of scope.** Findings that require reading files, archives, logs, or command output on the operator's machine assume the host is already compromised and are not eligible. Examples include the file permissions of cluster or DKG archives created with `--zipped`, and secrets visible in local logs or test output. Since v1.11.3, Charon redacts credentials and API keys in configured endpoint URLs before logging them.
19
+
* **Access to the operator's host is out of scope.** Findings that require reading files, archives, logs, or command output on the operator's machine assume the host is already compromised and are not eligible. Examples include secrets visible in local logs or test output. Since v2.0.0, cluster and DKG archives created with `--zipped` are readable only by their owner. Since v1.11.3, Charon redacts credentials and API keys in configured endpoint URLs before logging them.
0 commit comments