Skip to content

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

Open
GabrielCartier wants to merge 1 commit into
developfrom
fix/registry-login-mkdir
Open

fix(cli): create config dir before writing registry token#925
GabrielCartier wants to merge 1 commit 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

Copy link
Copy Markdown

🔍 Vulnerabilities of ghcr.io/streamingfast/substreams:3681b38

📦 Image Reference ghcr.io/streamingfast/substreams:3681b38
digestsha256:b27e905707c988cc71079a79e68d0437a9b98d83929da982aa4dd12ec9e32dec
vulnerabilitiescritical: 0high: 0medium: 0low: 0
platformlinux/amd64
size124 MB
packages380
📦 Base Image ubuntu:24.04
also known as
  • c1ca75be10a22ea09ff0b7bbe8b82ee03553a4f9b795030ee2ec921e42418fc8
  • noble
  • noble-20260810
digestsha256:1e0a86e57d247923571b75e0aaf48a1449cf8c543d51fb3e07a4a7d7bfa79316
vulnerabilitiescritical: 0high: 0medium: 25low: 11

Sign up for freeto 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.

2 participants

@GabrielCartier@dfuse-bot