Skip to content

Commit bb1130e

Browse files
committed
MB-52043: Collect certificates in cbcollect
Collects all certificates in config/certs, except for the private keys. Change-Id: Ib792b3860355943c5bb10f64c6f26012d26c7b3a Reviewed-on: https://review.couchbase.org/c/ns_server/+/174593 Well-Formed: Build Bot <[email protected]> Well-Formed: Restriction Checker Tested-by: Bryan McCoid <[email protected]> Reviewed-by: Timofey Barmin <[email protected]>
1 parent e0917f2 commit bb1130e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cbcollect_info

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,6 +2238,12 @@ def main():
22382238
runner.run_tasks(make_product_task(guts, guts_initargs_path,
22392239
memcached_password, options))
22402240

2241+
for f in glob.glob(os.path.join(guts.get("path_config_datadir"),
2242+
"config", "certs", "*")):
2243+
base = os.path.basename(f)
2244+
if base not in ["pkey.pem", "client_pkey.pem"]:
2245+
runner.collect_file(f, f"certs/{base}")
2246+
22412247
# Collect breakpad crash dumps.
22422248
if options.bypass_sensitive_data:
22432249
log("Bypassing Sensitive Data: Breakpad crash dumps")

0 commit comments

Comments
 (0)