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

feat: Configurable default action https listener #391

Conversation

aalvarezaph
Copy link
Contributor

Make the ALB https listener default action configurable

Description

This PR adds a new variable alb_https_default_action that allows configuring the default action for the ALB https listener.

Motivation and Context

In my scenario, I wanted the default action to be a blocking one (send a fixed response instead of forwarding to Atlantis target group).

The reason for it is that I'm adding a rule that grants access through OIDC Authentication, but for that to make sense I need to have a default rule that doesn't forward.

Currently, this default action is hardcoded so this PR adds a variable to allow overriding it.

Breaking Changes

No breaking change, the new variable defaults to the value that preserves current behaviour

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Make the ALB https listener default action configurable
@aalvarezaph aalvarezaph changed the title feat: configurable default action https listener feat: Configurable default action https listener Jan 3, 2024
@aalvarezaph
Copy link
Contributor Author

@bryantbiggs sorry for tagging you, but is there anything else needed from my side?

@bryantbiggs bryantbiggs merged commit 7e75eec into terraform-aws-modules:master Jan 18, 2024
10 of 11 checks passed
antonbabenko pushed a commit that referenced this pull request Jan 18, 2024
## [4.1.0](v4.0.8...v4.1.0) (2024-01-18)

### Features

* Configurable default action https listener ([#391](#391)) ([7e75eec](7e75eec))
@antonbabenko
Copy link
Member

This PR is included in version 4.1.0 🎉

@aalvarezaph
Copy link
Contributor Author

aalvarezaph commented Jan 22, 2024

@antonbabenko how is this propagated to Terraform registry? (registry still shows 4.0.8 as latest)

@aalvarezaph aalvarezaph deleted the https_listener_default_action_configurable branch January 22, 2024 12:12
@aalvarezaph aalvarezaph restored the https_listener_default_action_configurable branch January 22, 2024 12:13
@bryantbiggs
Copy link
Member

its usually automatic based on the tags created - looks like the registry didn't catch those or pick those up. Anton should be able to re-sync it when he gets a chance, looks like 4.2.0 should be latest

@aalvarezaph
Copy link
Contributor Author

its usually automatic based on the tags created - looks like the registry didn't catch those or pick those up. Anton should be able to re-sync it when he gets a chance, looks like 4.2.0 should be latest

Thx for the heads up!

@antonbabenko
Copy link
Member

It is fixed by resyncing.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants