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

Poc broken billing #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Poc broken billing #83

wants to merge 3 commits into from

Conversation

wejdross
Copy link
Member

This is Proof of Concept to make discussion easier. Why it happened:

  • if someone creates vshn service like postgresql, mariadb etc. and triggers a backup, for example using cron * * * * * and then deletes everything - claim, backups, namespace etc. we end up in state where we receive bill fot services but we're unable to match it with actual customer. We just receive info from Cloudscale that there are billing records for bucked named XXX owned by non existing UserID "some_long_id"

How it's supposed to work:

  • as You can see I'm introducing possibility to send an event (auth tbd) from DELETE webhook of our providers providing S3 - If You want to delete, I must ensure it's completely billed otherwise I block deletion

It's still going to pop up in our logfiles, which I'm fine with, as long as we make sure there's an accounting record in the database.

this is experimental PoC introducing event based logic to be called via
DELETE webhook of s3 provider. This way we can ensure that bucket was
billed right before being deleted.
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.

1 participant