I'd be conscious that embassy's will rarely support you if you are found to be breaking local laws (even if they are ones we disagree with)
In any thread about work place homophobia there's always some faux "how would people know if you don't rub it in their faces"
The answer is exactly the same as how I know Linda I sit next to at work is married to Bob with three kids
My experience in uganda was that the people that lived there were like people in any country, chatty, sociable, interested in my life and that wanted to do common things like add me on Facebook and Instagram
For people not to know (which I would recommend is important in uganda from my experience):
Op firstly can't talk about her wife at all, that means no sharing stories about home life, or stories where partner is overly present. When people are sharing stories about their lives I had to just nodd and pretend I'd not had similar experiences.
Op can't have photos, not only in her place of residence (as is likely to be visited by seen by friends socially) but also generally available online. People can and will search you on Facebook even though where I lived there wasn't electricity in 90% of the buildings, people still had phones and Facebook
Op would have to be careful about things like facetiming her partner, if she's in places where other people might over hear and be aware of her facetiming one woman excessively.
That's fairly tolerable short term, but longer term it becomes an issue if you just want to say I love you or ask questions that reveal your relationship eg about the kids or talk about getting the boiler replaced as but can be overheard if the accomodation is dorm like for example or shared
Ultimately the person that nearly outed me was a colleague who I worked with for a long time thus naturally was aware. He was telling a story that happened to involve a partner of mine, and in the course of telling the story gave away some obvious details. Two people present clearly clocked it, but luckily we were leaving fairly shortly afterwards.