Rules for spies?

Like a “friends don’t spy on friends” kinda rule?
German cabinet approves new spying rules – Germany’s cabinet approved new rules for its spies Wednesday to lift World War II-era restrictions on offensive cyber operations, sabotage, and espionage.
The changes augur a “revolution” in Berlin’s intelligence infrastructure, the German interior minister said, fueled by a growing perception across Europe that the threat of Russian sabotage and influence operations is increasing as Moscow’s battlefield position deteriorates.