You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test execution environment can be located on any system outside of the cloud infrastructure that has OpenStack API access.
13
+
Make sure that the API access is configured properly in "`clouds.yaml`".
14
+
15
+
It is recommended to use a Python virtual environment[^2].
16
+
Next, install the libraries required by the test suite:
17
+
18
+
```bash
19
+
pip3 install openstacksdk sslyze
20
+
```
21
+
22
+
> Note: the version of the sslyze library determines the [version of the Mozilla TLS recommendation JSON](https://wiki.mozilla.org/Security/Server_Side_TLS#JSON_version_of_the_recommendations) that it checks against.
23
+
24
+
Within this environment execute the test suite.
25
+
26
+
[^2]: [Python 3 Documentation: Virtual Environments and Packages](https://docs.python.org/3/tutorial/venv.html)
27
+
28
+
## Test Execution
29
+
30
+
The test suite is executed as follows:
31
+
32
+
```bash
33
+
python3 tls-checker.py --os-cloud mycloud
34
+
```
35
+
36
+
As an alternative to "`--os-cloud`", the "`OS_CLOUD`" environment variable may be specified instead.
37
+
The parameter is used to look up the correct cloud configuration in "`clouds.yaml`".
38
+
For the example command above, this file should contain a `clouds.mycloud` section like this:
39
+
40
+
```yaml
41
+
---
42
+
clouds:
43
+
mycloud:
44
+
auth:
45
+
auth_url: ...
46
+
...
47
+
...
48
+
```
49
+
50
+
For any further options consult the output of "`python3 tls-checker.py --help`".
51
+
52
+
### Script Behavior & Test Results
53
+
54
+
The script will print all actions and passed tests to `stdout`.
55
+
56
+
If all tests pass, the script will return with an exit code of `0`.
57
+
58
+
If any test fails, the script will halt, print the exact error to `stderr` and return with a non-zero exit code.
59
+
60
+
Any tests that indicate a recommendation of the standard is not met, will print a warning message under the corresponding endpoint output.
61
+
However, unmet recommendations will not count as errors.
0 commit comments