Start the Soup: In a sizable pot over a medium flame, warm two tablespoons of extra-virgin olive oil. Introduce the yellow onion, carrots, and celery to the pot, seasoning them with a teaspoon of sea salt and a hearty twist of black pepper. Stir them occasionally, cooking until they're just beginning to soften, which should take about 8 minutes.
Build the Flavor: Next, add the grated garlic, canned diced tomatoes, your choice of cooked white or kidney beans, green beans, vegetable broth, bay leaves, dried oregano, and dried thyme to the pot. Cover it and allow the soup to simmer gently for 20 minutes, infusing the broth with all the beautiful flavors.
Pasta Time: After 20 minutes, stir in the pasta, picking from small shapes like elbows, shells, or orecchiette. Leave the pot uncovered and let the pasta cook until it's tender, about 10 minutes.
Serve with Garnishes: Once the pasta is cooked through, taste the soup and adjust the seasoning as necessary. Dish it up hot, embellished with fresh parsley, a pinch of red pepper flakes, and optionally, grated Parmesan cheese.