Socket
Socket
Sign inDemoInstall

Product

Introducing License Enforcement in Socket

Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!

Introducing License Enforcement in Socket

Philipp Burckhardt

October 17, 2024


At Socket, we believe in the transformative power of open-source software to unlock limitless possibilities for both large enterprises and small businesses. Our team’s deep-rooted experience in the open-source ecosystem has shown us both its immense potential and the risks it presents. Enterprises not only harness open-source to drive innovation but also face significant challenges when adopting open-source software.

These challenges include security vulnerabilities in dependent libraries, malicious actors targeting open-source software to distribute malware, and the complexities of maintaining compliance with numerous open-source licenses. Managing these aspects can be daunting, especially in large projects with thousands of dependencies, often nested or incorporating differently licensed third-party code within packages.

Today, we are thrilled to announce a major advancement in our mission to provide comprehensive software supply chain security solutions: License Enforcement is now live in beta. This long-awaited feature marks a significant milestone in making Socket fully enterprise-ready.

Key Features of License Enforcement#

  • Comprehensive License Detection: Our advanced license detection system identifies over 2,000 license types, providing unparalleled coverage. Whether you're dealing with common licenses or more obscure ones, Socket has you covered.
  • Detailed Provenance Information: Understanding where a license violation originates from is crucial. Socket offers detailed provenance data, allowing developers to trace the origin of potential license issues back to their source. This granularity empowers teams to make informed decisions about the software components they incorporate into their projects.
  • Accuracy You Can Trust: Socket boasts one of the most accurate license detection implementations in the industry. Our meticulous approach ensures that you receive reliable insights, minimizing the risk of overlooking critical compliance issues. Read our technical deep dive into the new state-of-the-art license scanner we’re launching to learn more about our detection accuracy and scanning capabilities.
  • Pre-Merge Compliance Checks: Preventing license-violating code from being merged into your codebase is essential. Socket’s License Enforcement feature allows developers to avoid incorporating code that could violate licensing terms even before it’s merged in a pull request (PR), streamlining the development process while safeguarding compliance.

Seamless Integration into Existing Workflows#

Socket's License Enforcement feature integrates seamlessly into your current development workflows, ensuring minimal disruption while enhancing security and compliance. Here's how it works:

  • Alert Generation: License violation alerts are generated based on the license policy specified in your organization's dashboard. These alerts are treated just like any other Socket alert, meaning they can be configured with all available alert actions:
    • Block: Prevents the merge of any PR that introduces a license violation.
    • Warn: Flags potential license without blocking the merge process.
    • Monitor: Silently tracks license violations in the organization alerts table.
  • GitHub PR Integration: Alerts appear in GitHub PR comments with the available provenance data alongside other Socket alerts, providing real-time feedback during code reviews.

This flexible approach allows organizations to choose the level of enforcement that best suits their needs and risk tolerance.

  • Allow/Deny List Approach: Our implementation follows a simple allow/deny list approach, complemented by a powerful API. This flexibility allows organizations to tailor their license compliance strategy to their specific needs, ensuring that only approved licenses are used in their projects.

Getting Started with License Enforcement#

Setting up License Enforcement in Socket is straightforward:

  1. Access License Policy: Navigate to the License Policy page on your Socket dashboard.
  2. Quick Setup: Use the quick setup to set up default rules based on Blue Oak Tiers and other common license categories.
  3. Define Rules: After the quick setup, customize individual licenses to allow or deny, selecting from over 2,000 license types.
  4. Configure Enforcement Levels: Choose how strictly you want to enforce the policy—Block offending PRs, Warn developers in PR comments, or Monitor violations silently in the dashboard by enabling the “License Violation Alert” on your organization’s “Security Policy” page.

After completing these four steps, License Enforcement is activated!

What’s next?#

This is just the beginning! We are working to enhance License Enforcement with features such as:

  • API for License Policy Management: Easy-to-use APIs for setting and managing the organization license policy programmatically and importing action rules.
  • Granular Controls for Specific Repositories: More specific controls for individual repositories, enabling tailored compliance strategies.
  • Enhanced Reporting and Analytics: Detailed insights and analytics on license compliance across projects.

Join us in this next chapter of Socket’s journey to empower enterprises with the tools they need to navigate the complexities of open-source software. Experience our new License Enforcement feature, now available in beta.

For more information or assistance, visit our documentation or contact our support team.

Stay secure!

Subscribe to our newsletter

Get notified when we publish new security blog posts!

Try it now

Ready to block malicious and vulnerable dependencies?

Install GitHub AppBook a demo

Related posts

Back to all posts
SocketSocket SOC 2 Logo

Product

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc