forked from fgeller/kt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes auth UI to use config file cf fgeller#70
this break the existing ui for auth, replacing the former tlsCA, tlsCert, tlsCertKey arguments with a single JSON configuration file that will allow a single interface when adding more auth methods and makes support for configuration via ENV variables easier. $ # for example: $ kt topic -tlsca x -tlscert y -tlscertkey z $ # becomes $ kt topic -auth auth.json $ cat auth.json { "mode": "TLS", "ca-certificate": "x", "client-certificate": "y", "client-certificate-key": "z" } Co-Authored-By: Enrique J. Hernández <enrique@heetch.com>
- Loading branch information
1 parent
b57dc96
commit b96c512
Showing
3 changed files
with
82 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"mode": "TLS", | ||
"client-certificate": "test-secrets/kt-test.crt", | ||
"client-certificate-key": "test-secrets/kt-test.key", | ||
"ca-certificate": "test-secrets/snakeoil-ca-1.crt" | ||
} |