Commit graph

8 commits

Author SHA1 Message Date
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Dan Carley
8fa473b07a Support org whitelists for GitHub+GHE remotes
Allow the GitHub and GitHub Enterprise remotes to restrict who can login
based on a user's organisation membership. This can be used as a safe
addition to open registration and also ensures that access is revoked when a
user is subsequently removed from the org. The default is not to restrict at
all.
2015-01-15 17:05:53 +00:00
Brad Rydzewski
0dce99f5f4 instructs Drone to ignore cert verification if self-signed 2014-11-17 11:18:58 -08:00
Brad Rydzewski
2cca926a06 vendored goauth2, see https://code.google.com/p/goauth2/issues/detail?id=31 2014-09-08 23:57:48 -07:00
Brad Rydzewski
9455dbab9f improved error messaging in Github's GetLogin 2014-09-08 23:09:00 -07:00
Brad Rydzewski
31b1ed1f48 added a private mode flag for github enterprise, defaulted to true 2014-09-07 11:26:16 -07:00
Brad Rydzewski
ca3d15bca2 refactored how remotes work and how (some) config is loaded 2014-09-03 00:23:36 -07:00
Brad Rydzewski
38379992bf refactored plugin/remote and adapted @bugBugagazavr Gitlab code 2014-09-02 00:18:17 -07:00