Module D08: Providers Deep Dive
Track: D3 · Services & providers · Effort: 2 h · Prowler: 5.48
Scenario
Your Backup Vault check shipped and the Cloudsmiths platform team now wants Prowler in the nightly pipeline for all three clouds plus the company's Kubernetes clusters and GitHub organization. Before anyone tunes timeouts or adds flags, your lead asks you to explain, from the code, how a provider turns prowler kubernetes --context prod into an authenticated session, an identity, an audit configuration and a mutelist. In the next module you will build a provider of your own, so this one is about reading the existing ones carefully.
Learning objectives
- Describe the
Providerbase class inprowler/providers/common/provider.py: its abstract members, its global-provider slot and the dynamic contract methods added for external providers. - List what a provider instance owns (identity, session, audit config, fixer config, mutelist, regions or scopes) and where each is loaded.
- Trace the path from CLI flags (
lib/arguments/arguments.py) throughProvider.init_global_provider()into a provider constructor, and from there into output options. - Explain how
Provider.get_class()resolves built-in providers and entry-point (prowler.providers) plug-ins, including name collisions. - Compare how AWS, Azure, GCP, Kubernetes, M365 and GitHub authenticate and what their session objects contain.
- Add a CLI argument to an existing provider and prove with a test that it reaches the provider.
Regístrate para leer el módulo completo
El temario y el resumen de cada módulo son públicos. Crea una cuenta gratuita para desbloquear las lecciones completas, los laboratorios, las comprobaciones de conocimientos y el examen final, y para seguir tu progreso.