Project

General

Profile

Actions

Bug #15806

closed

Bug #15801: Rudder agent cannot copy the certificate if the user defined one that is a link to a file in a different mount point

Agent should not try to set permission of certificate if it is a symbolic link

Added by Nicolas CHARLES over 4 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Error - Next version
Regression:

Description

rudder.crt may be a symbolic link, in this case, the resulting ca.cert will also be a symbolic link, and agnt should not try to envorce permissions on the link - it may cause mayhem


Subtasks 1 (0 open1 closed)

Bug #15905: If "ca.cert" exists, you can't have link for "rudder.crt"ReleasedAlexis MoussetActions
Actions #1

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #2

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1517
Actions #3

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Alexis Mousset over 4 years ago

  • Name check changed from To do to Reviewed
Actions #5

Updated by François ARMAND over 4 years ago

  • Name check changed from Reviewed to To do
  • Fix check changed from To do to Error - Blocking

So, it is still broken.

Orig:

root@server:~# ls -la /opt/rudder/etc/ssl/
drwxr-xr-x 2 root root     4096 Oct  9 13:50 .
drwxr-xr-x 9 root root     4096 Oct  9 13:18 ..
-rw------- 1 root root     1375 Oct  9 13:50 ca.cert
-rw-r--r-- 1 root root      781 Nov 22  2017 openssl.cnf
-rw-r--r-- 1 root root     1375 Oct  9 07:35 rudder.crt
-rw-r----- 1 root www-data 1708 Oct  9 07:35 rudder.key

Changed to:

root@server:~# ls -la /opt/rudder/etc/ssl/
total 28
drwxr-xr-x 2 root root     4096 Oct  9 13:52 .
drwxr-xr-x 9 root root     4096 Oct  9 13:18 ..
-rw------- 1 root root     1375 Oct  9 13:50 ca.cert
-rw-r--r-- 1 root root      781 Nov 22  2017 openssl.cnf
lrwxrwxrwx 1 root root       35 Oct  9 13:52 rudder.crt -> /opt/rudder/etc/ssl/rudder.crt_orig
-rw-r--r-- 1 root root     1375 Oct  9 07:35 rudder.crt_orig
lrwxrwxrwx 1 root root       35 Oct  9 13:52 rudder.key -> /opt/rudder/etc/ssl/rudder.key_orig
-rw-r----- 1 root www-data 1708 Oct  9 07:35 rudder.key_orig

I get with rudder agent run -i:

   error: Object '/opt/rudder/etc/ssl/ca.cert' exists and is obstructing our promise
   error: Unable to create link '/opt/rudder/etc/ssl/ca.cert' -> '/opt/rudder/etc/ssl/rudder.crt_orig', failed to move obstruction
Actions #6

Updated by Alexis Mousset over 4 years ago

  • Name check changed from To do to Reviewed
Actions #7

Updated by Nicolas CHARLES over 4 years ago

  • Fix check changed from Error - Blocking to Error - Next version
Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

This bug has been fixed in Rudder 5.0.14 which was released today.

Actions #9

Updated by Vincent MEMBRÉ over 3 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF