zuul/tests/unit
James E. Blair 0bf6e14720 Add commands to export/import keys to/from ZK
This removes the filesystem-based keystore in favor of only using
ZooKeeper.  Zuul will no longer load missing keys from the filesystem,
nor will it write out decrypted copies of all keys to the filesystem.

This is more secure since it allows sites better control over when and
where secret data are written to disk.

To provide for system backups to aid in disaster recovery in the case
that the ZK data store is lost, two new scheduler commands are added:

* export-keys
* import-keys

These write the password-protected versions of the keys (in fact, a
raw dump of the ZK data) to the filesystem, and read the same data
back in.  An administrator can invoke export-keys before performing a
system backup, and run import-keys to restore the data.

A minor doc change recommending the use of ``zuul-scheduler stop`` was
added as well, since that section is being updated.

Change-Id: I5e6ea37c94ab73ec6f850591871c4127118414ed
2021-07-22 08:07:22 -07:00
..
__init__.py Move tests into test/unit 2017-01-24 10:18:38 -08:00
test_auth.py Bump pyjwt to 2.0.0 2021-01-14 12:35:18 +00:00
test_bubblewrap.py Make most test cases work on MacOS 2020-02-20 12:59:38 +01:00
test_change_matcher.py Make files matcher match changes with no files 2019-08-23 18:59:29 +02:00
test_circular_dependencies.py Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
test_client.py zuul tenant-conf-check: disable scheduler creation 2021-06-11 16:00:39 +00:00
test_cmd.py Revert "Revert "Add the process environment to zuul.conf parser"" 2019-11-02 09:10:18 +09:00
test_component_registry.py Replace TreeCache in component registry 2021-06-28 08:59:15 -07:00
test_configloader.py Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
test_connection.py Remove ZuulDBTestCase 2021-07-08 14:07:19 -07:00
test_cross_crd.py Execute builds via ZooKeeper 2021-06-29 14:37:15 -07:00
test_daemon.py Remove unecessary shebang and exec bit 2018-07-26 07:12:24 +00:00
test_database.py Add Postgres schema test 2021-06-28 10:29:32 -07:00
test_default_config.py Add type check for zuul conf 2018-12-10 19:24:50 +08:00
test_disk_accountant.py Optionally disable disk_limit_per_job 2019-02-22 08:10:59 +01:00
test_encryption.py Use nested tempfile fixture for cleanups 2018-02-06 15:18:45 -08:00
test_event_queues.py Move tenant validation to separate method 2021-07-06 07:23:51 +02:00
test_executor.py Lock/unlock nodes on executor server 2021-07-01 05:46:02 +00:00
test_gerrit.py Cleanup Zuul's stdout/stderr output 2021-06-04 11:42:02 -07:00
test_gerrit_crd.py Execute builds via ZooKeeper 2021-06-29 14:37:15 -07:00
test_gerrit_legacy_crd.py Execute builds via ZooKeeper 2021-06-29 14:37:15 -07:00
test_git_driver.py Use scheduler manager consistently in tests 2020-04-03 14:49:59 +02:00
test_github_crd.py Use scheduler manager consistently in tests 2020-04-03 14:49:59 +02:00
test_github_driver.py Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
test_github_requirements.py Fix multiple prs found when commit is not head 2020-09-04 13:47:54 +02:00
test_gitlab_driver.py Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
test_inventory.py Merge "Execute builds via ZooKeeper" 2021-07-01 00:34:11 +00:00
test_keystorage.py Add commands to export/import keys to/from ZK 2021-07-22 08:07:22 -07:00
test_lib_ansible.py Validate ansible extra packages 2020-05-08 09:03:10 +02:00
test_merger_repo.py Support overlapping repos and a flat workspace scheme 2021-04-29 17:56:24 -07:00
test_model.py Remove layout attribute from queue items 2021-06-01 18:19:39 +02:00
test_multi_driver.py Make test setup_config more pure 2020-02-28 11:50:22 +01:00
test_nodepool.py Switch to ZooKeeper backed NodesProvisionedEvents 2021-07-13 14:57:01 -07:00
test_openstack.py Support overlapping repos and a flat workspace scheme 2021-04-29 17:56:24 -07:00
test_pagure_driver.py Store tenant layout state in Zookeeper 2021-07-08 13:16:38 -07:00
test_prometheus.py prometheus: add options to start the server and process collector 2021-04-26 14:47:36 +00:00
test_push_reqs.py Make test setup_config more pure 2020-02-28 11:50:22 +01:00
test_reporting.py Report dequeued changes via Github checks API 2020-05-14 07:42:24 +02:00
test_requirements.py Fix reject clauses in the absence of approvals 2018-08-13 12:37:32 +02:00
test_scheduler.py Add commands to export/import keys to/from ZK 2021-07-22 08:07:22 -07:00
test_serial.py Make fake test Gerrit merger more realistic 2020-04-29 15:00:05 -07:00
test_ssh_agent.py Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
test_stack_dump.py Several executor threading fixes 2017-10-17 09:49:29 -07:00
test_streaming.py Initialize ZooKeeper connection in server rather than in cmd classes 2021-03-08 07:15:32 -08:00
test_strings.py Pseudo-shard unique project names in keystore 2021-04-20 09:53:29 -07:00
test_supercedent.py Check branches in supercedent pipelines 2019-04-05 13:59:05 -07:00
test_v3.py Merge "Don't clear connection caches during full reconfig" 2021-07-09 16:40:05 +00:00
test_web.py Merge "Don't clear connection caches during full reconfig" 2021-07-09 16:40:05 +00:00
test_web_urls.py Initialize ZooKeeper connection in server rather than in cmd classes 2021-03-08 07:15:32 -08:00
test_yamlutil.py Add all original values to unsafe_vars 2021-06-24 06:24:23 -07:00
test_zk.py Store tenant layout state in Zookeeper 2021-07-08 13:16:38 -07:00
test_zuultrigger.py Switch to Zookeeper backed trigger event queues 2021-03-18 09:24:09 +01:00