Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active July 15, 2017 02:43
Show Gist options
  • Save dwallraff/e6dbe475b01eb07199774aa170b50349 to your computer and use it in GitHub Desktop.
Save dwallraff/e6dbe475b01eb07199774aa170b50349 to your computer and use it in GitHub Desktop.
Add a datadog uaac client (for firehose access)
#!/bin/bash
CF_SYS_DOMAIN="sys.cf.com"
CF_UAA_ADMIN_CLIENT_SECRET="client secret from UAA section of ERT"
CF_UAA_DATADOG_CLIENT_SECRET="super_secret_that_you_should_totally_change_no_seriously"
uaac target uaa.${CF_SYS_DOMAIN} --skip-ssl-validation
uaac token client get admin -s ${CF_UAA_ADMIN_CLIENT_SECRET}
uaac client add --name datadog-firehose-nozzle \
--authorities oauth.login,doppler.firehose \
--authorized_grant_types authorization_code,client_credentials,refresh_token \
--scope openid,oauth.approvals,doppler.firehose \
--secret "${CF_UAA_DATADOG_CLIENT_SECRET}" datadog-firehose-nozzle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment