Skip to content

Add Relay CLI tool to run commands as if you were talking to Cog #77

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

Open
christophermaier opened this issue Mar 31, 2017 · 0 comments
Open

Comments

@christophermaier
Copy link
Collaborator

From @imbriaco on February 29, 2016 18:51

Cog commands are simple executables that are executed by Relay, with their arguments and options validated and populated in a specially designed environment. We should explore creating standalone utilities for executing these on the command line in the event that Cog is unavailable for any reason (chat provider outage, database failure, etc).

High level notes:

  • Simple CLI tool converts command line arguments for use by Cog and populates the environment accordingly. e.g. cogexec mist:ec2-find --region=us-east-1.
  • Other functions: list bundles, show help for a bundle. We have the necessary information available in the bundle configuration files.
  • Pipelines are explicitly out of scope. Single command invocations only.
  • No permission validation. Permission is assumed If users can login to the Relay host and have necessary system permissions to execute cogexec and access bundles, command_config, and related files.
  • Any action performed by cogexec should be logged to the audit log.

Much more definition is necessary, but this captures the essence of the problem we're trying to solve.

Copied from original issue: operable/cog#321

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

No branches or pull requests

1 participant