Bulwark of Harmony is a defensive tradition. It's in-game text is below:
It seems clear that ship build speed only takes effect while in a defensive war. However, it's not really clear if the same restriction applies to the fire rate bonus. Is the fire rate bonus only active while in a defensive war or do you need to only be within your own borders?