keybase / keybase/client

Hardcoded Unix UID in config file

Open
#24,603 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

After migrating home user data to a new installation, I saw that kbfs won't start because there are hardcoded paths in the config file (Linux) which refer to the numeric UID of the user. It is best practice that programs do not rely on that UID being static (see migration issue). Instead, the paths should be determined at run-time.

Specifically, in `$HOME/.config/keybase/config.json`, `"mountdir": "/run/user/1000/keybase/kbfs"` should be something like `"mountdir": "/run/user/$UID/keybase/kbfs"`.

Keep on creating great software!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the Linux client writes `$HOME/.config/keybase/config.json` and derives the `mountdir` value. Reproduce the migrated-user case described in the issue and verify that the resulting path is resolved for the current user rather than containing a hardcoded numeric UID.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.