🚅 Environment ployz-pr-1665 in Ployz Dashboard has no services deployed.
Enroll a Machine with one idempotent verb and read its join token from Inspect#1665
Fourth PR of the Machine RPC catalog simplification. One idempotent Enroll replaces Initialize and Join, and Inspect reports the join token. MachineToken goes.
What changes
- Enroll takes
as: founder {...}oras: member {registration}pluswireguard_mtu. A fresh Machine stores the enrollment and restarts. A resend that names the stored Machine and MTU replays it without a restart. Anything else answersrefusedwith the Machine's current id, phase and record, and stores nothing. - The CLI resends Enroll until a reply arrives. The lost-reply recovery in
ployz server init,ployz server addandployz cloud enrollgoes, because a resend now replays. - Inspect takes
token: {public_ip}and then returnstoken.public_ip_overridegoes. The CLI reads a missing token as an old daemon and says to upgrade Ployz on that Server. - Register stops reading other Machines' rows. It drops the clash check and the isolation lock, and a Register for an existing id overwrites its row. Cloud owns enrollment concurrency, and it drops its conflict mapping in
enrollment.server.ts. - RuntimeWatch moves to the Cluster capability group. Its route, shapes and capability name stay.
core/DESIGN.mdnames Initialize, Join and MachineToken as removed under rule 6 with no shim.
Who notices
Nobody during the window before the release. Cloud only calls Register on the entry Machine, and that route is unchanged. A newcomer installed from the script runs the current release for both CLI and daemon until the release. After the release, a new CLI against a Server on the current release refuses at ployz server init or ployz server add and says to upgrade that Server first.
Draft until the top of the stack is verified end to end.
Checks
Important
Draft PR not reviewed
Draft PRs are not automatically reviewed by default.
- Trigger a manual review
To automatically review draft PRs, update your CodeRabbit configuration:
| 1 | reviews: |
| 2 | auto_review: |
| 3 | drafts: true |
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Added 1 commit
- Enroll a Machine with one idempotent verb and read its join token from Inspectf2ae50a
️✅ There are no secrets present in this pull request anymore.
If these secrets were true positive and are still valid, we highly recommend you to revoke them. While these secrets were previously flagged, we no longer have a reference to the specific commits where they were detected. Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately. Find here more information about risks.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.