Skip to content

feat: add http.redirect_to_https field to service manifest#4003

Merged
mergify[bot] merged 27 commits intoaws:mainlinefrom
dannyrandall:chore/http-redirect
Sep 20, 2022
Merged

feat: add http.redirect_to_https field to service manifest#4003
mergify[bot] merged 27 commits intoaws:mainlinefrom
dannyrandall:chore/http-redirect

Conversation

@dannyrandall
Copy link
Copy Markdown
Contributor

adds the ability to disable the ALB redirect from http -> https when using a custom domain.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@dannyrandall dannyrandall requested a review from a team as a code owner September 15, 2022 21:16
@dannyrandall dannyrandall requested review from efekarakus and removed request for a team September 15, 2022 21:16
Comment thread internal/pkg/cli/deploy/svc.go Outdated
Comment thread internal/pkg/cli/deploy/svc.go Outdated
Comment thread internal/pkg/cli/deploy/svc_test.go
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 15, 2022

Codecov Report

Merging #4003 (b14e7a7) into mainline (cb07b65) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           mainline    #4003      +/-   ##
============================================
+ Coverage     68.65%   68.69%   +0.03%     
============================================
  Files           248      248              
  Lines         35067    35085      +18     
  Branches        264      264              
============================================
+ Hits          24076    24100      +24     
+ Misses         9801     9797       -4     
+ Partials       1190     1188       -2     
Impacted Files Coverage Δ
internal/pkg/template/workload.go 37.85% <ø> (ø)
internal/pkg/cli/deploy/svc.go 48.11% <100.00%> (+0.79%) ⬆️
...nal/pkg/deploy/cloudformation/stack/backend_svc.go 85.92% <100.00%> (+0.07%) ⬆️
...rnal/pkg/deploy/cloudformation/stack/lb_web_svc.go 60.72% <100.00%> (+0.15%) ⬆️
internal/pkg/manifest/http.go 85.89% <100.00%> (ø)
internal/pkg/deploy/task.go 0.00% <0.00%> (ø)
internal/pkg/cli/deploy/env.go 71.33% <0.00%> (+0.18%) ⬆️
internal/pkg/deploy/cloudformation/stack/task.go 91.01% <0.00%> (+0.20%) ⬆️
internal/pkg/cli/env_deploy.go 54.72% <0.00%> (+0.22%) ⬆️
internal/pkg/cli/env_package.go 41.30% <0.00%> (+0.32%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Co-authored-by: Parag Sanjay Bhingre <paragbhingre@gmail.com>
@dannyrandall dannyrandall marked this pull request as draft September 16, 2022 17:36
@dannyrandall dannyrandall marked this pull request as ready for review September 16, 2022 18:15
Comment thread internal/pkg/cli/deploy/svc.go Outdated
Comment thread internal/pkg/cli/deploy/svc.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/lb_web_svc.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/lb_web_svc.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/lb_web_svc.go Outdated
Comment thread internal/pkg/cli/deploy/svc.go Outdated
@dannyrandall dannyrandall changed the title feat: add http.redirect field to service manifest feat: add http.disable_redirect field to service manifest Sep 19, 2022
@dannyrandall dannyrandall changed the title feat: add http.disable_redirect field to service manifest feat: add http.redirect_to_https field to service manifest Sep 20, 2022
{{- end}}
Conditions:
{{- if .Aliases }}
{{- if .AllowedSourceIps}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh is this a bug fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"bug" fix, yeah :)

Secrets: convertSecrets(s.manifest.BackendServiceConfig.Secrets),
Aliases: aliases,
HTTPSListener: s.httpsEnabled,
HTTPRedirect: s.httpsEnabled,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

gotcha, so we're only supporting this field for now for LBWS as there is no need of a cdn for internal ALBs 👍

@mergify mergify Bot merged commit ad2f4ad into aws:mainline Sep 20, 2022
@dannyrandall dannyrandall deleted the chore/http-redirect branch October 6, 2022 16:44
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.

6 participants