Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniwe4
Copy link
Member

@daniwe4 daniwe4 commented Jun 17, 2024

No description provided.

@daniwe4 daniwe4 requested a review from klees June 17, 2024 11:01
@daniwe4 daniwe4 linked an issue Jun 17, 2024 that may be closed by this pull request
global_instances_path=/srv/instances
update_token=foobar
Copy link
Member

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
Copy link
Member

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");
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@klees
Copy link
Member

klees commented Nov 20, 2024

Hey @daniwe4,

wann geht es mit diesem hier weiter?

Viele Grüße!

@daniwe4 daniwe4 force-pushed the master_442 branch 2 times, most recently from b203901 to 214cc35 Compare December 9, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhook für Update einer Instanz
2 participants