Project

General

Profile

Actions

Bug #15344

closed

API for node key management

Added by François ARMAND over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

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 2 (0 open2 closed)

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

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #14871: Rudder command to reset agent key/certificate RejectedBenoît PECCATTEActions
Actions

Also available in: Atom PDF