Setup - Repository (limited beta)¶
Fugue’s infrastructure as code (IaC) security features for repository environments are now available in closed beta. Fugue IaC security integrates with Regula to scan code files locally and in CI/CD pipelines. To request access, contact firstname.lastname@example.org.
Looking for Azure setup instructions? To get started with Fugue on Microsoft Azure, see Setup - Azure & Azure Government.
Looking for Amazon Web Services instructions? To get started with Fugue on AWS, see Setup - AWS & AWS GovCloud.
Looking for Google setup instructions? To get started with Fugue on Google Cloud Platform, see Setup - Google Cloud.
In a hurry? For an even quicker setup guide, see Get Started in 5 Minutes.
To learn more about the basics of using Fugue, see Fugue 101.
Sign Up for Fugue¶
Before you can create an environment, you’ll need to sign up for a free account with Fugue. (You’ll start off with a free Enterprise trial, which gives you access to all of Fugue’s features; after 30 days, you’ll be transitioned to the free-forever Developer plan if you choose not to upgrade.)
Once you’re all signed up and logged in, select the Define New Environment button:
Step 1: Setup (Name, Provider)¶
In the first step of creating an environment, you name it and specify your provider – cloud or repository.
Name your environment.
Select Git as the provider.
Step 2: Settings¶
If at any point you want to change something, you can select “Back” at the bottom of the page to return to the previous step, or “Edit” in the sidebar next to the desired step to return to that step.
Enter the Repository URL.
Enter the name of the branch you want to evaluate (e.g., main, develop, etc.)
Step 3: Compliance¶
Repository environments currently utilize compliance settings that are configured locally with Regula. In a subsequent release, users will be able to manage compliance settings with the Fugue SaaS UI, API, and CLI.
Step 4: Review¶
Review the details for your environment, including environment name, URL, and branch name.
If anything needs to be changed, click Edit next to the appropriate step.
If everything looks good, select the Create Environment button. Your environment is successfully created and you need to manually kick off a scan to see how your repository looks. See Step 5: Kicking off a Scan for more information.
Step 5: Kicking off a Scan¶
After creating your repository environment, kick off a scan to evaluate your repository.
betabinary version of Regula. Reach out to email@example.com to gain access. If you already have Regula installed, skip to step 2.
Follow steps 2-5 in the Regula docs to install Regula.
export FUGUE_API_ID=61ae1bed-1b6f-1234-5678-1a2b3c4d5e6f export FUGUE_API_SECRET=f7a89ac99cab9dd2948712345678901234567890
cd into your local repository and switch to the branch you specified in Step 2.2.
4. Run the following command to create a Regula configuration file and replace
[environment_id] with your environment ID:
regula init --environment-id [environment_id]
5. Run the following command to kick off a scan:
Congratulations! You’ve just kicked off a scan for your repository environment with Fugue.
If you want to kick off a scan for a repository environment, you must follow the steps outlined above. Using the CLI command
fugue scan [environment_id] or hitting the
/scans endpoint via the API will not trigger a scan for a repository environment.