AT> On Fri, Sep 30, 2016 at 8:17 AM, Nick Anderson <
nick.a...@cfengine.com> wrote:
>> Ted Zlatanov <
t...@lifelogs.com> writes:
>> > I know there's a cf-serverd "shortcut" option to do exactly this on the
>> > server side. Was it not useful?
>>
>> For the "shortcut" feature to be useful the server must map the client
>> requests to a local directory. I believe Mikes current implementation is
>> completely agent side decisions. I think that shortcut for each policy
>> channel could be implemented, but that would add additional complexity
>> that might not be necessary right now.
On Fri, 30 Sep 2016 08:26:41 -0700 Aleksey Tsalolikhin <
ale...@verticalsysadmin.com> wrote:
AT> Exactly, we did not want to have to update CFEngine policy code (e.g., add
AT> or change shortcuts) whenever we wanted to add hosts, or re-assign hosts
AT> from one channel to another (e.g., to try out a new feature).
AT> We did consider the shortcuts feature when you offered it, thanks, Ted. :)
I've seen policy distribution either fully decentralized (Git checkouts)
or fully centralized (directories on a central server). So without
talking about the "shortcut" feature, I wanted to understand policy
channels better. I saw Mike's pull request but only looked at it as
code, not to see the bigger picture. I'm also a bit confused because I
remember there was some discussion of policy channels on the issue
tracker:
https://tracker.mender.io/browse/CFE-2069
https://tracker.mender.io/browse/CFE-2095
So first of all, I hope this work ends up in a place where Community and
Enterprise users can benefit from it. I think it's valuable.
To my mind, the benefits of fully decentralized are: independent agents;
easy switching to different policies, especially for testing; fewer
points of failure; local validation of policy (especially useful when
clients can run different CFEngine versions and platforms). The benefits
of fully centralized are a consistent security model; central policy
validation before it's pushed out; and better knowledge of the hosts.
The model Mike described seems halfway between those two. Can you
explain how it rates or prioritizes those features? For instance, when
and where is policy validated?
Thanks
Ted