Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Drone extension to restrict access based on organization membership

License

NotificationsYou must be signed in to change notification settings

drone/drone-admit-members

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An admission extension to limit system access based on GitHub organization and team membership. Here is a summary of how the extension works:

  • if user is organization member, grant access
  • if user is organization admin, grant admin access
  • if user is member of designated team, grant admin access (optional)

Installation

Create a shared secret:

$openssl rand -hex 16bea26a2221fd8090ea38720fc445eca6

Download and run the plugin:

$docker run -d \  --publish=3000:3000 \  --env=DRONE_DEBUG=true \  --env=DRONE_SECRET=bea26a2221fd8090ea38720fc445eca6 \  --env=DRONE_GITHUB_TOKEN=3da541559918a808c2402bba5012f6c6 \  --env=DRONE_GITHUB_ORG=acme \  --env=DRONE_GITHUB_TEAM=admins \  --restart=always \  --name=admitter drone/drone-admit-members

Update your Drone server configuration to include the plugin address and the shared secret.

DRONE_ADMISSION_PLUGIN_ENDPOINT=http://1.2.3.4:3000DRONE_ADMISSION_PLUGIN_SECRET=bea26a2221fd8090ea38720fc445eca6

Testing

Test the admission extension using the command line tools. First you need to provide the command line tools with the extension endpoint and secret:

export DRONE_ADMISSION_ENDPOINT=http://localhost:3000export DRONE_ADMISSION_SECRET=bea26a2221fd8090ea38720fc445eca6

Use the following command to test account access:

$drone plugins admit octocatadmission: access denied

About

Drone extension to restrict access based on organization membership

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp