Disable SAML SSO on Snapshot Instance

SonarQube 8.7.1 Enterprise

Log into web app backed by snapshot database instance that was originally configured using org’s SAML SSO.

Web app is off the shelf Docker image.
Only the database is a snapshot.
SAML SSO is correctly configured in production.
I want to be able to test new infrastructure using a copy of production data.

Ultimate goal is to test new infrastructure with a copy of production data.
I’m focused on SAML SSO, but I am open to other ideas for achieving this goal.


Welcome to the community!

After setting up your copy, you’ll run a script to make the web API calls to sanitize your copy instance appropriately. The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

However, authenticating that first call to disable SAML is a small conundrum. I think you’ll either need a ‘native’ SQ user in the production DB (so that it’s there in the copy to be used) or you’ll need to reach directly into the database to toggle that setting. Neither is really optimal and to be clear we don’t encourage, endorse or support making changes directly in your DB. And your situation isn’t one we’ve really planned for. :woman_shrugging: