mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 07:25:53 +03:00
[PR #111] Use JSON Web Signature and Encryption (JWS & JWE) between webvirtcloud and gstfsd #424
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#424
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/retspen/webvirtcloud/pull/111
Author: @nitmir
Created: 5/8/2016
Status: 🔄 Open
Base:
master← Head:gstfsd-auth📝 Commits (5)
6dc7473Use JSON Web Signature and Encryption (JWS & JWE) between webvirtcloud and gstfsd064bd18Add validation of the field gstfsd_key.c25a35eDisable autocomplete on the root password input9db1b06An empty root password disable the root password748c167Genrate random salts fort the root password📊 Changes
10 files changed (+245 additions, -33 deletions)
View changed files
📝
computes/forms.py(+82 -0)➕
computes/migrations/0002_compute_gstfsd_key.py(+19 -0)📝
computes/models.py(+1 -0)📝
computes/templates/computes.html(+24 -0)📝
computes/templates/create_comp_block.html(+24 -0)📝
computes/views.py(+11 -5)📝
conf/daemon/gstfsd(+38 -7)📝
conf/requirements.txt(+1 -0)📝
instances/templates/instance.html(+3 -2)📝
instances/views.py(+42 -19)📄 Description
This introduce encryption and signing between webvirtcloud and gstfsd: root password change requests and ssh key change requests are signed and encrypted using a shared secret between webvirtcloud and gstfsd.
On first start, gstfsd generate the shared secret, a JSON Web Key (JWK), and save it in the file
/var/lib/gstfsd/SECRET.You can then add the JWK to computes in webvirtcloud computes panel for webvirtcloud to be able to sign and encrypt request to this compute gstfsd instance. If you try to change a root password without having imported the JWK, an error message tell you how to do so.
This fix #106
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.