{"id":18896196,"url":"https://github.com/tenable/terrascan-rego-editor","last_synced_at":"2025-04-15T01:34:30.429Z","repository":{"id":37813238,"uuid":"381925978","full_name":"tenable/terrascan-rego-editor","owner":"tenable","description":"Visual Studio Code extension for writing Terrascan Rego policies","archived":false,"fork":false,"pushed_at":"2024-09-07T07:00:58.000Z","size":5016,"stargazers_count":21,"open_issues_count":18,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T13:44:51.203Z","etag":null,"topics":["accurics","cloud-security","cloud-security-policies","policy","policy-as-code","rego","terrascan","vs-code","vs-code-extenstion"],"latest_commit_sha":null,"homepage":"https://runterrascan.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenable.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-01T05:59:12.000Z","updated_at":"2025-01-12T14:37:09.000Z","dependencies_parsed_at":"2024-09-07T08:21:09.559Z","dependency_job_id":"363a77c9-a2ab-4791-a74d-19558c7efc43","html_url":"https://github.com/tenable/terrascan-rego-editor","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fterrascan-rego-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fterrascan-rego-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fterrascan-rego-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fterrascan-rego-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenable","download_url":"https://codeload.github.com/tenable/terrascan-rego-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248989594,"owners_count":21194618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accurics","cloud-security","cloud-security-policies","policy","policy-as-code","rego","terrascan","vs-code","vs-code-extenstion"],"created_at":"2024-11-08T08:32:51.488Z","updated_at":"2025-04-15T01:34:29.414Z","avatar_url":"https://github.com/tenable.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Terrascan Rego Editor\n\nCreate and test Rego policies for Terrascan in Visual Studio Code.\n\n## Features\n\n- Generates standardized JSON configuration used as input to Terrascan's policy engine.\n- Generates a pre-populated Rego template using parameters from resources in your IaC files as input.\n- Tests Rego policies against IaC files.\n- Ability to sync policies with [Tenable.cs](https://www.tenable.com/products/tenable-cs).\n\n![Terrascan Rego Editor demo](assets/terrascan-rego-editor-demo.gif)\n\n## Getting Started\nFollow these steps to get started:\n\n1. Install the extension from the [VS code marketplace](https://marketplace.visualstudio.com/items?itemName=accuricsinc.terrascan-rego-editor)\n2. Open an IaC template on VS Code.\n3. Highlight an IaC resource, right-click, and select `RegoEditor: Generate Config`.\n4. Select the IaC engine this template uses (e.g. terraform, cft, k8s, etc.). This generates a normalized JSON file including the highlighted resource and its parameters.\n5. Right-click the normalized JSON file and select `RegoEditor:  Generate Rego`. This creates a rule JSON and a Rego file.\n6. Update relevant fields on the Rule JSON file according to your policy.\n7. Update the Rego file to enforce your policy.\n8. Right-click the Rego file and click on `RegoEditor: Scan` to test your policy.\n\nThis extension supports multiple configuration options. To view the settings, open the command palette (`Ctrl + Shift + P` for Windows or `CMD + Shift + P` on Mac OS) and search for `RegoEditor: Configuration`.\n\nFrom the configuration menu you should be able to customize:\n- The counter suffixed to policies\n- The default cloud provider\n- Whether to show the helper text on newly created Rego files\n- Credentials for syncing policies with [Tenable.cs](https://www.tenable.com/products/tenable-cs)\n\n## Contributing\n\nContributions are always welcome in the form of documentation, blogs, issues, and pull requests. More details on [CONTRIBUTING.md](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fterrascan-rego-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenable%2Fterrascan-rego-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fterrascan-rego-editor/lists"}