Skip to content

Remove slo from saml metadata#10453

Merged
vrajmohan merged 2 commits intomainfrom
remove-slo-from-saml-metadata
Apr 22, 2024
Merged

Remove slo from saml metadata#10453
vrajmohan merged 2 commits intomainfrom
remove-slo-from-saml-metadata

Conversation

@vrajmohan
Copy link
Contributor

No description provided.

@vrajmohan vrajmohan requested a review from Sgtpluck April 17, 2024 16:58
@vrajmohan vrajmohan force-pushed the remove-slo-from-saml-metadata branch from f918fab to c73f6da Compare April 17, 2024 20:22
Copy link
Contributor

Choose a reason for hiding this comment

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

[question] is this a testing artifact or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is needed only because the review app uses the production config. I have included it as a separate commit that will be dropped before the merge.

Copy link
Contributor

Choose a reason for hiding this comment

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

[thought] i think we can't drop the config value until after the code change is deployed. 50-50 state deployment is affected by the config -- can you check to see if we need to keep this in here for deployment, and then have another PR to clean it up?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not 100% confident, but I think it'd be okay, since the old boxes would still have both the config value and code paths using the config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we can't be 100% confident, I am OK with breaking it up into 2 deploys. Is there a way we can get to 100% confidence, perhaps by looping in other engineers? This also indicates the need to document the details of how production configuration works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Digging into this further, I agree with @aduth that the each instance would either have the config value and code that uses it, or neither. In theory, we should be good. What do you all think?

Copy link
Contributor

Choose a reason for hiding this comment

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

i don't know anything about how this works, so if you both are reasonably confident, i'm happy to trust you.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just hopping on to confirm, dropping a default config value in a PR is safe, because as previously stated, each box has its own in-memory copy of the config.

Removing the value from the S3 in the deployed env before this code is deployed: unsafe (because we may need to roll back, then the re-deployed old code would look for configs that aren't there)

@vrajmohan vrajmohan marked this pull request as ready for review April 19, 2024 18:36
**Why**:
- Including the SingleLogoutService endpoints with an empty Location
  attribute caused problems for some partners when validating the
  metadata

**How**:
- The saml_idp gem was updated to not include the SingleLogoutService
  endpoints in the metadata
meant to change, and so that only one database call is made.
- The `include_slo_in_saml_metadata` flag was not serving any real
  purpose after this change and was removed

changelog: User-Facing Improvements, Metadata, Remove SingleLogoutService from SAML metadata
@vrajmohan vrajmohan force-pushed the remove-slo-from-saml-metadata branch from 88dcc5c to bca4ee7 Compare April 22, 2024 19:56
@vrajmohan vrajmohan merged commit 712c0ec into main Apr 22, 2024
@vrajmohan vrajmohan deleted the remove-slo-from-saml-metadata branch April 22, 2024 20:23
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.

4 participants