Hey guys, I wanted to ask your opinion if it makes sense to store a friendlist in the kratos identity (Metadata or Trait) or if it makes more sense to have the application store it in its own database.
s
steep-lamp-91158
11/02/2023, 4:32 PM
you will not really have a way to query it nor regular updates will be particularly fun... I don't think this makes sense beyond a very crude PoC
a
abundant-france-47554
11/02/2023, 5:01 PM
Thank you I managed to convince them that friendlists are "profile data" which is better stored elsewhere. We don't even store usernames in a trait....
s
steep-lamp-91158
11/02/2023, 5:17 PM
the identity should only have the data that "identify" it, like general PII (name, contact methods, ...), an internal ID, or similar stuff
steep-lamp-91158
11/02/2023, 5:18 PM
especially data you want to use for other stuff than authentication should probably not be in the identity