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

Add super-admin-god-mode to protect some links from deletion #22

Open
chdao opened this issue Sep 14, 2021 · 1 comment
Open

Add super-admin-god-mode to protect some links from deletion #22

chdao opened this issue Sep 14, 2021 · 1 comment

Comments

@chdao
Copy link

chdao commented Sep 14, 2021

In the light of a recently mentioned problem, we believe that this is an issue. We need to be able to lock redirects out of deletion, akin to locks on wikipedia. In fact, we should have a history of what happened to all the links over time.

@cwbooth5
Copy link
Owner

cwbooth5 commented Oct 7, 2021

Delete operations are already restricted to the logged in users, but there's no barrier to logging in. At this point, the login is only for a paper trail and a person to contact with questions on a link, list, or action performed on those things. That's good, since we can at least use this code to create a proper login workflow complete with AAA.

The first request for locking might manifest itself as a simple permissions model. I'd have to write that from the ground up, unless there's some other AAA solution I can import and leverage. I prefer to write my own stuff just to learn and to see if I can do it.

The second request is pretty easy. We keep a log in memory and write it out to the link database on disk on exit and/or at a time interval. I think it would make sense to have two general bits of data in this log - timestamped records of redirects being used and timestamped CRUD operations on the resources. We'd also want to have a record of things deleted by users so we can understand what we used to have. Think about Netflix. Imagine if they had a little service that published what they're about to delete or what they just deleted. That's useful.

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

No branches or pull requests

2 participants