Ask Your Question
0

PE 2015.3 new auth.conf but where's the updated doc ?

asked 2015-12-15 03:50:07 -0500

FranzCC gravatar image

Hi, i noticed, after upgrading, that the auth.cong file changed.
So, i wanted to migrate my custom auth.conf but didn't find any updated documentation.
The location should be: https://docs.puppetlabs.com/puppet/4.3/reference/configfileauth.html,
but no new auth.conf directived but the old version explained.
Since the new version is in JSON format, can i use the old parameters and convert it to JSON ?
I have a huge load of regex so please tell me how to do it.

Rgds.
Franz

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-12-21 07:19:41 -0500

FranzCC gravatar image

updated 2015-12-21 07:20:30 -0500

Oh sh**, i deleted my explanation by mistake.

I hope, this will be sufficient:

{
        "allow" : "*",
        "match-request" : {
            "method" : "get",
            "path" : "^/file_(metadata|content)s?/hostpackages/.*",
            "query-params" : {},
            "type" : "regex"
        },
        "name" : "host packages",
        "sort-order" : 399
    }
edit flag offensive delete link more
1

answered 2015-12-19 08:26:52 -0500

camlow325 gravatar image

Unfortunately, I don't think we have any coverage of the new Puppet Server HOCON-based "auth.conf" file format in any of the proper Puppet Enterprise documentation yet. Sorry about that. I'll check with our docs team on when we might be able to do that.

In the meantime, you might check out the open source Puppet Server documentation on this feature here. The format that you listed for your custom rule looks good to me but I'd recommend that you use a sort-order value in the range from 1 to 399 as is mentioned here in order for your custom rule to take precedence over any rules managed automatically by Puppet Enterprise.

edit flag offensive delete link more

Comments

Hi,
thanks.
Will take this in consideration.
Rgds.
Franz

FranzCC gravatar imageFranzCC ( 2015-12-21 07:15:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-12-15 03:50:07 -0500

Seen: 157 times

Last updated: Dec 21 '15