Skip to content

Bug: Environment variable names mismatch between documentation/code and CLI-generated config #33

@dercar2

Description

@dercar2

Bug: Environment variable names mismatch between documentation/code and CLI-generated config

Version: 3.4.0

Problem:
config-loader.js looks for environment variables with names:

  • SSH_SERVER_{NAME}_KEYPATH (no underscore between DEFAULT and DIR)
  • SSH_SERVER_{NAME}_DEFAULT_DIR

But CLI and documentation suggest different names:

  • SSH_SERVER_{NAME}_KEY_PATH (with underscore)
  • SSH_SERVER_{NAME}_DEFAULT_DIR (correct)

Code location: src/config-loader.js lines 139-142

keyPath: env[`SSH_SERVER_${match[1]}_KEYPATH`],
defaultDir: env[`SSH_SERVER_${match[1]}_DEFAULT_DIR`],

Suggested fix: Either:

  1. Update code to accept both variants (backward compatible), OR
  2. Update CLI to generate correct names, OR
  3. Update documentation to clearly state the correct variable names

Workaround: Manually edit .env to use KEYPATH instead of KEY_PATH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions