And the master section is deprecated, server is th...
# puppet
b
And the master section is deprecated, server is the successor
n
thanks @bastelfreak, I didn’t change anything, just upgraded from Puppet 7 to Puppet 8. I don’t think the script will be triggered.
Copy code
# puppet config print --section server autosign
/usr/local/bin/autosign-psk
I mean this script:
Copy code
/usr/local/bin/autosign-psk
I add this at the end of the `/etc/puppetlabs/puppetserver/conf.d/auth.conf`:
Copy code
,
        #### Below is custom code
        {   
            name: "Allow nodes to delete their own certificates",
            match-request: {
                path: "^/puppet-ca/v1/certificate(_status|_request)?/([^/]+)$",
                type: regex,
                method: [delete]
            },
            allow: ["puppetserver.local,"$2"],
            sort-order: 500
        }
b
You didn't tell us yet which error you get
n
I dont get any error thats my problem, if I get an error so I can start there... but the Agent works fine, and I dont see any errors in logs.
Puppet dont run/trigger the
/usr/local/bin/autosign-psk
I thinks so...
b
Did you check the puppetserver.log?
Script errors will be logged there
n
yes I use tail also and grep -i error I dont find any errors. and for the node looks good:
Copy code
2025-12-01T11:46:37.852+01:00 INFO  [qtp1022638559-11451] [puppetserver] Puppet Computing checksum on string
2025-12-01T11:46:37.974+01:00 INFO  [qtp1022638559-12956] [puppetserver] Puppet Compiled catalog for mynode in environment production in 0.13 seconds
2025-12-01T11:46:38.036+01:00 INFO  [qtp1022638559-1569] [puppetserver] Puppet Computing checksum on string
b
So it works fine? The node has a valid certificate
Otherwise the server wouldn't compile a catalog
n
Yes until 20.12.2025 it’s valid, so I renew them automatically but now I have this problem…
30 days before end I renew them
b
Which problem?
The script is only executed for new CSRs
Your agent didn't submit a new CSR
n
yes I found the error 😞 one of my team change the code and the error was about unknown variable, so the use $expiredate without define it before.... thank you so much @bastelfreak