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

Adding S3 support for HTTP domain validation #1970

Merged
merged 11 commits into from
Jul 27, 2023

Conversation

kingcdavid
Copy link
Contributor

@kingcdavid kingcdavid commented Jul 24, 2023

PR to allow upload token to S3 for HTTP domain Validation

Fixes #1969
Closes #334

@ldez

This comment was marked as outdated.

@ldez ldez removed the state/need-user-tests Need users to test functionality label Jul 25, 2023
@kingcdavid

This comment was marked as outdated.

@ldez ldez added the state/need-user-tests Need users to test functionality label Jul 25, 2023
@ldez ldez marked this pull request as ready for review July 25, 2023 10:32
@ldez ldez force-pushed the feature/s3-as-http-provider branch from f130bd6 to aac8250 Compare July 25, 2023 13:57
@ldez ldez force-pushed the feature/s3-as-http-provider branch from aac8250 to a6d00c4 Compare July 25, 2023 14:00
@ldez ldez self-requested a review July 25, 2023 14:03
@ldez ldez force-pushed the feature/s3-as-http-provider branch from 9bc50f7 to 812b941 Compare July 25, 2023 14:48
@ldez
Copy link
Member

ldez commented Jul 25, 2023

I follow your PR and migrate route53 and lightsail to the SDK v2: #1973

@ldez
Copy link
Member

ldez commented Jul 25, 2023

I will ask you to provide a command example and the output of this command. (with redacted information 😉)

@ldez
Copy link
Member

ldez commented Jul 25, 2023

@beornf could you try this PR?

@kingcdavid
Copy link
Contributor Author

kingcdavid commented Jul 25, 2023

I will ask you to provide a command example and the output of this command. (with redacted information 😉 )

$ ./dist/lego -k rsa2048 --domains "<redacted>" --server https://emea.acme.atlas.globalsign.com/directory --kid <redacted> --eab --hmac <redacted>  --http.s3-bucket daveacmetest --http --email <redacted> run 
2023/07/25 13:04:34 [INFO] [<redacted>] acme: Obtaining bundled SAN certificate
2023/07/25 13:04:35 [INFO] [<redacted>] AuthURL: https://emea.acme.atlas.globalsign.com/authz/<redacted>
2023/07/25 13:04:35 [INFO] [<redacted>] acme: use http-01 solver
2023/07/25 13:04:35 [INFO] [<redacted>] acme: Trying to solve HTTP-01
2023/07/25 13:04:41 [INFO] [<redacted>] The server validated our request
2023/07/25 13:04:41 [INFO] [<redacted>] acme: Validations succeeded; requesting certificates
2023/07/25 13:04:42 [INFO] Wait for certificate [timeout: 30s, interval: 500ms]
2023/07/25 13:04:42 [INFO] [<redacted>] Server responded with a certificate.

Copy link

@beornf beornf left a comment

Choose a reason for hiding this comment

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

Missed testing the functionality provider.cleanUp in the s3 test method TestLiveS3ProviderPresent.

providers/http/s3/s3_test.go Outdated Show resolved Hide resolved
@ldez ldez removed the state/need-user-tests Need users to test functionality label Jul 25, 2023
@ldez
Copy link
Member

ldez commented Jul 26, 2023

can you add a small readme inside the package to explain how to set it up (permissions, expectations, ...)?

@ldez ldez added this to the v4.14 milestone Jul 27, 2023
@ldez ldez force-pushed the feature/s3-as-http-provider branch from 7ba6811 to a21d29d Compare July 27, 2023 01:38
@ldez ldez changed the title Adding s3 support for HTTP domain validation Adding S3 support for HTTP domain validation Jul 27, 2023
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez enabled auto-merge (squash) July 27, 2023 10:25
@ldez ldez merged commit 6c13564 into go-acme:master Jul 27, 2023
10 checks passed
@yu-re-ka yu-re-ka mentioned this pull request Oct 25, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Add S3 as HTTP provider
3 participants