Automatically create sandbox spaces for whitelisted users
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
spec
.codeclimate.yml
.gitignore
.rspec
CONTRIBUTING.md
Gemfile
Gemfile.lock
LICENSE.md
README.md
cf_client.rb
integrate.yml
manifest.yml
monitor.rb
monitor_helper.rb

README.md

cg-sandbox-bot

Code Climate

Monitor Cloud Foundry Cloud Controller users and create a sandbox space for known domains.

The sandbox bot monitors the cloud.gov UAA (User Account and Authentication) server for new accounts. If a new account is created with an email address at a federal domain name (using this list), it will automically create a user space within that organization in cloud.gov - creating a new organization if one does not already exist.

See also: https://github.com/18F/cg-sandbox - which purges sandbox resources.

Creating UAA client

uaac client add sandbox-bot \
	--name "UAA Sandbox Monitor" \
	--scope "cloud_controller.admin, cloud_controller.read, cloud_controller.write, openid, scim.read" \
	--authorized_grant_types "authorization_code, client_credentials, refresh_token" \
	-s [your-client-secret]

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.