Architecture #8985
closedAdd node key in managed_nodes system variable
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.
Updated by François ARMAND about 8 years ago
- Status changed from New to In progress
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
Updated by François ARMAND about 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|e53fb086f3fd9775e1817a2a360f7892e7b62b46.
Updated by Benoît PECCATTE about 8 years ago
- Target version changed from 4.0.0~rc2 to 318
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 318 to 4.0.0~rc2
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 4.0.0~rc2 to 4.0.0~rc1
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.