selefra  by selefra

Policy-as-code CLI tool for multi-cloud/SaaS environments

created 2 years ago
537 stars

Top 59.9% on sourcepulse

GitHubView on GitHub
Project Summary

Selefra is an open-source policy-as-code tool for analyzing multi-cloud and SaaS environments, offering insights into security, cost, and architecture. It targets cloud engineers and DevOps professionals seeking unified visibility and automated compliance across diverse platforms like AWS, GCP, Azure, Kubernetes, GitHub, and Slack. The key benefit is leveraging natural language queries powered by OpenAI for infrastructure analysis.

How It Works

Selefra integrates with various cloud and SaaS providers to collect configuration data, which can then be queried using a SQL-like language. Custom analysis policies are defined using a combination of SQL and YAML. The platform's unique selling proposition is its integration with OpenAI's GPT models, enabling users to ask questions about their infrastructure in natural language and receive actionable suggestions for security, cost optimization, and architectural improvements.

Quick Start & Requirements

  • Installation (macOS):
    brew tap selefra/tap
    brew install selefra/tap/selefra
    
  • Initialization:
    mkdir selefra-demo && cd selefra-demo && selefra init
    
  • Build Code:
    selefra apply
    
  • GPT Analysis: Requires OPENAI_API_KEY.
    selefra gpt <"your query"> --openai_mode=gpt-3.5 --openai_limit=5 --openai_api_key=<Your Openai Api Key>
    
  • Prerequisites: OpenAI API key.
  • Documentation: Docs

Highlighted Details

  • Supports over 30 services across AWS, GCP, Azure, Alibaba Cloud, Kubernetes, GitHub, Cloudflare, and Slack.
  • Policy-as-code capabilities with SQL and YAML for custom analysis.
  • Version control integration for policies (GitHub/GitLab).
  • Automation features for enforcing compliance, security, and cost rules.

Maintenance & Community

Selefra is a community-driven project. Community support is available via Slack. Follow on Twitter for updates. Contributions are welcomed via GitHub Issues and Pull Requests.

Licensing & Compatibility

  • License: Mozilla Public License v2.0.
  • Compatibility: Permissive license suitable for commercial use and integration with closed-source projects.

Limitations & Caveats

The Snowflake provider is listed as "coming soon." The effectiveness of GPT-powered analysis is dependent on the quality of the OpenAI API key and the clarity of the natural language prompts.

Health Check
Last commit

1 year ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.