Jira (PUP-8971) Agent Functions - Add encrypt/decrypt functions

15 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Jun 28, 2018, 1:04:04 PM6/28/18
to puppe...@googlegroups.com
Henrik Lindberg created an issue
 
Puppet / New Feature PUP-8971
Agent Functions - Add encrypt/decrypt functions
Issue Type: New Feature New Feature
Assignee: Henrik Lindberg
Created: 2018/06/28 10:03 AM
Fix Versions: PUP 5.5.z
Priority: Normal Normal
Reporter: Henrik Lindberg

For users that do not use a separate secrets server (yet) but want to improve the security of their puppet installation it is of value to provide the ability to encrypt data so it can only be read by the node the catalog is compiled for. The pattern is to call encrypt when compiling a catalog, and to call decrypt using a Deferred.

Example usage:

some_class(Sensitive $password) {
  some_resource { 'example':
    password => Deferred('decrypt', encrypt($password))
  }
}

It may be of value to let encrypt always return a Sensitive to relieve the user of having to always wrap the result (if the source value is not already Sensitive).

The encrypt should encrypt based on the certificate of the node for which the compilation is running. The decrypt is always for the localhost that is applying the catalog. Thus, it is not possible to decrypt a value that is encrypted for the agent node while compiling. (If that is a valid use case, the decrypt needs to take an argument indicating if it is for the node or for localhost.

The two functions should work on any rich data type to enable sending encrypted rich data (hash, array, a sensitive value, etc).

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Jul 24, 2018, 5:47:02 AM7/24/18
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Tony Vu
Change By: Henrik Lindberg
Assignee: Henrik Lindberg Tony Vu

Ben Ford (JIRA)

unread,
Jan 18, 2019, 6:25:02 PM1/18/19
to puppe...@googlegroups.com
Ben Ford commented on New Feature PUP-8971
 
Re: Agent Functions - Add encrypt/decrypt functions

When this is released, I'd like to know so that I can deprecate node_encrypt in favor of core functionality.

Ben Ford (JIRA)

unread,
Jan 18, 2019, 6:27:02 PM1/18/19
to puppe...@googlegroups.com
Ben Ford commented on New Feature PUP-8971

Also, by wrapping the functions into a third function, you can make the use even simpler.

some_class(Sensitive $password) {
  some_resource { 'example':
    password => $password.secret
  }
}

Henrik Lindberg (JIRA)

unread,
Jul 16, 2019, 12:12:03 PM7/16/19
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Change By: Henrik Lindberg
Fix Version/s: PUP 5.5.z

Josh Cooper (Jira)

unread,
Jun 12, 2020, 4:48:03 PM6/12/20
to puppe...@googlegroups.com
Josh Cooper commented on New Feature PUP-8971
 
Re: Agent Functions - Add encrypt/decrypt functions

The PR needed more work before it could be merged and was closed. I'm changing this ticket status to reflect reality.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

zendesk.jira (Jira)

unread,
Oct 20, 2020, 12:38:03 PM10/20/20
to puppe...@googlegroups.com
zendesk.jira updated an issue
 
Change By: zendesk.jira
Labels: jira_escalated

Elaine McCloskey (Jira)

unread,
Oct 20, 2020, 12:40:03 PM10/20/20
to puppe...@googlegroups.com

Ben Ford (Jira)

unread,
Oct 20, 2020, 12:43:03 PM10/20/20
to puppe...@googlegroups.com
Ben Ford updated an issue
 
Change By: Ben Ford
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 41568

Josh Cooper (Jira)

unread,
Jun 14, 2021, 3:56:01 PM6/14/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-9827
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Nov 30, 2021, 4:22:01 PM11/30/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-11372

Josh Cooper (Jira)

unread,
Dec 1, 2021, 4:59:02 PM12/1/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages