Software Developer (@dmkavanagh) profile picture

Software Developer for many years currently involved in Java, AppSec, Rancher, Storm, AWS, Kubernetes, Cryptography, JSCA

Joined May 2008
Photo by Software Developer (@dmkavanagh)Photo by Software Developer (@dmkavanagh)Photo by Software Developer (@dmkavanagh)Photo by Software Developer (@dmkavanagh)Photo by Software Developer (@dmkavanagh)Photo by Software Developer (@dmkavanagh)
Software Developer retweeted
Briefing UK parliamentarians: "Die or leave. From the Nakba to Gaza, those are the only options Israel has given Palestinians." The UK's sanctions on the illegal occupation are a start. Now: enforce them, extend them to every state and non-state body behind the settlements, and lead a global sanctions regime. Freedom and a just peace are the only acceptable option for the people of Palestine. @UKParliament #Palestine #Gaza
86
317
10
553
16,259
Software Developer retweeted
Tomorrow, December 1, Senate Democrats will choose their majority leader by secret ballot. AIPAC's Chuck Schumer or our pick, Chris Van Hollen. Here's why it matters. On April 15, the Senate voted on whether to advance a resolution blocking the sale of 12,000 more bombs to Israel. Van Hollen voted yes. Schumer voted no. The motion failed, 36 to 63. On Friday, the day after Thanksgiving, Israel struck a Doctors Without Borders (MSF) clinic in Gaza City focused on mental health care for children. Israel killed two unarmed MSF watchmen, Moath Yousef Ali Sobeh and Ahmed Sofyan Mohammed Abu Hassira. The clinic was marked with logos and was familiar to Israel's military. That makes 17 MSF staff killed by Israel in Gaza since October 2023. On Saturday in Madama, south of Nablus, Israeli soldiers entered the home of Hikmat Faraj Al-Qut, 57. His son told Drop Site News that soldiers beat his father, shot him in the hand, and then killed him. His wife, daughters, and grandchildren witnessed the murder. Tomorrow's ballot is secret. Our lawmakers must take a public stand. If a Democrat will represent you in the incoming Senate, call them today and tell them to vote Van Hollen. Capitol switchboard: (202) 224-3121.
27
790
9
3,965
29,454
Software Developer retweeted
From JavaScript basics to real-world projects!
17
88
2,450
Software Developer retweeted
BREAKING: The U.S. military struck a speedboat in the Caribbean, killing six people on board.
126
431
47
923
76,318
Software Developer retweeted
Extremist Israeli settlers set fire to a church and scrawl racist slogans during an attack on the village of Taybeh, east of Ramallah in the occupied West Bank.
15
210
27
257
8,747
Software Developer retweeted
Full Claude Course Master Claude to automate repetitive tasks, build apps without coding, create real portfolio projects, and become more valuable at work.

41
195
6
1,243
2,771,471
Software Developer retweeted
Israeli occupation forces arrested a young Palestinian man during a raid on the Al-Dahiya neighborhood, east of Nablus, in the occupied West Bank.
4
85
1
90
3,131
Software Developer retweeted
Activists in Oslo, Norway, mark the international day of solidarity with the Palestinian people.
23
183
5
434
5,040
Software Developer retweeted
The United States has provided substantial, ongoing financial and military assistance to Israel for more than 40 years—dating back to the 1970s—making Israel the largest cumulative recipient of U.S. foreign aid since World War II.
31
285
11
450
7,547
Software Developer retweeted
Tomorrow at 1 p.m. EST, I’ll be discussing Israel’s violence against Palestinians in the West Bank with @prem_thakker and Dr. Hassan Jabareen of @AdalahCenter. Register below.
3
15
67
11,131
Software Developer retweeted
Israeli National Security Minister Itamar Ben-Gvir lashed out at a lawyer representing a Palestinian prisoner after she demanded that prison guards improve their treatment of Palestinian detainees.
10
66
1
106
4,369
Software Developer retweeted
Federal agents should NOT be immune from criminal prosecution. ICE agent Gregory Morgan Jr. faces up to six years in prison for allegedly pointing a gun at two Minnesota motorists. His lawyers fear this could lead to more prosecutions of federal agents. That’s accountability, not persecution.
133
1,062
53
3,214
30,271
Software Developer retweeted
BREAKING: HELL YES! An ICE agent is now facing up to six years in prison for assault — and his lawyers are warning that it could lead to more ICE prosecutions. To that we can only say: Bring them on! “We are the tip of the spear. And, so, what happens here is going to impact what woke, politically motivated district attorneys around the country are doing to persecute law enforcement agents who are simply doing their job and carrying out the orders of an administration with which they disagree," said attorney Rachel Paulose, who is helping with ICE agent Gregory Morgan’s case. Morgan is the deranged individual who was charged with two counts of second-degree assault with a dangerous weapon after he drove illegally along a Minnesota highway shoulder. A civilian vehicle swerved in front of him and Morgan allegedly aimed his firearm at the occupants. He and his lawyers are absurdly insisting that he feared for his own safety and was ignorant of how local roads work. In reality, this is a case of yet another over-aggressive, overarmed government thug who wanted to flex his power because he believed that he was above the law. He put everyone on that road in danger with his recklessness, then proceeded to abuse his authority and his gun in a way that could have resulted in a loss of life. "The defendant attempts to transform his moment of road rage — committed on a state highway against Minnesotan victims — into a federal enforcement action," prosecutors have stated. Morgan's attorneys are attempting to invoke a federal law from the War of 1812 that permits federal officers to move their cases from state to federal court if their actions are closely enough connected to their "official duties." They believe he will have a better chance of beating the case with a federal judge overseeing it. “He is caught in the middle of a huge political battle that he has nothing to do with. And it’s really disheartening,” whined Morgan's attorney Ryan Pacyga. If convicted, Morgan's law enforcement career would come to a screeching halt and consecutive three-year sentences could land him behind bars for six years... Which is exactly where he belongs. Lock him up and then keep going. More of these ICE agents need to be prosecuted and imprisoned to prove that nobody, not even Trump's MAGA paramilitary goons, is above the law in this country. Please ❤️ and share if you think that this man deserves prison time!
81
1,093
38
3,213
31,917
Software Developer retweeted
Van Hollen criticized Schumer for siding with the pro-Israel lobby against progressive Senate candidates in the Democratic midterm primaries and spoke against “a blank check” to the Israeli government. interc.pt/3Xz9XuE
5
136
2
549
11,217
Software Developer retweeted
How Computer Architecture Works
5
12
74
2,156
Software Developer retweeted
𝗔𝗦𝗣.𝗡𝗘𝗧 𝗖𝗼𝗿𝗲 𝗴𝗶𝘃𝗲𝘀 𝘆𝗼𝘂 𝟲 𝘄𝗮𝘆𝘀 𝘁𝗼 𝗱𝗲𝗰𝗶𝗱𝗲 𝘄𝗵𝗮𝘁 𝗮 𝘂𝘀𝗲𝗿 𝗰𝗮𝗻 𝗱𝗼, 𝗮𝗻𝗱 𝗮𝗹𝗹 𝗼𝗳 𝘁𝗵𝗲𝗺 𝗻𝗲𝗲𝗱 𝗮𝘂𝘁𝗵𝗲𝗻𝘁𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗳𝗶𝗿𝘀𝘁 Issues with access control are still one of the top points in the OWASP Top 10 (2025). 𝗔𝘂𝘁𝗵𝗲𝗻𝘁𝗶𝗰𝗮𝘁𝗶𝗼𝗻 A scheme consists of a registered handler and its options. 🔹 𝗖𝗼𝗼𝗸𝗶𝗲𝘀: The handler will create the user based on information stored in a cookie. 🔹 𝗝𝗪𝗧 𝗯𝗲𝗮𝗿𝗲𝗿: The handler creates the user based on a token the client sends in a request header. 🔹 𝗢𝗽𝗲𝗻𝗜𝗗 𝗖𝗼𝗻𝗻𝗲𝗰𝘁 (𝗢𝗜𝗗𝗖): The user logs in to an identity provider (for example, Google) and is redirected back to our application. The result of the authentication is passed to authorization as a 𝙲𝚕𝚊𝚒𝚖𝚜𝙿𝚛𝚒𝚗𝚌𝚒𝚙𝚊𝚕 object. It contains information (called claims) about the user. A claim is a key-value pair (for example, EmployeeNumber). 𝗔𝘂𝘁𝗵𝗼𝗿𝗶𝘇𝗮𝘁𝗶𝗼𝗻 Here we need to check the user against the policy. So, we have 6 ways to do it: 𝟭. 𝗦𝗶𝗺𝗽𝗹𝗲 𝗮𝘂𝘁𝗵𝗼𝗿𝗶𝘇𝗮𝘁𝗶𝗼𝗻 The simplest way to authorize an endpoint is to add the 𝙰𝚞𝚝𝚑𝚘𝚛𝚒𝚣𝚎 attribute without any options. It uses the default authorization policy, which only checks whether a user is logged in. 𝟮. 𝗥𝗼𝗹𝗲-𝗯𝗮𝘀𝗲𝗱 With the 𝚁𝚘𝚕𝚎𝚜 option of the 𝙰𝚞𝚝𝚑𝚘𝚛𝚒𝚣𝚎 attribute, we can specify one or more comma-separated roles that the user must have. If we want the user to have both roles, we need to add the attribute twice. 𝟯. 𝗖𝗹𝗮𝗶𝗺-𝗯𝗮𝘀𝗲𝗱 We can create an authorization policy with the 𝚁𝚎𝚚𝚞𝚒𝚛𝚎𝙲𝚕𝚊𝚒𝚖 method and check if the user has a certain claim. 𝟰. 𝗖𝘂𝘀𝘁𝗼𝗺 𝗿𝗲𝗾𝘂𝗶𝗿𝗲𝗺𝗲𝗻𝘁𝘀 We can create our own requirement and handler classes. We can add multiple requirements to an authorization policy, and the user must pass all of them to be authorized. If we want an “or” condition, we can create multiple handlers that check different conditions for the same requirement. 𝟱. 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲-𝗯𝗮𝘀𝗲𝗱 Sometimes, authorization depends on the resource. We can’t do this with the 𝙰𝚞𝚝𝚑𝚘𝚛𝚒𝚣𝚎 attribute because it's evaluated before we load the resource in our code. We can load the resource in our code and call the 𝙰𝚞𝚝𝚑𝚘𝚛𝚒𝚣𝚎𝙰𝚜𝚢𝚗𝚌 method with the user and the resource. 𝟲. 𝗙𝗮𝗹𝗹𝗯𝗮𝗰𝗸 𝗽𝗼𝗹𝗶𝗰𝘆 By default, it’s null, and endpoints without any authorization attributes are accessible to everyone. If we set it to a policy that checks whether a user is logged in, all our endpoints will be accessible only to logged-in users, unless we add the 𝙰𝚕𝚕𝚘𝚠𝙰𝚗𝚘𝚗𝚢𝚖𝚘𝚞𝚜 attribute. 𝗦𝘁𝗮𝘁𝘂𝘀 𝗰𝗼𝗱𝗲𝘀 With JWT bearer, it will be 401 if it can’t identify the user, and 403 if it knows the user, but they aren’t allowed to do something. With cookies, it redirects to the login or access-denied URL. Since .NET 10, API endpoints will, by default, return 401 and 403 responses.
8
16
127
4,918
Software Developer retweeted
Far-right Israeli National Security Minister Itamar Ben-Gvir attacks the lawyer of Palestinian prisoner Qadri Samara, who is expected to be the first prisoner to face the death penalty, after she called for better treatment of Palestinian prisoners in Israeli prisons. وزير الأمن القومي الإسرائيلي المتطرف إيتمار بن غفير يهاجم محامية الأسير قدري سمارة، الذي يُتوقع أن يكون أول أسير يواجه حكم الإعدام، بعدما طالبت بتحسين معاملة الأسرى الفلسطينيين في سجون الاحتلال.
11
155
12
221
6,996
Software Developer retweeted
In order to prevent another criminal President from ever doing all of this again, a myriad of new laws and constitutional amendments will need to be passed as soon as Trump is gone. Our current system of checks and balances is clearly inadequate for someone as lawless as him. #TrumpCrimeFamily
81
829
30
1,656
11,137
Israeli authorities are moving to revoke the passport of activist Andrey X, also known as Andrey Khrzhanovskiy, accusing him of systematically acting against Israel and its security forces. The proposed measure would not prevent Khrzhanovskiy from entering Israel, as he holds Israeli citizenship, but would restrict his ability to travel using an Israeli passport.
16
220
9
310
7,125
Software Developer retweeted
Git Workflow Explained - The Complete Git Flow Every Developer Must Know
1
9
1
59
4,127