{"id":16931078,"url":"https://github.com/leogr/docker-authz-plugin","last_synced_at":"2025-07-08T04:38:38.570Z","repository":{"id":57712402,"uuid":"213687752","full_name":"leogr/docker-authz-plugin","owner":"leogr","description":"Docker Authz Plugin template","archived":false,"fork":false,"pushed_at":"2023-02-25T01:27:50.000Z","size":19,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T20:06:56.093Z","etag":null,"topics":["docker-authz-plugin","docker-plugin","template"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/leogr.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}},"created_at":"2019-10-08T15:53:16.000Z","updated_at":"2024-10-04T15:17:19.000Z","dependencies_parsed_at":"2024-06-19T16:22:53.625Z","dependency_job_id":"aaef35b0-0eed-4da2-843a-5cfe15ea93d5","html_url":"https://github.com/leogr/docker-authz-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/leogr/docker-authz-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leogr%2Fdocker-authz-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leogr%2Fdocker-authz-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leogr%2Fdocker-authz-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leogr%2Fdocker-authz-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leogr","download_url":"https://codeload.github.com/leogr/docker-authz-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leogr%2Fdocker-authz-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264194566,"owners_count":23571194,"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":["docker-authz-plugin","docker-plugin","template"],"created_at":"2024-10-13T20:43:10.610Z","updated_at":"2025-07-08T04:38:38.525Z","avatar_url":"https://github.com/leogr.png","language":"Makefile","readme":"# docker-authz-plugin\nDocker Authz Plugin template\n\nThis is a template project to for creating an [access authorization plugin](https://docs.docker.com/engine/extend/plugins_authorization/) for the Docker Engine. \n\nNote **this plugin does exactly nothing**. It's just an empty template.\n\n## Why?\n\nPlugins were introduced in the Docker Engine in 1.10, as a v1 implementation ([legacy plugins](https://docs.docker.com/engine/extend/legacy_plugins/)), and further extended in 1.13, as a v2 implementation ([managed plugins](https://docs.docker.com/engine/extend/)).\n\nBecause I needed to create a **very basicy authz plugin** from scratch but I had found many different (and complex) ways to do that so I decided to create a very simple and reusable template.\n\n### Goals\n- To be useful for creating [managed plugins](https://docs.docker.com/engine/extend/)\n- To use the [docker's go-plugins-helpers](https://github.com/docker/go-plugins-helpers) library\n- To use Go modules\n\n### Non-goals\n- To implement a [legacy plugin](https://docs.docker.com/engine/extend/legacy_plugins/)\n- To implement other type of plugins \n- To implement any specific logic\n\n## Usage\n\nFirst, prepare your project:\n- Click on the green \"Use this template\" button above\n- Rename any occurence of `leogr/docker-authz-plugin` as you need\n- Edit `plugin.go` implemeting your plugin logic \n\nThen create and install your plugin:\n- `make create` builds the plugin and add it to your local Docker\n- `make enable` tells Docker to enable the plugin\n\u003e If you want to to use a remote registry, use `docker plugin push` and `docker plugin install` instead of `make enable`\n\nWith the plugin installed and enabled, the Docker daemon needs to be configured to make use of the plugin. This can be done by editing the daemon's configuration file (eg. `/etc/docker/daemon.json`):\n```json\n{\n    \"authorization-plugins\": [\"leogr/docker-authz-plugin:dev\"]\n}\n```\n\u003e Please, use your plugin name if you had renamed it.\n\nFinally, you need to restart the daemon.\n\nIf you're using `systemctl` just run: \n```shell\n$ systemctl restart docker.service\n```\nOtherwise, a rude alternative is:\n```shell\n$ sudo kill -HUP $(pidof dockerd)\n```\n\nEnjoy!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleogr%2Fdocker-authz-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleogr%2Fdocker-authz-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleogr%2Fdocker-authz-plugin/lists"}