Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixops
base: 322e85fe268e
Choose a base ref
...
head repository: NixOS/nixops
compare: ae4fcb56e5aa
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 2, 2016

  1. Delay chown of keys until user/group both exist

    Instead of chowning keys to their user/group every time they are sent,
    only attempt the chown during send-keys if the user and group both
    exist, and again do a chown during activation after the users and groups
    have been created.
    
    One result is that if a key and its user and/or group are to be created
    in the same `nixops deploy`, the key will first be uploaded and owned
    by root:root, then chmod'd, then late in activation the key will be
    chowned to the newly created user/group. This includes a node's first
    deploy, when it has neither keys nor users/groups.
    
    Another result is that between send-keys and the next deploy (often,
    but not necessarily, in the same `nixops deploy`), a key may
    have its permissions set as configured, but _not_ be owned by the
    configured user/group (instead root:root), which is presumed safe.
    
    fixes #362, fixes #232
    ryanartecona committed Oct 2, 2016
    Configuration menu
    Copy the full SHA
    68e7664 View commit details
    Browse the repository at this point in the history
  2. Add service per key to track key dependencies

    If a user service wants to block until `deployment.keys.mysecret` exists
    to start up, it can now do so by adding `"mysecret-key.service"` to
    its `requires` and `after` lists.
    ryanartecona committed Oct 2, 2016
    Configuration menu
    Copy the full SHA
    5308d26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d7081e5 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2016

  1. Merge pull request #400 from ryanartecona/user-friendly-keys

    Allow new keys & users/groups to be created in the same deploy
    domenkozar committed Dec 13, 2016
    Configuration menu
    Copy the full SHA
    ae4fcb5 View commit details
    Browse the repository at this point in the history