Kodak Black's failed drug tests came back positive for pot and ecstasy ... and yet he's now asking a judge for permission to hit up a big concert where drug use might be rampant.
As we first told you, the rapper violated the terms of his supervised release in his federal gun case by failing drug tests earlier this year. According to new legal docs, he tested positive for marijuana in February and then MDMA in August.
The judge ordered Kodak to complete a 90-day treatment program ... and he recently got permission to spend 30 of those days outside of Florida, after claiming it would give him a better chance at success.
Now, Kodak has his eye on a multiday music festival in New York.