Lifecycle hook to trigger User GracePeriod - #78
Merged
Conversation
glpatcern
requested changes
Aug 28, 2026
pmedinar01
force-pushed
the
lifecycle-hook
branch
2 times, most recently
from
August 28, 2026 14:26
4a9dcea to
0c7f81a
Compare
PATCH {lifecycle_endpoint}/cbox/account/{user} with a GracePeriod
subscription status, using lifecycle_secret as bearer token. If the
endpoint or the secret is not configured, only log a warning.
The daemon replies with a JSON body describing the resulting account state; log it regardless of the HTTP status code.
The endpoint differs between qa and prod, so it must be set explicitly per environment; drop the docs default to avoid pointing at prod by mistake.
pmedinar01
force-pushed
the
lifecycle-hook
branch
from
August 28, 2026 14:32
0c7f81a to
2475a2e
Compare
The daemon returns 200 on success for this PATCH, so treat anything else as an error and include its response body in the error message.
pmedinar01
force-pushed
the
lifecycle-hook
branch
from
August 28, 2026 14:36
9e2c022 to
d47050d
Compare
glpatcern
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.