How can I integrate rook s3 storage with gitlab

I'm trying to integrate rook s3 storage with gitlab, but they're secret formats aren't compatible. See here for more details.

Other projects, like argo, use syntax like this for better cross-compatibility. As you can see, using argo's foramt, I could pull the credentials I care about from any secret in the namespace. This might be something to consider going forward.

If you have any suggestions on how to solve my issue I'd really appreciate it.