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

Audit via resource_change ID #13

Open
behas opened this issue Jul 11, 2012 · 2 comments
Open

Audit via resource_change ID #13

behas opened this issue Jul 11, 2012 · 2 comments

Comments

@behas
Copy link
Member

behas commented Jul 11, 2012

If a source supports change memory and issues change events for resource changes and inventory creation, and each change event has a unique sequential ID (á la commit hash in Git), then a destination can easily check if it is in sync by comparing it local event id (from its last sync request) with the most recent remote event id.

@ghost ghost assigned behas Jul 11, 2012
@zimeon
Copy link
Member

zimeon commented Jul 11, 2012

If one uses a sequential event ids (different from github that avoids this in favor of something hashlike because sequential ids would require centralized synchronous control) and if the destination knows both that it has never missed and update (every event in sequence since start) and has the most recent update, then this would be a form of audit. It would still be a rather weaker check than actually verifying content so perhaps less broadly applicable.

@behas
Copy link
Member Author

behas commented Jul 11, 2012

Sequential doesn't necessary mean that the itself needs to be sequential (1,2,3,...). It can also be sth. hashlike as long as the changememory remembers their temporal order. E.g. a git repository knows about the temporal order of commits, but doesn't encode this in the event id. WebDav works the same way; it uses hash-like event IDs and demands the the source knows about their sequence.

This clearly works only if a source has changememory but I think it would be a fast and efficient, but certainly weaker audit check than a full inventory comparision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants