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

Add request letsencrypt certificate #508

Conversation

sanjaykesavan
Copy link
Contributor

@sanjaykesavan sanjaykesavan commented Aug 31, 2023

Adds support for request of a Let's Encrypt certificate through the sandbox alias creation as new flag -,--request-letsencrypt-certificate to command sfcc-ci sandbox:alias:create

Request a valid certificate to be generated on the fly through Lets Encrypt. This action consumes certificate requests from the domain quota imposed by Let's Encrypt, please read the Alias documentation carefully.

@tobiaslohr tobiaslohr added this to the 2.12.0 milestone Sep 22, 2023
@tobiaslohr tobiaslohr self-requested a review September 22, 2023 08:53
@tobiaslohr tobiaslohr added the enhancement New feature or request label Sep 22, 2023
Copy link
Contributor

@tobiaslohr tobiaslohr left a comment

Choose a reason for hiding this comment

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

see my comment below on how Boolean flags should be passed

cli.js Outdated
@@ -1047,6 +1047,8 @@ program
.option('-h, --host <host>','hostname alias to register')
.option('-j, --json', 'Optional, formats the output in json')
.option('-u, --unique', 'Optional, define alias as unique, false by default')
.option('-l, --request-letsencrypt-certificate <requestLetsncrypt>', 'Optional, ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Boolean flags should be passed as name only arguments to overwrite the default value (false in this case). So, instead of:

sfcc-ci sandbox:alias:create --request-letsencrypt-certificate true

it should be

sfcc-ci sandbox:alias:create --request-letsencrypt-certificate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@tobiaslohr
Copy link
Contributor

Thanks a lot @sanjaykesavan for the efforts! Could you please have a look at my comment (passing of Boolean flag)?

@tobiaslohr tobiaslohr merged commit 7eacb62 into SalesforceCommerceCloud:master Sep 22, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants