Should I use my official legal name or the one I'm known by on my Master's dissertation?
You could write your name as Robert "Bob" KubaFYI, if your university policy allows for it. At least in the US, that's a standard stylization to indicate a nickname or unofficial name one goes by regularly. Classmates of mine who were international students from Eastern Asia and had traditional legal names but went by English names commonly did this.