Project

General

Profile

Actions

Architecture #8985

closed

Add node key in managed_nodes system variable

Added by Benoît PECCATTE about 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

The variable would be MANAGED_NODES_KEY

Its content should be a list of hash in the form "MD5=xxx" where the hash algorithm is :
parse the key then
EVP_DigestInit(&context, md); # extract modulus in big endian binary form
actlen = BN_bn2bin(key->n, buffer);
EVP_DigestUpdate(&context, buffer, actlen); # extract exponent in big endian binary form
actlen = BN_bn2bin(key->e, buffer);
EVP_DigestUpdate(&context, buffer, actlen);
EVP_DigestFinal(&context, digest, &md_len);

To check a sum, just take a file in /var/rudder/cfengine-community/ppkeys and its hash must match the one in its name.

If a node's key is unknown, the hash should be replaced by an empty value.


Subtasks 2 (0 open2 closed)

Bug #9252: System variable "MANAGED_NODES_KEY" is emptyReleasedFrançois ARMAND2016-10-07Actions
Bug #9260: Broken test after parent ticket #9252ReleasedFrançois ARMAND2016-10-07Actions
Actions #1

Updated by François ARMAND about 8 years ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND about 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/1226
Actions #3

Updated by François ARMAND about 8 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #4

Updated by Benoît PECCATTE about 8 years ago

  • Target version changed from 4.0.0~rc2 to 318
Actions #5

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 318 to 4.0.0~rc2
Actions #6

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 4.0.0~rc2 to 4.0.0~rc1
Actions #7

Updated by Alexis Mousset about 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.0 which was released the 10th November 2016.

Actions

Also available in: Atom PDF