{"id":18892359,"url":"https://github.com/hf/nitrite","last_synced_at":"2025-06-26T17:32:24.705Z","repository":{"id":42207152,"uuid":"327367641","full_name":"hf/nitrite","owner":"hf","description":"Easily verify Nitro Enclave attestations with Go.","archived":false,"fork":false,"pushed_at":"2024-12-25T14:40:01.000Z","size":4,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-02T20:26:30.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-06T16:25:49.000Z","updated_at":"2025-04-05T05:07:49.000Z","dependencies_parsed_at":"2024-06-19T05:29:09.377Z","dependency_job_id":"ec6bef41-018d-4711-a458-5b603bb288f9","html_url":"https://github.com/hf/nitrite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hf/nitrite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hf%2Fnitrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hf%2Fnitrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hf%2Fnitrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hf%2Fnitrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hf","download_url":"https://codeload.github.com/hf/nitrite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hf%2Fnitrite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326657,"owners_count":22992376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:01:33.470Z","updated_at":"2025-06-26T17:32:24.646Z","avatar_url":"https://github.com/hf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nitrite\n=======\n\n[![Go Report Card][go-reportcard-badge]][go-reportcard] [![Go Reference][pkg.go.dev-badge]][pkg.go.dev]\n\nA library for verifying [AWS Nitro Enclave][aws-nitro-enclaves]\n[attestations][aws-nitro-attestation] for Go.\n\n## Usage\n\nIt's fairly simple to use it, so here's an example:\n\n```go\nimport (\n\t\"bytes\"\n\t\"github.com/hf/nitrite\"\n\t\"time\"\n)\n\nfunc verifyAttestation(attestation []byte) error {\n\tres, err := nitrite.Verify(\n\t\tbytes.NewReader(attestation),\n\t\tnitrite.VerifyOptions{\n\t\t\tCurrentTime: time.Now(),\n\t\t})\n\n\tif nil != err {\n\t\treturn err\n\t}\n\n\treturn nil\n}\n```\n\nThis package includes the Nitro Enclave [Root CA certificates][aws-nitro-root-ca].\n\nIt's recommended you explicitly calculate the SHA256 sum of the `DefaultRootCA`\nstring and match it according to the [AWS\ndocumentation][aws-nitro-verify-root] at the start of your application.\nAlternatively, you can supply your own copy of the root CA.\n\n## License\n\nCopyright \u0026copy; 2021 Stojan Dimitrovski. Licensed under the MIT License. See\n`LICENSE` for more information.\n\n[go-reportcard-badge]: https://goreportcard.com/badge/github.com/hf/nitrite\n[go-reportcard]: https://goreportcard.com/report/github.com/hf/nitrite\n[pkg.go.dev-badge]: https://pkg.go.dev/badge/github.com/hf/nitrite.svg\n[pkg.go.dev]: https://pkg.go.dev/github.com/hf/nitrite\n\n[aws-nitro-enclaves]: https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html\n[aws-nitro-attestation]: https://docs.aws.amazon.com/enclaves/latest/user/verify-root.html\n[aws-nitro-root-ca]: https://aws-nitro-enclaves.amazonaws.com/AWS_NitroEnclaves_Root-G1.zip\n[aws-nitro-verify-root]: https://docs.aws.amazon.com/enclaves/latest/user/verify-root.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhf%2Fnitrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhf%2Fnitrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhf%2Fnitrite/lists"}