Project

General

Profile

Bug #15344

API for node key management

Added by François ARMAND 4 months ago. Updated 16 days ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

The API endpoints is POST .../nodes/uuid with properties agentKey a json with the following fields:

  • value: the PEM string of the key/certificate. The type is automatically infered from the PEM (ie either certificate or publicKey)
  • status: verified status of the key, by default the key is certified if the key is given. Accepted value = undefined, certified

The API should also accept non JSON POST like that:

  • POST .../nodes/uuid -d "agentKey.status=reset" to reset the certificate status,
  • POST .../nodes/uuid/ -d "agentKey.value=---- BEGIN CERTIFICATE ...." to set a new key.

And if you want to do fancy things: POST .../nodes/uuid -d '{ "agentKey": { "status":"undefined", "value":"--- BEGIN CERTIFICATE ..." }


Subtasks

Bug #15351: Documentation for agent key managementReleasedAlexis MOUSSETActions
Bug #16000: API version 12 is noted for rudder 5.1ReleasedAlexis MOUSSETActions

Related issues

Related to Rudder - Bug #14871: Rudder command to reset agent key/certificate RejectedActions

Associated revisions

Revision 24a2123a (diff)
Added by François ARMAND 4 months ago

Fixes #15344: API for node key management

History

#1

Updated by François ARMAND 4 months ago

  • Description updated (diff)
#3

Updated by François ARMAND 4 months ago

  • Status changed from New to In progress
#4

Updated by Alexis MOUSSET 4 months ago

  • Related to Bug #14871: Rudder command to reset agent key/certificate added
#5

Updated by François ARMAND 4 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/2349
#6

Updated by François ARMAND 4 months ago

  • Status changed from Pending technical review to Pending release
#7

Updated by Vincent MEMBRÉ 16 days ago

This bug has been fixed in Rudder 6.0.0~beta1 which was released today.

#8

Updated by Vincent MEMBRÉ 16 days ago

  • Status changed from Pending release to Released

Also available in: Atom PDF