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

Secrets cli #657

Merged
merged 7 commits into from
Nov 21, 2024
Merged

Secrets cli #657

merged 7 commits into from
Nov 21, 2024

Conversation

manojdbos
Copy link
Contributor

(1) npx dbos-cloud app secrets create

(2) npx dbos-cloud app secrets list

Comment on lines 223 to 224
.option("-s, --secretname <string>", "Specify the name of the secret to create")
.option("-v, --value <string>", "Specify the value of the secret to store with the name.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make these mandatory?

I think we can use this method

}
logger.info(` ... app name is ${appName}.`);

logger.info(bearerToken);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this


const body = {'ApplicationName': appName , 'SecretName':secretName, 'ClearSecretValue': secretValue};

console.log(body);
Copy link
Member

Choose a reason for hiding this comment

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

Remove this log

return 1;
}

logger.info(`Secret successfully created!`);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
logger.info(`Secret successfully created!`);
logger.info(`Secret ${secretName} successfully created!`);

logger.error("Failed to get app name.");
return 1;
}
logger.info(` ... app name is ${appName}.`);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
logger.info(` ... app name is ${appName}.`);
logger.debug(` ... app name is ${appName}.`);

} else {
const secrets = res.data as string[];
secrets.forEach((secret) => {
logger.info(secret);
Copy link
Member

Choose a reason for hiding this comment

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

Probably also use console.log here as it's multiple lines.

@manojdbos manojdbos merged commit 5d3a853 into main Nov 21, 2024
2 checks passed
@manojdbos manojdbos deleted the secrets-cli branch November 21, 2024 16:06
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.

4 participants