TSA doesn't care about "drugs". Especially cannabis.
The absolute WORST thing that potentially could happen would be they find something and turn you over to local authorities. That doesn't happen. Well, unless you're already being a total ass and they pile on by adding that. So if you're standing in a legal state, and they were to turn you over, what's going to happen? The cop they turn you over to is going to let you walk and be pissed off at TSA for the rest of the day.
People carrying cannabis is just not something on their "give a shit" list. If a non-legal state, you still have the D8/D9 stuff, and that's legal everywhere. So they just don't care. They might if you had 5lbs in your checked bag, but who does that?
This is to the point that on the TSA's own website, it clearly states they're not looking for your weed, and that their focus is on bombs/guns/weapons.
I have a smell proof bag with a lock on it. It's kind of like a bank deposit bag, and I have a travel setup that stays packed in it. When I need to go somewhere, I add in however much of whatever flower I think I'm going to need/want, zip it up, lock it up, and that's that.
I typically take anywhere from 1-4 oz of flower with me, depending on where I'm going, whom I'm visiting, and for how long. If it's just me for a long weekend, I may roll a handful of joints. If it's a week or two, well, then more.
DO NOT FLY OUT OF COUNTRY WITH IT.
If you have a vape or gummies, it's even less risk. So many people have vapes, they just don't give a shit. I keep mine in my pocket, and put it in with my other shit when going through TSA. Haven't thought twice about it.