Uh oh!
There was an error while loading. Please reload this page.
fix(cli): create config dir before writing registry token - #925
Open
GabrielCartier wants to merge 1 commit into
Open
fix(cli): create config dir before writing registry token#925GabrielCartier wants to merge 1 commit into
GabrielCartier wants to merge 1 commit into
Conversation
`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
commented
Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
substreams registry loginfailed with a "no such file or directory" error when~/.config/substreamsdidn'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.