summaryrefslogtreecommitdiff
path: root/docs/systems/community.rst
blob: ca498663d7e860d044f96acf7945758d9446d063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
.. index::
   single: Systems; Community

=========
Community
=========

Purpose
=======

This system provides the community self service system and will replace the
:doc:`webmail` system in the future.

Application Links
-----------------

   Community self service
      https://selfservice.cacert.org/


Administration
==============

System Administration
---------------------

* Primary: :ref:`people_jandd`
* Secondary: None

Application Administration
--------------------------

+--------------+---------------------+
| Application  | Administrator(s)    |
+==============+=====================+
| self service | :ref:`people_jandd` |
+--------------+---------------------+

Contact
-------

* community-admin@cacert.org

Additional People
-----------------

:ref:`people_mario`, :ref:`people_dirk` and :ref:`people_jselzer` have
:program:`sudo` access on that machine too.

Basics
======

Physical Location
-----------------

This system is located in an :term:`LXC` container on physical machine
:doc:`infra02`.

Logical Location
----------------

:IP Internet: None
:IP Intranet: None
:IP Internal: :ip:v4:`10.0.0.118`
:IPv6:        :ip:v6:`2001:7b8:616:162:2::118`
:MAC address: :mac:`00:ff:67:c2:08:53` (eth0)

.. seealso::

   See :doc:`../network`

.. index::
   single: Monitoring; Community

Monitoring
----------

:internal checks: :monitor:`community.infra.cacert.org`

DNS
---

.. index::
   single: DNS records; <machine>

+-------------------------+---------+------------------------+
| Name                    | Type    | Content                |
+=========================+=========+========================+
| selfservice.cacert.org. | IN A    | 213.154.225.241        |
| selfservice.cacert.org. | IN AAAA | 2001:7b8:616:162:2::35 |
+-------------------------+---------+------------------------+

.. seealso::

   See :wiki:`SystemAdministration/Procedures/DNSChanges`

Operating System
----------------

.. index::
   single: Debian GNU/Linux; Buster
   single: Debian GNU/Linux; 10.3

* Debian GNU/Linux 10.3

Services
========

Listening services
------------------

+----------+---------+---------+-----------------------------------------+
| Port     | Service | Origin  | Purpose                                 |
+==========+=========+=========+=========================================+
| 22/tcp   | ssh     | ANY     | admin console access                    |
+----------+---------+---------+-----------------------------------------+
| 25/tcp   | smtp    | local   | mail delivery to local MTA              |
+----------+---------+---------+-----------------------------------------+
| 80/tcp   | http    | ANY     | Apache httpd                            |
+----------+---------+---------+-----------------------------------------+
| 3306/tcp | mariadb | local   | MariaDB database for roundcube settings |
+----------+---------+---------+-----------------------------------------+
| 5665/tcp | icinga2 | monitor | remote monitoring service               |
+----------+---------+---------+-----------------------------------------+
| 8443/tcp | https   | ANY     | Community self-service application      |
+----------+---------+---------+-----------------------------------------+

Running services
----------------

.. index::
   single: apache httpd
   single: cacert-selfservice
   single: cron
   single: dbus
   single: icinga2
   single: mariadb
   single: openssh
   single: postfix
   single: puppet
   single: rsyslog

+--------------------+---------------------------------------+---------------------------------------------+
| Service            | Usage                                 | Start mechanism                             |
+====================+=======================================+=============================================+
| Apache httpd       | Webserver for Roundcube webmailer     | systemd unit ``apache2.service``            |
+--------------------+---------------------------------------+---------------------------------------------+
| cacert-selfservice | Community self service application    | systemd unit ``cacert-selfservice.service`` |
+--------------------+---------------------------------------+---------------------------------------------+
| cron               | job scheduler                         | systemd unit ``cron.service``               |
+--------------------+---------------------------------------+---------------------------------------------+
| dbus-daemon        | System message bus daemon             | systemd unit ``dbus.service``               |
+--------------------+---------------------------------------+---------------------------------------------+
| icinga2            | Icinga2 monitoring agent              | systemd unit ``icinga2.service``            |
+--------------------+---------------------------------------+---------------------------------------------+
| MariaDB            | MariaDB database server               | systemd unit ``mariadb.service``            |
+--------------------+---------------------------------------+---------------------------------------------+
| openssh server     | ssh daemon for remote administration  | systemd unit ``ssh.service``                |
+--------------------+---------------------------------------+---------------------------------------------+
| Postfix            | SMTP server for local mail submission | systemd unit ``postfix.service``            |
+--------------------+---------------------------------------+---------------------------------------------+
| Puppet agent       | configuration management agent        | systemd unit ``puppet.service``             |
+--------------------+---------------------------------------+---------------------------------------------+
| rsyslog            | syslog daemon                         | systemd unit ``rsyslog.service``            |
+--------------------+---------------------------------------+---------------------------------------------+

Databases
---------

+---------+-----------+----------------------------+
| RDBMS   | Name      | Used for                   |
+=========+===========+============================+
| MariaDB | roundcube | RoundCube webmail settings |
+---------+-----------+----------------------------+

Connected Systems
-----------------

* :doc:`monitor`
* :doc:`proxyin` for incoming application traffic

Outbound network connections
----------------------------

* DNS (53) resolver at 10.0.0.1 (:doc:`infra02`)
* :doc:`email` for self service API access
* :doc:`emailout` as SMTP relay
* :doc:`puppet` (tcp/8140) as Puppet master
* :doc:`proxyout` as HTTP proxy for APT and Puppet

Security
========

.. sshkeys::
   :RSA:     SHA256:bb05y6dWnOxrKuCLUFAPajtH9GsvuyFmDSOeDbj5xZg MD5:ca:42:d9:26:46:16:a1:31:1f:a0:ca:d4:79:c5:b4:06
   :ECDSA:   SHA256:ucfyZPkyfKYsVnglXXFrWm8Fvng8vbfETvJ48wUzcO8 MD5:21:18:06:8e:77:ee:eb:f6:2e:9f:57:77:3d:e2:31:a4
   :ED25519: SHA256:RBGmoIIOuBFHS81x6C8AwAcDC3m/8R35cdHBvxpcyP8 MD5:af:11:72:ce:f8:64:a8:c0:d9:95:45:db:50:37:4f:d8

Dedicated user roles
--------------------

* None

Non-distribution packages and modifications
-------------------------------------------

* CAcert community self service system

  The system runs the CAcert community self service system developed in the
  :cacertgit:`cacert-selfservice`.

  The software is installed from a Debian package that is hosted on :doc:`webstatic`.

  The software is built on :doc:`jenkins` via the `cacert-selfservice Job`_
  when there are changes in Git. The Debian package can be built using
  :program:`gbp`.

  The software is installed and configured via Puppet.

  .. _cacert-selfservice Job: https://jenkins.cacert.org/job/cacert-selfservice/
  .. todo:: describe build and deployment of Debian package for self-service

Risk assessments on critical packages
-------------------------------------

The Puppet agent package and a few dependencies are installed from the official
Puppet APT repository because the versions in Debian are too old to use modern
Puppet features.

The CAcert community self service software is developed using `Go
<https://golang.org/>`_ which handles a lot of common programming errors at
compile time and has a quite good security track record.

The CAcert community self service system is run as a separate user
``cacert-selfservice`` and is built as a small self-contained static binary.
Access is restricted via https.

Critical Configuration items
============================

The system configuration is managed via Puppet profiles. There should be no
configuration items outside of the :cacertgit:`cacert-puppet`.

Keys and X.509 certificates
---------------------------

.. sslcert:: selfservice.cacert.org
   :altnames:   DNS:selfservice.cacert.org
   :certfile:   /etc/cacert-selfservice/certs/server.crt.pem
   :keyfile:    /etc/cacert-selfservice/private/server.key.pem
   :serial:     02D94E
   :expiration: Aug 15 20:58:13 2021 GMT
   :sha1fp:     4D:F9:BD:F3:11:E6:A5:0C:26:7B:87:88:90:8C:CB:17:72:6F:78:8D
   :issuer:     CAcert Class 3 Root

* :file:`/etc/cacert-selfservice/certs/api_cas.pem` contains the trust anchor
  to validate the selfservice API certificate.
* :file:`/etc/cacert-selfservice/certs/client_cas.pem` contains the CAcert.org
  Class 1 and Class 3 CA certificates that are used to validate client
  certificates for the CAcert community self service system

The certificates are rolled out by Puppet. All changes to the certificates need
to be made to the file :file:`hieradata/nodes/community.yaml` in the
:cacertgit:`cacert-puppet` repository.

.. seealso::

   * :wiki:`SystemAdministration/CertificateList`

.. index::
   pair: cacert-selfservice; configuration

cacert-selfservice configuration
--------------------------------

The service configuration is contained in `/etc/cacert-selfservice/config.yaml`
and is managed by the Puppet manifest profiles::cacert_selfservice.

Tasks
=====

* None

Changes
=======

Planned
-------

.. todo:: finish the roundcube setup on :doc:`community` to allow
          decommisioning of :doc:`webmail`.

System Future
-------------

* Become the replacement for :doc:`webmail`

Additional documentation
========================

.. seealso::

   * :wiki:`PostfixConfiguration`

References
----------

.. could reference Apache httpd, PHP and roundcube documentation