Compliance

Open-Source Licensing

Intermediate

Open-source libraries are essential and mostly free to use. But "open source" does not mean "no rules". Every dependency comes with a licence that grants rights and sets obligations. Some licences can force us to open our own source code or limit commercial use. Check the licence before you add a dependency, not after a customer's lawyer does.

This is the legal partner to Dependency & Supply-Chain Security, which is about vulnerabilities. Here the risk is licence obligations. Most common licences (MIT, Apache 2.0, BSD) are permissive and fine for commercial use, with few obligations (usually attribution). Others, such as strong copyleft licences like GPL/AGPL, can require us to release the source of our own software. For a commercial SaaS that may not be acceptable.

For newer engineers the rule is simple: do not just pull in a package because it works. Check that its licence is fine for commercial use, and when in doubt, ask. Licence problems are cheap to avoid up front and expensive to fix once shipped, or during certification and due diligence.

Check before you add

Respect rights both ways

Self-review checklist

Why it matters: Licence violations are a legal and commercial risk that shows up at the worst times: during acquisition due diligence, certification, or a customer's review. A copyleft obligation can, in principle, force us to disclose our proprietary code. Checking licences up front keeps our dependency use lawful, our IP protected, and our deals unblocked.