-
Notifications
You must be signed in to change notification settings - Fork 9
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
master states:442 distribute update token, and enable doil to trigger instance updates via url #446
base: master
Are you sure you want to change the base?
Conversation
setup/conf/doil.conf
Outdated
global_instances_path=/srv/instances | ||
update_token=foobar |
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.
Bitte entferne das, so dass das Feature per default nicht aktiviert ist. Wenn das Feld nicht gesetzt ist, ist das Feature nicht aktiv, korrekt? Bitte dann auch die entsprechenden Dateien etc. auch nicht an die Clients ausliefern.
@@ -121,6 +121,7 @@ The following commands are available: | |||
* `doil delete <instance_name>` deletes an instance you do not need anymore | |||
* `doil status` lists the current running doil instances | |||
* `doil exec <instance_name> <cmd>` executes a bash command inside the instance | |||
* `doil sut` (alias for `doil instances:set-update-token`) Sets an update token as an environment variable. This is cross-checked during instance updates via the browser |
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.
Bitte in der README die Funktionalität ein bisschen beschreiben, so dass sie auch ohne Geheimwissen eingesetzt werden kann.
|
||
if ($environment_token !== $request_token) { | ||
http_response_code(401); | ||
throw new Exception("Invalid Token"); |
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.
Bitte hier jeweils nur "Authorization required" zurückmelden in allen Fällen.
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.
Done!
Hey @daniwe4, wann geht es mit diesem hier weiter? Viele Grüße! |
b203901
to
214cc35
Compare
instance updates via url
No description provided.