├── .circleci └── config.yml ├── .gitignore ├── .golangci.yml ├── .isort.cfg ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── VERSION ├── docker ├── Dockerfile-ca ├── Makefile ├── entrypoint-cleanup.sh ├── entrypoint-generate.sh ├── entrypoint-server.sh ├── env.list.example └── example-keybaseca-volume │ ├── .gitignore │ └── README.md ├── docs ├── Architecture Diagram.png ├── Makefile ├── architecture.md ├── bastions.md ├── best_practices.md ├── conf.py ├── contributing.md ├── deploy_options.md ├── docker-compose-ca.yml.example ├── env.md ├── getting_started.md ├── index.rst ├── intro.md ├── os_support.md ├── sshca.md ├── sshca.yml.example └── troubleshooting.md ├── go.mod ├── go.sum ├── integrationTest.sh ├── src ├── cmd │ ├── keybaseca │ │ └── keybaseca.go │ └── kssh │ │ ├── kssh.go │ │ └── kssh_test.go ├── keybaseca │ ├── bot │ │ ├── bot.go │ │ └── bot_test.go │ ├── botwrapper │ │ └── get_bot.go │ ├── config │ │ └── config.go │ ├── constants │ │ └── kbfs.go │ ├── kbfs │ │ └── kbfs.go │ ├── log │ │ └── log.go │ └── sshutils │ │ ├── generate.go │ │ ├── generate_test.go │ │ └── sshutils.go ├── kssh │ ├── config.go │ ├── flags.go │ ├── flags_test.go │ ├── log.go │ ├── requester.go │ └── ssh.go └── shared │ ├── chat_types.go │ ├── constants.go │ ├── teams.go │ └── utils.go └── tests ├── Dockerfile-cabot ├── Dockerfile-kssh ├── Dockerfile-sshd ├── bot-entrypoint.py ├── bot-entrypoint.sh ├── configure_accounts.py ├── docker-compose.yml ├── envFiles ├── README.md ├── test_env_1 ├── test_env_2_local_audit_log ├── test_env_3_user_not_in_first_team └── test_env_4_user_not_in_configured_teams ├── testFiles ├── README.md ├── expired ├── expired-cert.pub ├── expired.pub ├── valid ├── valid-cert.pub └── valid.pub ├── tester-entrypoint.sh └── tests ├── conftest.py ├── lib.py ├── test_env_1.py ├── test_env_2_local_audit_log.py ├── test_env_3_user_not_in_first_team.py └── test_env_4_user_not_in_configured_teams.py /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.isort.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/.isort.cfg -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/README.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 1.1.0 2 | -------------------------------------------------------------------------------- /docker/Dockerfile-ca: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/Dockerfile-ca -------------------------------------------------------------------------------- /docker/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/Makefile -------------------------------------------------------------------------------- /docker/entrypoint-cleanup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/entrypoint-cleanup.sh -------------------------------------------------------------------------------- /docker/entrypoint-generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/entrypoint-generate.sh -------------------------------------------------------------------------------- /docker/entrypoint-server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/entrypoint-server.sh -------------------------------------------------------------------------------- /docker/env.list.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/env.list.example -------------------------------------------------------------------------------- /docker/example-keybaseca-volume/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !README.md 4 | -------------------------------------------------------------------------------- /docker/example-keybaseca-volume/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docker/example-keybaseca-volume/README.md -------------------------------------------------------------------------------- /docs/Architecture Diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/Architecture Diagram.png -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/architecture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/architecture.md -------------------------------------------------------------------------------- /docs/bastions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/bastions.md -------------------------------------------------------------------------------- /docs/best_practices.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/best_practices.md -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/contributing.md -------------------------------------------------------------------------------- /docs/deploy_options.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/deploy_options.md -------------------------------------------------------------------------------- /docs/docker-compose-ca.yml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/docker-compose-ca.yml.example -------------------------------------------------------------------------------- /docs/env.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/env.md -------------------------------------------------------------------------------- /docs/getting_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/getting_started.md -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/intro.md -------------------------------------------------------------------------------- /docs/os_support.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/os_support.md -------------------------------------------------------------------------------- /docs/sshca.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/sshca.md -------------------------------------------------------------------------------- /docs/sshca.yml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/sshca.yml.example -------------------------------------------------------------------------------- /docs/troubleshooting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/docs/troubleshooting.md -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/go.sum -------------------------------------------------------------------------------- /integrationTest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/integrationTest.sh -------------------------------------------------------------------------------- /src/cmd/keybaseca/keybaseca.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/cmd/keybaseca/keybaseca.go -------------------------------------------------------------------------------- /src/cmd/kssh/kssh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/cmd/kssh/kssh.go -------------------------------------------------------------------------------- /src/cmd/kssh/kssh_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/cmd/kssh/kssh_test.go -------------------------------------------------------------------------------- /src/keybaseca/bot/bot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/bot/bot.go -------------------------------------------------------------------------------- /src/keybaseca/bot/bot_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/bot/bot_test.go -------------------------------------------------------------------------------- /src/keybaseca/botwrapper/get_bot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/botwrapper/get_bot.go -------------------------------------------------------------------------------- /src/keybaseca/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/config/config.go -------------------------------------------------------------------------------- /src/keybaseca/constants/kbfs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/constants/kbfs.go -------------------------------------------------------------------------------- /src/keybaseca/kbfs/kbfs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/kbfs/kbfs.go -------------------------------------------------------------------------------- /src/keybaseca/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/log/log.go -------------------------------------------------------------------------------- /src/keybaseca/sshutils/generate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/sshutils/generate.go -------------------------------------------------------------------------------- /src/keybaseca/sshutils/generate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/sshutils/generate_test.go -------------------------------------------------------------------------------- /src/keybaseca/sshutils/sshutils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/keybaseca/sshutils/sshutils.go -------------------------------------------------------------------------------- /src/kssh/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/config.go -------------------------------------------------------------------------------- /src/kssh/flags.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/flags.go -------------------------------------------------------------------------------- /src/kssh/flags_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/flags_test.go -------------------------------------------------------------------------------- /src/kssh/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/log.go -------------------------------------------------------------------------------- /src/kssh/requester.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/requester.go -------------------------------------------------------------------------------- /src/kssh/ssh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/kssh/ssh.go -------------------------------------------------------------------------------- /src/shared/chat_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/shared/chat_types.go -------------------------------------------------------------------------------- /src/shared/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/shared/constants.go -------------------------------------------------------------------------------- /src/shared/teams.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/shared/teams.go -------------------------------------------------------------------------------- /src/shared/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/src/shared/utils.go -------------------------------------------------------------------------------- /tests/Dockerfile-cabot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/Dockerfile-cabot -------------------------------------------------------------------------------- /tests/Dockerfile-kssh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/Dockerfile-kssh -------------------------------------------------------------------------------- /tests/Dockerfile-sshd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/Dockerfile-sshd -------------------------------------------------------------------------------- /tests/bot-entrypoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/bot-entrypoint.py -------------------------------------------------------------------------------- /tests/bot-entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/bot-entrypoint.sh -------------------------------------------------------------------------------- /tests/configure_accounts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/configure_accounts.py -------------------------------------------------------------------------------- /tests/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/docker-compose.yml -------------------------------------------------------------------------------- /tests/envFiles/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/envFiles/README.md -------------------------------------------------------------------------------- /tests/envFiles/test_env_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/envFiles/test_env_1 -------------------------------------------------------------------------------- /tests/envFiles/test_env_2_local_audit_log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/envFiles/test_env_2_local_audit_log -------------------------------------------------------------------------------- /tests/envFiles/test_env_3_user_not_in_first_team: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/envFiles/test_env_3_user_not_in_first_team -------------------------------------------------------------------------------- /tests/envFiles/test_env_4_user_not_in_configured_teams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/envFiles/test_env_4_user_not_in_configured_teams -------------------------------------------------------------------------------- /tests/testFiles/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/README.md -------------------------------------------------------------------------------- /tests/testFiles/expired: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/expired -------------------------------------------------------------------------------- /tests/testFiles/expired-cert.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/expired-cert.pub -------------------------------------------------------------------------------- /tests/testFiles/expired.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/expired.pub -------------------------------------------------------------------------------- /tests/testFiles/valid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/valid -------------------------------------------------------------------------------- /tests/testFiles/valid-cert.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/valid-cert.pub -------------------------------------------------------------------------------- /tests/testFiles/valid.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/testFiles/valid.pub -------------------------------------------------------------------------------- /tests/tester-entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tester-entrypoint.sh -------------------------------------------------------------------------------- /tests/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/conftest.py -------------------------------------------------------------------------------- /tests/tests/lib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/lib.py -------------------------------------------------------------------------------- /tests/tests/test_env_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/test_env_1.py -------------------------------------------------------------------------------- /tests/tests/test_env_2_local_audit_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/test_env_2_local_audit_log.py -------------------------------------------------------------------------------- /tests/tests/test_env_3_user_not_in_first_team.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/test_env_3_user_not_in_first_team.py -------------------------------------------------------------------------------- /tests/tests/test_env_4_user_not_in_configured_teams.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keybase/bot-sshca/HEAD/tests/tests/test_env_4_user_not_in_configured_teams.py --------------------------------------------------------------------------------