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

Upgrade to rover cli #7

Merged
merged 4 commits into from
Jan 26, 2022
Merged

Conversation

Imran99
Copy link
Owner

@Imran99 Imran99 commented Jan 26, 2022

Must be called using exec since index.js is not defined for the @apollo/rover module (it downloads a platform specific binary at run time).

Tested in dev env

image
image

`--key=${apolloKey}`
]);
process.env.APOLLO_KEY = apolloKey;
exec.execSync(`npx rover subgraph publish ${name}@${variant} --schema ${schema} --name ${service} --routing-url ${url}`, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, is this vulnerable to injections? what if name was ; echo $AWS_SECRET_KEY ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be however, in this case the user is always going to be the service owner and none of the arguments come from client input. You could just as well add an npm script to the build to echo AWS_SECRET_KEY too.

@Imran99 Imran99 merged commit 7017feb into master Jan 26, 2022
@Imran99 Imran99 deleted the feature/WB-12212_upgrade_to_rover_cli branch January 26, 2022 23:59
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.

3 participants