Prowler Academy

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

  1. Describe the Provider base class in prowler/providers/common/provider.py: its abstract members, its global-provider slot and the dynamic contract methods added for external providers.
  2. List what a provider instance owns (identity, session, audit config, fixer config, mutelist, regions or scopes) and where each is loaded.
  3. Trace the path from CLI flags (lib/arguments/arguments.py) through Provider.init_global_provider() into a provider constructor, and from there into output options.
  4. Explain how Provider.get_class() resolves built-in providers and entry-point (prowler.providers) plug-ins, including name collisions.
  5. Compare how AWS, Azure, GCP, Kubernetes, M365 and GitHub authenticate and what their session objects contain.
  6. Add a CLI argument to an existing provider and prove with a test that it reaches the provider.

Register to read the full module

The syllabus and each module overview are public. Create a free account to unlock the full lessons, labs, knowledge checks and the final exam, and to track your progress.