Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

getgoing/drone-promote-auth

 
 

Repository files navigation

This plugin has been deprecated and archived. See https://github.com/getgoing/drone-validation instead

A validation extension to Drone validation plugin to restrict users who can promote builds. Please note this project requires Drone server version 1.4 or higher.

Docker image -- https://hub.docker.com/r/reptiloid666/drone-promote-auth

Installation

Create a shared secret:

$ openssl rand -hex 16
bea26a2221fd8090ea38720fc445eca6

Download and run the plugin:

$ docker run -d \
  --publish=3000:3000 \
  --env=DRONE_DEBUG=true \
  --env=DRONE_SECRET=bea26a2221fd8090ea38720fc445eca6 \
  --env=PRIVILEGED_USERS=user1,user2,user3 \
  --env=USER_PERMISSIONS=user4:uat;prod,user5:uat \
  --restart=always \
  --name=drone-promote-auth reptiloid666/drone-promote-auth

PRIVILEGED_USERS -- comma-separated list of users that are authorized to promote to any env USER_PERMISSIONS -- comma-separated list of maps where key is username and value is semicolon-separated list of envs the user is authorised to promote to

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

DRONE_VALIDATE_PLUGIN_ENDPOINT=http://1.2.3.4:3000
DRONE_VALIDATE_PLUGIN_SECRET=bea26a2221fd8090ea38720fc445eca6

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 81.0%
  • Starlark 13.7%
  • Dockerfile 3.9%
  • Makefile 1.4%