{"id":42891687,"url":"https://github.com/joekir/data-boxes","last_synced_at":"2026-01-30T14:59:09.280Z","repository":{"id":38400616,"uuid":"493493383","full_name":"joekir/data-boxes","owner":"joekir","description":"Prototype project to explore runtime data protection","archived":false,"fork":false,"pushed_at":"2022-08-26T05:08:44.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T03:17:09.617Z","etag":null,"topics":["authorization","data-security","golang","java"],"latest_commit_sha":null,"homepage":"https://www.josephkirwin.com/2022/05/14/protecting-data-in-a-runtime-environment/","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joekir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-18T03:21:36.000Z","updated_at":"2022-09-25T06:24:26.000Z","dependencies_parsed_at":"2022-08-18T07:10:21.514Z","dependency_job_id":null,"html_url":"https://github.com/joekir/data-boxes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joekir/data-boxes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joekir%2Fdata-boxes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joekir%2Fdata-boxes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joekir%2Fdata-boxes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joekir%2Fdata-boxes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joekir","download_url":"https://codeload.github.com/joekir/data-boxes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joekir%2Fdata-boxes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authorization","data-security","golang","java"],"created_at":"2026-01-30T14:59:08.624Z","updated_at":"2026-01-30T14:59:09.273Z","avatar_url":"https://github.com/joekir.png","language":"Starlark","readme":"# data boxes\n\n## Overview\n\n**What is the problem?**\n\n_I described a lot of this detail in the following Blog posts:_\n* https://www.josephkirwin.com/2022/05/14/protecting-data-in-a-runtime-environment/\n* https://www.josephkirwin.com/2022/05/24/part-2-protecting-data-in-a-runtime-environment/\n\n## Implementation(s)\n\nTrying out with Java firstly due to the ease of runtime introspection.\n\n| Approach  | Link  | Notes   |\n|---|---|---|\n| Using manifold.systems to extend classes at compile time | [manifold.systems](https://github.com/manifold-systems/manifold/tree/master/manifold-deps-parent/manifold-ext#arithmetic-operators)  | It does work, though it could be a lot of maintainence to do these wrappers for all basic data classes |\n| Dynamic Proxy Classes | [Core JavaSE](https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html) | Only works on interfaces, stuff like [String](https://docs.oracle.com/javase/9/docs/api/java/lang/String.html) only implements `CharSequence` which is insufficient coverage |\n| Javassist | [ProxyFactory](https://www.javassist.org/html/javassist/util/proxy/ProxyFactory.html) | Works on classes, not just interfaces, however cannot intercept final classes e.g.`String`, `Integer`, which is exactly what we wanted it to do. |\n\n## Building \n\n```\n$ bazel clean --expunge\n$ bazel build //...\n```\n\n## Running\n\n#### Running the golang authorization service\n```\n$ bazel run //authorizer\n```\n\n#### Running the Java client code\n```\n$ bazel run //java-wrappers:example\n```\n\nYou'll see that the client was able to access the data and the server logs something like \n```\nStarting Authorizer Service at localhost:9000\n2022/08/07 13:53:32 IsAuthorized called: authContext:\"foo\"  dataType:\"String\"  verb:\"READ\"\n```\n\nN.B the eventual ideal (perf and security) is to use GRPC over IPC not over TCP/IP, but for now I'm saving that complexity for later!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoekir%2Fdata-boxes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoekir%2Fdata-boxes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoekir%2Fdata-boxes/lists"}