Skip to content

Support conditional user creation #600

Closed

Description

@cgwalters

Splitting this out of discussion here:

coreos/afterburn#90 (comment)

Today CL precreates a core user. Not all distributions will want to do that; I personally prefer the cloud-init semantic where it has a default user that's created dynamically if and only if you do not specify a different username.

I suspect for most people who are defining a different user with Ignition than core for CL, the core user is unused. And it could be a source of conflict if the machine is joined to a LDAP domain or whatever that happens to have a core user.

Activity

  1. ajeddeloh commented on Jul 23, 2018

    @ajeddeloh
    Contributor

    I don't really like the idea of conditional anything in Ignition; it's a declarative spec. We're not perfect at it, but it's what we aim for. What we can do is something akin to (and simpler than) the partition reuse semantics. This would enable a config to say core should not exist (and whether it should be deleted or Ignition should fail if it does) and that another user should exist.

    Thoughts?

  2. bgilbert commented on Jul 23, 2018

    @bgilbert
    Contributor

    My understanding of the proposal is that Ignition would create the core user only if no other users are specified in the config. So the config would still be self-contained, just weirdly implicit.

    But yeah, adding the ability to delete users does seem like a nice solution.

  3. ajeddeloh commented on Mar 29, 2019

    @ajeddeloh
    Contributor

    Given how we changed fcos to create core via the Ignition base config, Is this now part of #738? @cgwalters

  4. cgwalters commented on Apr 3, 2019

    @cgwalters
    MemberAuthor

    Yeah, fine to close this in favor of #738 from my PoV.

  5. added a commit that references this issue on Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions