-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT token only #73
JWT token only #73
Changes from 9 commits
309ae98
debc103
c7ad0c6
bc5dc59
79ac248
d5b6ff8
a7b047f
d3718df
21cb45e
1505b9c
a20d098
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../docs/deploy.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Deploy with docker compose | ||
|
||
Create config file `config.yaml` as described at [configuration.md](configuration.md). | ||
The `job_root_dir` property should be set to `/tmp/jobs` | ||
which is a Docker compose volume. | ||
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At first I couldn't find that setting on the linked page. It would be helpful if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in a20d098 |
||
|
||
Store public RSA key for JWT auth in `public_key.pem` file next to `config.yaml`. | ||
|
||
Start with | ||
|
||
```bash | ||
docker compose -f deploy/docker-compose.yml up | ||
``` | ||
|
||
Web service will running on <http://0.0.0.0:8000>. | ||
|
||
To login to web service you need to generate token with | ||
the private counterpart of the public key. | ||
See [configuration.md#authentication](configuration.md#authentication). | ||
To use `bartender generate-token` command inside container you need make | ||
the private key available in the container. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps add an instruction on how to do that (make private key available to container)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added in 1505b9c |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
|
||
self | ||
develop | ||
user_management | ||
configuration | ||
deploy | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this description, who is the owner of the keypair? Is it the bartender or the consumer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If my understanding is correct, in this case, the "sender" should be the owner of the keypair. The sender uses their private key to create a token and the "recipient" uses the senders' public key to verify that it could only have been the sender (i.e. the only one knowing their private key) to have generated the token. Correct?
So does that mean that bartender could potentially store multiple public keys for various senders?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create #75 for multiple public keys. Will implement when we have a concrete use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, correct. That is how https://en.wikipedia.org/wiki/Digital_signature works. The signer owns the private key and gives a public key to the verifier.