Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-remote open registration #826

Merged
merged 2 commits into from
Jan 17, 2015

Conversation

mattbostock
Copy link

...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.


Also, remove the capability package as it's no longer required. This commit can always be reverted later if it's needed again in future.

...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.
It's no longer used. This commit can always be reverted later if it's
needed again.
@mattbostock
Copy link
Author

Fixes #805.

@bradrydzewski
Copy link

this is really great. much appreciated.

bradrydzewski added a commit that referenced this pull request Jan 17, 2015
@bradrydzewski bradrydzewski merged commit b44bdd7 into harness:master Jan 17, 2015
@dcarley
Copy link

dcarley commented Jan 19, 2015

👍

bot-harness pushed a commit that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants