Project

General

Profile

Actions

action #58676

closed

[tools] manage certificates by salt (pillars)

Added by nicksinger over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2018-06-21
Due date:
% Done:

0%

Estimated time:

Description

Currently the key, certificate and CSR are all deployed manually to OSD. For now I'd like to start out with only storing the certificate in a pillar. Next up would be the CSR. For the key I'd highly recommend looking into https://docs.saltstack.com/en/latest/topics/pillar/#pillar-encryption first.


Related issues 1 (0 open1 closed)

Copied from openQA Infrastructure - action #37644: [tools] osd SSL certificate is only valid for openqa.suse.de, not for openqa.nue.suse.comResolvedokurz2018-06-21

Actions
Actions #1

Updated by nicksinger over 4 years ago

  • Copied from action #37644: [tools] osd SSL certificate is only valid for openqa.suse.de, not for openqa.nue.suse.com added
Actions #2

Updated by nicksinger about 4 years ago

  • Status changed from New to Feedback

Together with @okurz we came up with a possible solution. See:

  1. https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/277
  2. https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/227

Tests might fail since states need the updated pillars. On a local test run these changes looked promising and could work :)

Actions #3

Updated by okurz about 4 years ago

pillars MR was merged. Created https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/278 as a replacement for https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/277 which also fixes tests. Have created a backup of certificates on osd, will merge and monitor on osd.

EDIT: https://gitlab.suse.de/openqa/salt-states-openqa/-/jobs/175786 shows

Detected conflicting IDs, SLS IDs need to be globally unique.
The conflicting ID is 'salt-master' and is found in SLS 'base:salt.master' and SLS 'base:openqa.server'

Weird that this never happened in before. Fixed in https://gitlab.suse.de/openqa/salt-states-openqa/-/commit/bfeec97896afc425541c1dbd309c136e83e7e156 .

Actions #4

Updated by okurz about 4 years ago

  • Status changed from Feedback to Resolved

Applied salt.master to update /etc/salt/master , restarted salt-master with systemctl restart salt-master and applied salt --no-color openqa.suse.de state.apply openqa.server. This seems to have worked and also no failed states remain.

Actions

Also available in: Atom PDF