I used to have a cartoon posted at my desk, the picture had a little man at his desk pointing down the hall. The caption was "It is amazing what you can do when you don't mind who gets the credit."
It is so true, but do not fret, cream rises and you will be well known for your good work.
At one time I was a photographer. In charge of the photo lab was an NCO that knew more about the Army than photography. I referred to him as "my pillow", for when anything went wrong he would get the blame because he was "in charge". When the photo lab accomplished something out of the ordinary the recognition would go to anyone but the NCO. It was widely known that he couldn't be counted on when it came to photography.
The rest of us were concerned about the quality of the product, we didn't need to let people know how diligent we were. Our commitment was evident. Most of us didn't wish to be in the Army, but we were dedicated to our craft, and it mattered little who the employer was.