Make CA CLI check that server is offline before generating offline certs (SERVER-2334)

[SERVER-2350] Register the CA service with the status service Created: 2018/10/09  Updated: 2018/10/24  Resolved: 2018/10/24

Status: Closed
Project: Puppet Server
Component/s: None
Affects Version/s: None
Fix Version/s: SERVER 5.3.6, SERVER 6.0.2

Type: Sub-task Priority: Normal
Reporter: Maggie Dreyer Assignee: Maggie Dreyer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks SERVER-2351 Query status endpoint for CA status b... Resolved
Template:
Acceptance Criteria:
  • Puppet Server's CA service is registered with the status service
  • The disabled CA service is not registered with the status service
  • The proxy CA service is registered with the status service under its own ID
Team: Server
Release Notes: New Feature
Release Notes Summary: The CA service and the CA proxy service (in PE) now have their own entries in the status endpoint output and can be queried as "ca" and "ca-proxy" respectively.
QA Risk Assessment: Needs Assessment

 Description   

Puppet Server has a status endpoint that reports the statuses of all its various services. Currently the CA service is not registered here, but since now we are interested in checking its status for the purpose of making sure it is NOT running, we should register it and use that information to gate the ability to generate offline certs with the CA CLI.

The disabled CA service should not be registered, and the proxy CA service should be registered separate from the main CA service.



 Comments   
Comment by Maggie Dreyer [ 2018/10/09 ]

Example of registering a service: https://github.com/puppetlabs/puppetserver/blob/master/src/clj/puppetlabs/services/master/master_service.clj#L171-L178

Generated at Fri Jul 19 08:14:27 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.