Skip to content

Allow external provisioner daemons to register with Coder #44

Closed

Description

@kylecarbs

Any provisionerd instance should be able to connect with authentication.

Implementation notes

Work items:

  • Create an endpoint that registers provisioners and generates a credential
  • Create a CLI command that hits this endpoint
  • Create a CLI command that starts a standalone provisionerd instance, which accepts the credential

User workflow for creating a new provisionerd instance will be:

  1. run the cli command and either output the cred to screen or a file
  2. copy the file or screen output to either the machine that runs provisionerd, or the infrastructure system that creates that machine
  3. start provisionerd using the credential

You could also imagine step 1-2 being fully automated by the infrastructure system.


Activity

  1. added this to the MVP milestone on Jan 21, 2022
  2. stale commented on Feb 4, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

  3. added
    staleThis issue is like stale bread.
    on Feb 4, 2022
  4. removed
    staleThis issue is like stale bread.
    on Feb 9, 2022
  5. self-assigned this
    on Feb 9, 2022
  6. misskniss commented on Mar 28, 2022

    @misskniss

    @kylecarbs can this be closed or does it still need to be done?

  7. kylecarbs commented on Mar 28, 2022

    @kylecarbs
    MemberAuthor

    Still needs to be done.

  8. spikecurtis commented on May 6, 2022

    @spikecurtis
    Collaborator

    To summarize a conversation I just had with @kylecarbs for beta the plan will be:

    1. Create an endpoint that registers provisioners and generates a credential
    2. Create a CLI command that hits this endpoint
    3. Provisionerd will load this credential from disk or environment variable on startup

    User workflow for creating a new provisionerd instance will be:

    1. run the cli command and either output the cred to screen or a file
    2. copy the file or screen output to either the machine that runs provisionerd, or the infrastructure system that creates that machine
    3. start provisionerd using the credential

    You could also imagine step 1-2 being fully automated by the infrastructure system.

    Longer term we should consider integrations with e.g. Vault, SPIFFE/SPIRE, public cloud credential infrastructure.

  9. 22 remaining items

  10. misskniss commented on Jul 29, 2022

    @misskniss

    Enqueued this epic for support of the upcoming roadmap.

  11. bpmct commented on Aug 1, 2022

    @bpmct
    Member

    @dwahler could you add a bit of context in the issue description on why this matters and how this will be surfaced to customers (doesn't have to be precise API design at this point, but kind of where an admin would declare additional provisioners on their deployment)

    For example, something like

    An admin can use coder server environment variables to create additional provisioners and authenticate via ...

    Edit: thanks!

  12. spikecurtis commented on Aug 1, 2022

    @spikecurtis
    Collaborator

    These need to be started independently with a new command like coder provisionerd or similar

  13. changed the title [-]Provisionerd AuthN [/-] [+]Allow external provisioner daemons to register with Coder[/+] on Aug 1, 2022
  14. misskniss commented on Aug 2, 2022

    @misskniss

    @spikecurtis will you and @dwahler sync on this. I will assign it to him for next sprint but it needs some discussion before the sprint starts.

  15. added this to the EE milestone on Aug 22, 2022
  16. self-assigned this
    on Oct 12, 2022
  17. github-actions commented on Dec 12, 2022

    @github-actions
    Contributor

    This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

  18. removed
    staleThis issue is like stale bread.
    on Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions