How jenkinsci/credentials-plugin works
Main Components
a. Core Components:
• Credentials Provider System
• Credentials Store
• Credentials Management UI
• CLI Interface
• Configuration as Code (CasC) Integration
b. Credential Types:
• Username/Password Credentials
• Certificate Credentials
• Custom Credential Types
┌─ Jenkins Core Integration Layer ─────────────────────┐
• Plugin Extension Points │
• Security Integration │
• ┘
• ↕
┌─ Credentials Core Layer ──────────────────────────┐
• ┌─ Credentials Provider Manager ─┐ ┌─ Stores ─┐ │
• System Credentials │ │ - System │ │
• User Credentials │ │ - User │ │
• Provider Filtering │ │ - Domain │ │
• ┘ └──────────┘ │
• ┘
• ↕
┌─ Service Layer ────────────────────────────────────┐
• ┌─ Core Services ─┐ ┌─ Security Services ───┐ │
• Matching │ │ - Encryption │ │
• Resolution │ │ - Secret Management │ │
• Validation │ └────────────────────────┘ │
• ┘ │
• ┘
• ↕
┌─ Interface Layer ──────────────────────────────────┐
• ┌─ UI ─────────┐ ┌─ CLI ─┐ ┌─ API ────────┐ │
• Management │ │ Commands│ │ - REST │ │
• Selection │ └────────┘ │ - Java API │ │
• ┘ └─────────────┘ │
• ┘
Key Relationships
• Security boundary demarcations
• Integration points with Jenkins core
• User interaction flows
Important Implementation Details
• Domain model for credentials organization
• Extension points for custom credential types
• Configuration as code integration points
• Fingerprinting system for credential tracking
Additional Elements
• Notes about security boundaries
• Version compatibility information
• Integration points with other plugins