DSS0200 and DSS0205 uss_qualifier checks to verify ASTM F3548-21 #508
Labels
automated-testing
Related to automated testing tools
enhancement
New feature or request
P1
High priority
As part of #274, we should check DSS0200 and DSS0205.
DSS0205: Proposed approach
Require that the host and port of the DSS instance's CockroachDB is provided in the
DSSInstanceSpecification
.Use those with the psycopg library to attempt to establish a connection to the DB, and validate that the connection attempts fails with the correct error message.
Relying on the error message is not great, but from my fiddling it looks like there is no specific error code that is returned. Given that those error messages originate from the underlying
libpq
, those should be relatively stable, but it's not impossibleAttempt unencrypted connection
Attempt connection with
sslmode="disable"
, if the connection attempt does not fail with the error messagenode is running secure mode, SSL connection required
the check fails.Attempt encrypted connection with obsolete TLS version
Attempt connection with
sslmode="require"
andssl_max_protocol_version="TLSv1.1"
, if the connection attempt does not fail with the error messageinvalid SSL protocol version range
the check fails.DSS0200
This is about authentication. It does seem more complicated to test, so suggestions are welcome.
The text was updated successfully, but these errors were encountered: