Skip to content

Custom prefix for coder config-ssh #6501

Closed

Description

@bpmct

Right now, all SSH entries have the hostname coder.<workspace>. There can be two problems with this:

  1. Conflicts with hosts from Coder v1
  2. No way to "white label" it based for an internal platform/company name (e.g. ssh devenvs.<workspace>

Support a deployment-wide flag to set a default prefix (enterprise), and perhaps a local flag to override the prefix (OSS).

Activity

  1. added
    enterpriseEnterprise-license / premium functionality
    on Mar 7, 2023
  2. self-assigned this
    on Mar 9, 2023
  3. Emyrk commented on Mar 9, 2023

    @Emyrk
    Member

    @bpmct do you think we should support anything more than a prefix? Such as allowing it to be a suffix, or nothing at all:

    # User inputs can be some sort of "string replace" template
    devenvs.<workspace_name>
    # Can be put anywhere
    <workspace_name>.ssh
    # Is there any reason to make them include their username?
    <user_name>.<workspace_name>
    

    To be clear, I'll implement it as a standard prefix right now. Just spit-balling ideas.

  4. bpmct commented on Mar 13, 2023

    @bpmct
    MemberAuthor

    I'm totally open to supporting more formats if it's trivial! A note: the format should be defined deployment-wide (related #6500), but I can also see use cases for changing it per-client too 🤷🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enterpriseEnterprise-license / premium functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions