Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
An Heroku plug-in named "teamadmin" extending the Heroku Platform API to list, add, update, and delete Heroku Organization/Team members for Team Apps using wildcards.
An Heroku plug-in named "teamadmin" extending the Heroku Platform API to list, add, update, and delete Heroku Organization/Team members for Team Apps using wildcards.
This plug-in requires:
elilillyco
orginisation within Lilly.Open a shell/command window.
Verify Node version by typing in the following command at the prompt:
node -v
You should see v8.1.4 or similar. You do not need to have version 8.x to run this Heroku plugin.
Verify npm version by typing in the following command at the prompt:
npm -v
You should see 5.0.3 or similar
Verify Heroku CLI version by typing in the following command at the prompt:
heroku --version
You should see heroku-cli/6.13.9-58fc9ef (windows-x64) node-v8.2.1 or similar. NOTE: please ensure you are running the latest version of the Heroku CLI. Please run heroku update
to update your CLI.
To use plug-in as a typical user -
Install the teamadmin plugin by typing the following command at the prompt:
heroku plugins:install teamadmin
If you are installing the add-on on the Lilly network, please ensure you have configured the proxy for the Heroku CLI. Please find more information here.
Log in to Heroku by typing the following command at the prompt:
heroku auth:login --sso
Supply your Heroku User Account credentials when prompted (This will be your Lilly account credentials).
Note: The teamadmin
plugin is limited by your account and its permissions.
If you attempt to perform any add, delete, or update operation, your Heroku account must have appropriate permission to do so. Otherwise, (portions of) your request may not be executed.
There are 5 commands available in teamadmin:
More information can be seen by typing the following at the prompt:
heroku help teamadmin
More information about each command can be seen by typing the following at the prompt:
heroku help teamadmin:COMMAND
for example, heroku help teamadmin:getTeamMembers
With this command it is possible to preview the result by adding the --dryrun flag to the command.
For example, the command entered at the command prompt:
$ heroku teamadmin:addTeamAppUser --dryrun --teams elililly* --apps *test* --email someone@somedomain.com --perms view,deploy
may generate this response:
Request Started.
Add someone@somedomain.com
to Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User might have been added with 'permissions': view,deploy
App: automation-test-2 - User might have been added with 'permissions': view,deploy
Request Completed. Processed 2 team(s) 2 application(s)
Removing the --dryrun flag will actually execute the command with result similar to:
$ heroku teamadmin:addTeamAppUser --teams elililly* --apps *test* --email someone@somedomain.com --perms view,deploy
Request Started.
Add someone@somedomain.com
to Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User added @ 2017-01-01 12:00:00 AM
App: automation-test-2 - User added @ 2017-01-01 12:00:00 AM
With this command it is possible to preview the result by adding the --dryrun flag to the command.
For example, the command entered at the command prompt:
$ heroku teamadmin:deleteTeamAppUser --dryrun --teams elililly* --apps *test* --email someone@somedomain.com
may generate this response:
Request Started.
Delete someone@somedomain.com
from Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User might have been deleted
App: automation-test-2 - User might have been deleted
Request Completed. Processed 2 team(s) 2 application(s)
Removing the --dryrun flag will actually execute the command with result similar to:
$ heroku teamadmin:deleteTeamAppUser --teams elililly* --apps *test* --email someone@somedomain.com
Request Started.
Delete someone@somedomain.com
from Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User deleted @ 2017-01-01 12:00:00 AM
App: automation-test-2 - User deleted @ 2017-01-01 12:00:00 AM
A typical command entered at the command prompt:
$ heroku teamadmin:getTeamAppRoster --teams elililly* --apps *test*
may generate this response:
Team Application Collaborator Role Permissions
------------------------- ------------------------- ---------------------------------------- ------------ ------------
elilillyco dashboard-testing doe_john@lilly.com member deploy
elilillyco-evaluation automation-test-2 elilillyco-evaluation@herokumanager.com owner owner
elilillyco-evaluation automation-test-1 buck_jane@lilly.com member view
Two optional output formats are supported:
flag description
--csv generates Comma-Separated Variable (CSV) format
--json generates Javascript Object Notation (JSON) format
This command will put a CSV result in a file named 'myroster.csv':
$ heroku teamadmin:getTeamAppRoster --teams elililly* --apps *test* --csv >myroster.csv
This command will put a JSON result in a file named 'myroster.json':
$ heroku teamadmin:getTeamAppRoster --teams elililly* --apps *test* --json >myroster.json
A typical command entered at the command prompt:
$ heroku teamadmin:getTeamMembers --teams elililly*
may generate this response:
Team Member Role
------------------------- ------------------------------- ---------------------------- ------------
elilillyco khan_kublai@network.lilly.com admin
elilillyco-evaluation buck_jane@network.lilly.com admin
elilillyco-evaluation doe_john@network.lilly.com member
Two optional output formats are supported:
flag description
------- ---------------------------------------------------
--csv generates Comma-Separated Variable (CSV) format
--json generates Javascript Object Notation (JSON) format
This command will put a CSV result in a file named 'teamlist.csv':
$ heroku teamadmin:getTeamMembers --teams elililly* --csv >teamlist.csv
This command will put a JSON result in a file named 'teamlist.json':
$ heroku teamadmin:getTeamMembers --teams elililly* --json >teamlist.json
With this command it is possible to preview the result by adding the --dryrun flag to the command.
For example, the command entered at the command prompt:
$ heroku teamadmin:updateTeamAppUser --dryrun --teams elililly* --apps *test* --email someone@somedomain.com --perms view,deploy
may generate this response:
Request Started.
Update someone@somedomain.com
for Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User might have been updated with 'permissions': view,deploy
App: automation-test-2 - User might have been updated with 'permissions': view,deploy
Request Completed. Processed 2 team(s) 2 application(s)
Removing the --dryrun flag will actually execute the command with result similar to:
$ heroku teamadmin:updateTeamAppUser --teams elililly* --apps *test* --email someone@somedomain.com --perms view,deploy
Request Started.
Update someone@somedomain.com
for Teams named like: elililly*
and Apps named like: *test*
Team: elilillyco
someone@somedomain.com is not a member of this team, skipping team.
Team: elilillyco-evaluation
App: dashboard-testing - User updated @ 2017-01-01 12:00:00 AM with permissions view,deploy
App: automation-test-2 - User updated @ 2017-01-01 12:00:00 AM with permissions view,deploy
The current set of commands available through the "access" plug-in for Heroku does not support modifying multiple apps with a single request. This plug-in provides this capability with the use of a wildcard character * in the specifications for teams or apps to modify.
To further develop the plug-in -
You will need to link this plugin to heroku after cloning this repository to continue development.
To link the project:
Open a shell/command window
Navigate to the root of the this project
Type the following command at the prompt:
heroku plugins:link
To see a list of already installed plugins type the collowing command at the prompt:
heroku plugins
This project uses yarn for testing.
Type the following command that the prompt:
yarn test
Eli Lilly and Company Responsible IT Organization: GIS - Cirrus and Enterprise Architecture Team Maintainer Group: CIRR_BATCH_ADMIN
ISC
Copyright 2017 Eli Lilly and Company
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
FAQs
An Heroku plug-in named "teamadmin" extending the Heroku Platform API to list, add, update, and delete Heroku Organization/Team members for Team Apps using wildcards.
We found that teamadmin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.