How navikt/common-java-modules works
Main Components
a. Core Module Groups:
• Authentication & Security (auth, sts, token-client)
• Messaging & Integration (kafka, rest)
• Logging & Monitoring (audit-log, log, metrics)
• Utility Modules (util, types, yaml, json)
b. Key Relationships:
• Dependencies between modules
• Integration points with external systems
• Authentication flows
[External Systems Layer]
• Azure AD
• TokenX
• Kafka Clusters
• Monitoring Systems (InfluxDB/Sensu)
[Common Modules Layer]
• Security & Auth Group
• auth (OIDC, filters)
• sts (token providers)
• token-client (Azure AD, TokenX)
• Integration Group
• kafka (producers, consumers)
• rest (clients, filters)
• cxf (SOAP services)
• Observability Group
• audit-log
• metrics
• log
• Core Utilities Group
• types
• util
• json
• yaml
[Client Applications Layer]
• NAIS Applications
Important Details
a. Version compatibility:
• Version 2 components
• Deprecated Version 1 components
b. Configuration points:
• Maven/Gradle integration
• Environment variables
• NAIS platform specifics
Implementation Notes
• Maintain hierarchy and grouping
• Keep related components close
• Use consistent spacing and alignment
• Clear labels and annotations