• Joined on 2021-11-20
nico commented on pull request ungleich-public/cdist#327 2022-04-11 08:32:26 +00:00
bug: apt-ppa-noninteractive

cc @steven who is maintaining Ubuntu clusters.

nico commented on pull request ungleich-public/cdist#327 2022-04-11 08:32:13 +00:00
bug: apt-ppa-noninteractive

The existing PR does not look bad to me, don't have an ubuntu at hand right now. I guess if it works with Ubuntu 18.04, then we can merge it - as anything older is ancient anyway.

nico commented on pull request ungleich-public/cdist#331 2022-04-10 21:14:14 +00:00
Make file attribute changes more atomic

@matze, I think there is one important point to highlight: the attack for predictable names only applies to directories that are user writable. Typically mktemp and friends have to deal with…

nico commented on pull request ungleich-public/cdist#331 2022-04-10 12:15:36 +00:00
Make file attribute changes more atomic

LGTM - please go ahead. I'd suggest we make a major release out of this one, as changes on the file type affect basically everyone. So if we screwed something up, we have at least an indicator for…

nico commented on pull request ungleich-public/cdist#331 2022-04-07 07:58:49 +00:00
Make file attribute changes more atomic

mktemp works differently. What we are doing now is similar to mktemp -u.

Again, whether this is an actual problem, is a different question.

The typical issue mktemp is trying to solve:

*…

nico commented on pull request ungleich-public/cdist#331 2022-04-07 07:35:55 +00:00
Make file attribute changes more atomic

Guys,

I think we are having a security problem here.

Let's say we __file /some/dir/foo and a user has write access to /some/dir and the user can run ps on the target system.

Thus the…

nico commented on pull request ungleich-public/cdist#331 2022-04-07 07:30:02 +00:00
Make file attribute changes more atomic

Just wondering, are we adding a behaviour change here? I.e. before we unconditionally deleted the file/directory/socket/whatever. Now we fail if it exists?

nico commented on pull request ungleich-public/cdist#331 2022-04-06 13:05:02 +00:00
Make file attribute changes more atomic

You are right, we did not really consider the IPC between code-local and code-remote on the remote side.

I tested using a copy of the __file type:

destination="/$__object_id"
source="…
nico commented on pull request ungleich-public/cdist#331 2022-04-06 09:43:14 +00:00
Make file attribute changes more atomic

If I am not mistaken and the cdist-reference so far agrees with be, the $__object variable is available for code:

__object
    Directory that contains the current object.

   …
nico commented on pull request ungleich-public/cdist#331 2022-04-06 05:34:05 +00:00
Make file attribute changes more atomic

Hey Mark,

I was thinking in a similar direction, that the mv should just be on "on the other side".

One problem that we have as a base is, where to temporarily copy the file over and do we…

nico commented on pull request ungleich-public/cdist#331 2022-04-04 13:42:59 +00:00
Make file attribute changes more atomic

Thanks a lot for the insight, @mark! And I get the problem and rephrasing it in my own words for a later reference:

  • One object is modifying the behaviour of sshd in code-local
  • cdist fails…
nico commented on pull request ungleich-public/cdist#331 2022-04-03 10:19:02 +00:00
Make file attribute changes more atomic

Hey @mark! Thanks for the PR.

I am not fully getting the impact just yet, but moving the whole logic into __gencode_local as a starter "feels" wrong (doesn't mean your solution is right).

nico pushed to master at ungleich-public/ungleich-staticcms 2022-04-02 06:10:48 +00:00
c17cedae6a ++first of april
nico pushed to master at ungleich-public/ungleich-tools 2022-04-01 13:26:34 +00:00
dc1f42ab02 Run apk update before adding git and co.
nico pushed to master at ungleich-public/ungleich-staticcms 2022-04-01 08:09:13 +00:00
1118973221 Minus caps
nico pushed to master at ungleich-public/ungleich-staticcms 2022-04-01 07:59:54 +00:00
6abb3599d0 +removal of kubernetes
nico pushed to master at ungleich-public/ungleich-staticcms 2022-04-01 07:47:06 +00:00
a145180e12 infra update
nico pushed to master at ungleich-public/ungleich-staticcms 2022-03-31 20:12:45 +00:00
4f3cf508b3 ++mini h4g update
nico pushed to master at ungleich-public/ungleich-staticcms 2022-03-31 20:10:01 +00:00
4ee568370b k8s / dns: update with github link
nico pushed to master at ungleich-public/ungleich-k8s 2022-03-29 16:28:36 +00:00
4f19a2a6fb finish the helm yaml tree test
531e2c8c51 Add a test helm chart for tree inclusion
Compare 2 commits »