Today I have discovered that all new users are created with the federated scope by default. So, if you occasionally forget to disable federation and your cloud is open occasionally than all other users can find you just knowing the domain name. I think this is completely wrong and the scope should be local until changed.
| test_user | {"displayname":{"value":"Test user","scope":"v2-federated","verified":"0"},"address":{"value":"","scope":"v2-local","verified":"0"},"website":{"value":"","scope":"v2-local","verified":"0"},"email":{"value":"test@mydomain.tld","scope":"v2-federated","verified":"0"},"avatar":{"value":"","scope":"v2-federated","verified":"0"},"phone":{"value":"","scope":"v2-local","verified":"0"},"twitter":{"value":"","scope":"v2-local","verified":"0"},"fediverse":{"value":"","scope":"v2-local","verified":"0"},"organisation":{"value":"","scope":"v2-local","verified":"0"},"role":{"value":"","scope":"v2-local","verified":"0"},"headline":{"value":"","scope":"v2-local","verified":"0"},"biography":{"value":"","scope":"v2-local","verified":"0"},"profile_enabled":{"value":"0","scope":"v2-local","verified":"0"}} |
Bug description
Today I have discovered that all new users are created with the federated scope by default. So, if you occasionally forget to disable federation and your cloud is open occasionally than all other users can find you just knowing the domain name. I think this is completely wrong and the scope should be local until changed.
Steps to reproduce
select * from oc_accounts where uid="test_user";in your nc database.So, the displayame, email are of
federatedscope.Expected behavior
The default values for the newly created users should be
local. If needed, a user can make it federated or whatever.Nextcloud Server version
32
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response