It would be nice if there are tests to check for these scenarios:
SHOW_FEDERATED_AS_INTERNAL (show_federated_shares_as_internal)
SHOW_FEDERATED_TO_TRUSTED_AS_INTERNAL (show_federated_shares_to_trusted_servers_as_internal)
Originally posted by @nfebe in #52012 (review)