Repository navigation
Add version manifests, tag protection, manifest CLI - #75
Merged
Merged
Conversation
- Add manifest service: generates JSON from git-annex tree state - Add S3 manifest upload/get/list functions - Add tag protection via GitHub rulesets (v* pattern) - Integrate tag_protect step into publish approve workflow - Generate manifests in webhook after DOI publish - Add admin endpoint: POST /admin/datasets/:id/manifest/:version - Add user endpoints: GET /datasets/:id/manifest[/:version] - Add dataset manifest CLI command (list/view with auto-detect) - 14 tests covering parsing utilities and CLI behavior
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR75Version: 🤖 Updated on each push. |
- Fix access control: check owner_user_id instead of dataset_id - Fix checksum prefix: derive from key backend (sha256/md5) - Fix hex regex: handle uppercase A-F in checksums - Reorder steps: tag_protect before doi_create - Fix manifest regeneration: preserve existing DOI on regen
13 tasks
2 of 5 tasks
This branch was previously deployed
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.
Summary
Closes #56 (Phase 1: Tagging and Manifests)
Implements the versioning architecture for DOI protection:
Architecture
Manifest generation: Traverses the git tree at a tag via GitHub API, identifies git-annex pointer files, and builds a JSON manifest mapping file paths to their S3 keys with sizes and checksums.
Tag protection: Uses GitHub rulesets API to prevent deletion/modification of version tags (v* pattern). Applied during the publish approve workflow.
Storage: Manifests stored at
s3://<bucket>/<dataset-id>/manifests/v<version>.jsonChanges
backend/src/services/manifest.tsbackend/src/services/github.tsbackend/src/services/s3.tsbackend/src/routes/admin.tsbackend/src/routes/datasets.tsbackend/src/routes/webhooks.tssrc/commands/dataset.tssrc/lib/api.ts.context/plan.mdtest/manifest.test.tsTest plan