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(tls_activation): support mutual_authentication_id in domain activation at creation #875

Merged

Conversation

landrew57
Copy link
Contributor

@landrew57 landrew57 commented Jul 19, 2024

  • add test case for activation with mTLS

This fails on main because the mutual_authentication_id is not set on an activation when it is created
but it is set in the terraform state.

  • mutual_authentication_id cannot be set when activation is created

Update the domain activation once it has been created to add the mutual_authentication_id to the configuration.

Related to /issues/870 and #873

This adds a (failing) test-case for creating a domain activation
with a mutual authentication configuration. Currently the test
case fails because the check on the resource shows it does
not match the state.
@landrew57 landrew57 force-pushed the fix-mutual_authentication_id-set-when-creating branch from 583ac5c to b6fd587 Compare July 22, 2024 07:47
The mutual_authentication_id can only be set once an activation has
already been created. This commit implements the Update call
immediately after the Create call if the mutual_authentication_id
is set in the resource configuration.

It fixes the failing test case added in the previous commit.
@landrew57 landrew57 force-pushed the fix-mutual_authentication_id-set-when-creating branch from b6fd587 to d7de6a6 Compare July 22, 2024 07:49
@landrew57 landrew57 marked this pull request as ready for review July 22, 2024 07:50
@landrew57 landrew57 changed the title Add test-case for mutual_authentication_id in domain activation feat: support mutual_authentication_id in domain activation at creation Jul 22, 2024
@kpfleming
Copy link
Contributor

This looks good so far, I'll pull it down to my machine and run the acceptance tests.

@kpfleming kpfleming self-assigned this Jul 22, 2024
Copy link
Contributor

@kpfleming kpfleming left a comment

Choose a reason for hiding this comment

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

Acceptance test passes.

@kpfleming kpfleming merged commit 677e5b0 into fastly:main Jul 23, 2024
9 checks passed
@kpfleming
Copy link
Contributor

Thank you for the contribution!

@landrew57
Copy link
Contributor Author

Hey @kpfleming do you know when a new release will be available with this change?

@kpfleming
Copy link
Contributor

We haven't scheduled one yet, but if possible I'll get one made early next week.

@kpfleming kpfleming changed the title feat: support mutual_authentication_id in domain activation at creation feat(tls_activation): support mutual_authentication_id in domain activation at creation Aug 15, 2024
@kpfleming
Copy link
Contributor

Version 5.12.0 was just released.

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.

2 participants