feat(source): Add support for SSH key authentication

- Add support for SSH key auth using existing config file value
- Add authentication exceptions
- Remove redundant git error handling from Armada handler

Closes #169

Change-Id: Ia0f61e0b74893289bb90560a743a243393d89c56
This commit is contained in:
drewwalters96
2017-11-21 19:32:02 +00:00
committed by Mark Burnett
parent 1855702bf7
commit 5b75f0a9b4
6 changed files with 148 additions and 45 deletions

View File

@@ -61,10 +61,14 @@ The Keystone project domain name used for authentication.
default='admin',
help=utils.fmt('The Keystone project name used for authentication.')),
# TODO(fmontei): Add support for multiple SSH keys, not just one site-wide
# one.
cfg.StrOpt(
'ssh_key_path',
default='/home/user/.ssh/',
help=utils.fmt('Path to SSH private key.')),
help=utils.fmt("""Optional path to an SSH private key used for
authenticating against a Git source repository. The path must be an absolute
path to the private key that includes the name of the key itself.""")),
cfg.StrOpt(
'tiller_pod_labels',