Skip to content

fix(cli): create config dir before writing registry token - #925

Merged
GabrielCartier merged 4 commits into
developfrom
fix/registry-login-mkdir
Sep 11, 2026
Merged

GabrielCartier merged 4 commits into
developfrom
fix/registry-login-mkdir

Conversation

@GabrielCartier

Copy link
Copy Markdown
Contributor

substreams registry login failed with a "no such file or directory" error when ~/.config/substreams didn't exist yet, since the token write never created the parent directory. The write now creates the directory first, writes the token file with mode 0600 instead of 0644, and tightens permissions on an existing file during re-login. Adds a couple of unit tests and a changelog entry.

`substreams registry login` failed with "no such file or directory"
on machines where ~/.config/substreams did not exist yet. Token file
is now 0600 since it holds a secret; existing 0644 files get
tightened on re-login because WriteFile only applies mode on create.
@dfuse-bot

dfuse-bot commented Sep 7, 2026

Copy link
Copy Markdown

🔍 Vulnerabilities of ghcr.io/streamingfast/substreams:195b645

📦 Image Reference ghcr.io/streamingfast/substreams:195b645
digestsha256:fa37e34b7be00bf5e6929bf5a2c0c1ede004a7c6e3f9abc73cb227e2b32b9e99
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0
platformlinux/amd64
size121 MB
packages380
📦 Base Image ubuntu:24.04
also known as
  • noble
  • noble-20260905
digestsha256:a61567bd31828687156d735ea8eb01ba4e37636e225dd6a48ba94136a70d9d61
vulnerabilitiescritical: 0 high: 0 medium: 12 low: 2

@sduchesneau

Copy link
Copy Markdown
Contributor

just go_bump google.golang.org/grpc@v1.83.1 before you can merge this @GabrielCartier

@GabrielCartier
GabrielCartier merged commit 1b961c9 into develop Sep 11, 2026
8 checks passed
@GabrielCartier
GabrielCartier deleted the fix/registry-login-mkdir branch September 11, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants