This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
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.
feat: upgrade go-translator package and change to env vars
- Loading branch information
Showing
5 changed files
with
49 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# WirePact K8s Basic Auth Translator | ||
|
||
TODO. | ||
This is a "translator" for the WirePact distributed authentication mesh system. | ||
It converts HTTP Basic Auth credentials ([RFC7617](https://tools.ietf.org/html/rfc7617)) | ||
to the WirePact common language format (signed JWT) and back. | ||
|
||
The list of valid users must be in a CSV file with three columns. The first column | ||
must contain the user id, the second the username and the last column must contain the | ||
password for the user. With this CSV "repository", the translator is able | ||
to convert an outgoing communication (egress) to a signed JWT and the incoming communication | ||
(ingress) back to username/password combination. | ||
|
||
The configuration is done via environmental variables: | ||
|
||
- `CSV_PATH`: The path to the csv file | ||
- `PKI_ADDRESS`: The address of the available WirePact PKI | ||
- `COMMON_NAME`: The common name for the translator in the signed JWT and certificates | ||
- `INGRESS_PORT`: Ingress communication port (default: 50051) | ||
- `EGRESS_PORT`: Egress communication port (default: 50052) |
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