Australia has signed a face-saving “code of conduct” with Indonesia, which commits the two countries to not using intelligence to “harm” the other. The move has been welcomed by both sides of politics and drawn a line under the rift caused by last year’s revelation in The Guardian that Australia had spied on the Indonesian president and his wife, among other senior officials.

The revelation was based on documents supplied by NSA whistleblower Edward Snowden and was handballed to The Guardian’s Australian outfit (and co-published by the ABC), which traded on it for weeks -- sending a correspondent to Jakarta to cover the fallout from the perspective of Indonesia’s leaders.