THE case of Private Bradley Manning, convicted this week by a military court of leaking secrets to the WikiLeaks website and now facing up to 136 years in jail, looks as if it might be the high-water mark of America’s zealous security culture. It certainly ought to be. After the attacks of September 11th 2001, George Bush tipped the balance too far from liberty towards security, and it has stayed there under Barack Obama.

As Mr Manning awaits his sentence, Edward Snowden, a contractor for the American intelligence services, was reported on August 1st to have gone to Russia, where he has been offered a year's temporary asylum. He had set out to shed light on the warrantless warehousing by the National Security Agency (NSA) of private data belonging to millions of American citizens, possibly in breach of the Patriot Act and the Fourth Amendment. His revelations continued this week. Meanwhile the Obama administration has seized journalists’ telephone records and pursued leakers with a legal sledgehammer.

Still unjust, unwise and unAmerican

This newspaper is a wholehearted supporter of the United States and its commitment to individual freedom. At the same time we acknowledge that any government’s first responsibility is to protect its own citizens. It made sense to adjust the balance between liberty and security after September 11th. But America’s values ought not to have become casualties of Mr Bush’s war on terror.

The indefinite incarceration of prisoners in Guantánamo Bay without trial was a denial of due process. It was legal casuistry to redefine the torture of prisoners with waterboarding and stress positions as “enhanced interrogation”. The degradation of Iraqi criminals in Abu Ghraib prison in 2003, extraordinary rendition and the rest of it were the result of a culture, led by Dick Cheney and Donald Rumsfeld, that was both unAmerican and a recruiting sergeant for its enemies. Mr Obama has stopped the torture, but Guantánamo remains open and the old system of retribution has often been reinforced.

Inside America's surveillance state Neither Mr Snowden nor Mr Manning is a perfect ambassador for a more liberal approach. Both broke the law by revealing secrets they were under oath to keep. America’s spying agencies cannot function if their employees squawk—and, when “mass leaking” has become politically fashionable and technically feasible, deterrents are needed. Mr Manning’s public-interest defence is especially thin: he leaked over 700,000 files with little judgment about what harm or good this would do. Mr Snowden’s initial disclosure was selective, but his flight to Hong Kong and Russia was damaging, and he has ended up disclosing secrets about how America spies on China. America is right to want to put him on trial, like Mr Manning. But both men also show how America still leans too far towards security over liberty. In Mr Snowden’s case, it has to do with what he revealed. When he fled, the securocrats argued that the NSA’s data-warehousing was vetted by Congress and a national-security court; the executive was supposedly being held to account by the other two branches of government. That argument is looking ever more rickety: in fact, the NSA lives under a simulacrum of judicial and legislative oversight. The linchpin of the system is the secret court, which interprets government powers under the law as well as issuing routine warrants. But Americans do not know about its rulings, and so cannot challenge them. In theory if Congress disputes the court’s judgments or the NSA’s behaviour, it can amend the law. Yet the politicians who know what is going on in secret cannot discuss their concerns in public and officials have felt safe lying to congressional hearings. Unless the court is open to challenge from the public, it risks becoming the creature of the executive; perhaps it already is. Because of Mr Snowden, that Kafkaesque system is now under scrutiny. The disproportionate severity of Mr Manning’s treatment matters, too. Under arrest, he was in effect kept in solitary confinement under harsh conditions for nine months (for his own protection, apparently: a nice Putinesque touch). The prosecution charged him under the draconian Espionage Act of 1917, originally designed to punish traitors and spies, not whistle-blowers. It accused him of aiding the enemy, a crime that carries the death penalty, on the flimsy ground that his leaks were published online where al-Qaeda could see them. Even though the judge scotched that, she could still put a well-intentioned but misguided young man in jail for a century.

Such severity is counterproductive as well as unjust. Every democracy needs its secrets. But to uncover the inevitable abuses of power, every democracy needs leaks too. Mr Snowden’s supporters add that the whistle-blower fled into the arms of first the Chinese and then the Russians because of Mr Manning’s harsh treatment. Better for America if he had sought to justify himself in an American court.

In the balance

Few Americans have much sympathy for Mr Manning or Mr Snowden. Yet the attitude towards secrecy is changing. For the first time since 2004, when Pew, a pollster, started asking them, fewer Americans say that the government should boost security than say it has gone too far in restricting civil liberties. Jim Sensenbrenner, a Republican congressman from Wisconsin and one of the authors of the Patriot Act, has said that the NSA’s dragnet was not what the act intended. An amendment to limit the NSA’s data-collection was defeated in the House of Representatives on July 24th by only seven votes. A growing chorus in the Senate wants to tighten oversight of the agency. Even Mr Obama has revived his pledge to close Guantánamo and begun to reveal more about the NSA’s programmes.

Every intelligence service will impinge on individual liberties—and America’s has succeeded in its main job: to prevent attacks. But every democracy also needs to keep those impingements in check and to hold its spies to account. Of all the world’s democracies, the one that should best understand this tension is the United States. Its constitution rests on the notion that the people in charge are fallible. As Mr Manning waits to hear the judge’s sentence, it is time to remember that.