Skip to content

Lifecycle hook to trigger User GracePeriod - #78

Merged
glpatcern merged 6 commits into
masterfrom
lifecycle-hook
Aug 28, 2026
Merged

Lifecycle hook to trigger User GracePeriod#78
glpatcern merged 6 commits into
masterfrom
lifecycle-hook

Conversation

@pmedinar01

Copy link
Copy Markdown
Contributor

No description provided.

@pmedinar01 pmedinar01 changed the title Lifecycle hook to triger User GracePeriod Lifecycle hook to trigger User GracePeriod Aug 28, 2026

@glpatcern glpatcern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, just a small change:

Comment thread user/rest/rest.go Outdated
Comment thread user/rest/rest.go
@pmedinar01
pmedinar01 force-pushed the lifecycle-hook branch 2 times, most recently from 4a9dcea to 0c7f81a Compare August 28, 2026 14:26
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.
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.
Comment thread user/rest/rest.go Outdated
@glpatcern
glpatcern merged commit c96f8e1 into master Aug 28, 2026
2 checks passed
@glpatcern
glpatcern deleted the lifecycle-hook branch August 28, 2026 15: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.

2 participants