Actions
Bug #12496
closed"rudder-keys change-key" does not check for key file existence
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
0
Name check:
Fix check:
Regression:
Description
The usage says:
/opt/rudder/bin/rudder-keys change-key <node_uuid> <public_key_file>
However, the script only checks if the <public key file>
is not zero (-z), but not for the existence.
Additionally, it just forwards the user-supplied value publicKey:< file://${PUBKEY}
, which requires a full path otherwise it gives you a not-too-much saying error like:
ldapmodify: invalid format (line 4) entry: "nodeId=f809f201-6980-4467-ae70-7104a1253286,ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration"
If would be advisable to put a -s
test and a readlink -f
on the file-parameter.
Updated by Benoît PECCATTE over 6 years ago
- Category set to Agent
- Assignee set to Benoît PECCATTE
- Target version set to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 32 to 31
Updated by Benoît PECCATTE about 6 years ago
- Effort required set to Small
- Priority changed from 31 to 45
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
- Priority changed from 45 to 44
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Benoît PECCATTE about 6 years ago
- Status changed from New to In progress
- Priority changed from 44 to 0
Updated by Benoît PECCATTE about 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1720
Updated by Benoît PECCATTE about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|ada478171a17596cd2d6d992c2d7054822a9253f.
Updated by François ARMAND almost 6 years ago
- Subject changed from rudder-keys change-key needs full path to "rudder-keys change-key" does not check for key file existence
Updated by Vincent MEMBRÉ almost 6 years ago
- Status changed from Pending release to Released
Actions