Quickstart
Setup Guide
Use these guides to set up users, roles, policies, teams, and everything else.
These guides assume you have access to a working Metaport server, which you can find out about in the install docs and also the development docs. You may also find you need to refer to the troubleshooting guide from time to time.
Tip
Whenever a Superuser (Admin) or Owner role creates a user, a limited expiry invitation is sent out automatically via email. This process is a fairly standard and helps keep track of users. Should an invite expire before it's confirmed, a new one can be re-issued.
Tip
See the summary table here to familliarise yourself with Metaport's user roles.
Metaport Hierarchy
- An
Organisationhas manyTeams - Each
Teamhas manyApplications - Each
Teamhas manyPolicies - Each
Teamhas manyUsers - Only
Superuserscan manageOrganisations - Only
Superuserscan createOwnerusers, who then invite additional users Ownerscan manage allTeamsin anOrganisationManagerscan manage all aspects of their ownTeamsUserscan do enough within their ownTeamsfor their day-to-day work
Superusers
Superusers have access to an entire Metaport server. They are the only role with the ability to create Organisations, and create Owner users.
Superusers can create additional superusers (sometimes known as "Admins").
Warning
Superusers have godlike capabilities over the entire server, irrespective of organisations and teams.
Tip
By default, Metaport CE auto-installs one superuser account, the credentials for which are managed as environment variables. See the .env.example file.
- Login to Metaport with the default Superuser account.
- Navigate to the "Accounts" section.
- Select the "Add User" button.
- Type the name and email fields.
- Select the "Administrators" role from the "Roles" field.
- Select the "Create" button.
Adding Standard Users
Tip
There are 5 user-roles to be aware of, but only 3 can be conferred to users. See the security docs for a comparison table.
- Login to Metaport with a Superuser or "Owner" account.
- Navigate to the "Accounts" or "Users" section.
- Select the "Add User" button.
- Input the information as required.
- Select a role from the "Roles" field.
- Select a team from the "Teams" field.
- Select the "Create" button.
Add/Remove User to/from a Team
- Login to Metaport with a Superuser or "Owner" account.
- Navigate to the "Accounts" or "Users" section.
- Locate the desired user.
- Add or remove from the "Teams" field as applicable.
- Select the "Save" button.
Adding an Organisation
- Login to Metaport with a Superuser account.
- Navigate to the "Organisations" section.
- Select the "Add Organisation" button.
- Enter a name.
- Select the "Create" button.
- Create at least one team within the organisation.
- Create and invite a new user to that team.
Adding a Team
Note
Dependency Manager configuration is unique per team.
- Login to Metaport with a Superuser or "Owner" account.
- Navigate to the "Teams" or "My Teams" section.
- Select the "Add Team" button.
- Select the "Settings" tab (if not already highlighted).
- Fill in the relevant fields.
- Select the "Create" button.
- (Optional) If you know the connection details for your dependency management software, enter these in the "Dependency Manager Settings" accordion. Leave blank if relying on agents to submit this data.
- (Optional) If your team's apps will be sending data to Metaport using email, enter the IMAP mailbox connection details in the "Mailbox Settings" accordion.
Adding an Application
Note
A Metaport Application needs to be setup in Metaport itself before Metaport will accept incoming requests from an agent.
- Login to Metaport with a Superuser, "Manager" or "Owner" account.
- Navigate to the "Teams" or "My Teams" section and select a team.
- Select the "Applications" tab.
- Select the "Add Application" button.
- Fill in the relevant fields. 5.1 "Transport Mode": Select HTTP or Email as the means by which apps will report-in to this app.
- Select the "Create" button. 6.1. "App Group": Once the app has been created, an "App Group" field will be shown. These group apps together by environment and/or technology.
- Select the "Get Developer Export"
button and send the information securely to your developers.
Creating a New Policy
Note
A Policy is unique to a team. Policies allow teams to determine which application data they're most interested in being notified about.
Note
Metaport automatically creates several useful default policies for you, each time a team is created.
Bug
The "Run & Download" button does not correctly reflect the current user's permissions to execute this action.
- Login to Metaport with a Superuser, "Owner" or "Manager" account.
- Navigate to the "My Teams" section and select the desired team.
- Select the "Policies" tab and select the "Add Policy" button.
- Provide a name and select an optional download format (default is
.csv). - Select from the "Schedule" dropdown (selecting anything other than "None" prompts for subject, recipient and message).
- Select the "Save" button and then the "Rules" tab.
- Select the "Add Rule" button.
- Add a name for this rule.
- Select from the available "Rulesets" (See tips below).
- Select from the available "Component Fields".
- Select the "Create" button.
Using pre-defined variables in the notification body
When selecting schedules with notifications, placeholders or "variables" can be inserted into the email body which automatically populates it with data:%AppCount The number of production apps managed by your team.%Apps A list of the production apps managed by your team.%TeamName The name of your team.%PolicyName The name of this policy.%PolicyData Tabulated version of this policy run.
Using Rulesets
Rulesets are collections of custom rules which represent properties of your teams' applications, each of which is executed on a schedule against the Metaport database (see step 5).General rulesets represent "direct" queries on application properties e.g. Release Date or SSL Expiry.Component rulesets represent "indirect" queries on aspects of teams' application components such as Framework or Operating System.Dependency rulesets also represent "indirect" queries, but operate on aspects of teams' applications' dependencies e.g. the name, version or CVE of an included library or plugin.
Tip
A policy run is the result of a policy having been executed. They can be found by navigating to "Teams" or "My Teams" > "Policy" tab > Policy > "Runs" tab.
Accessing the Maintenance Calendar and Chart
Tip
The maintenance calendar is available from all your teams' applications.
- Login to Metaport with any user role.
- Navigate to the team to which your application is related.
- Select the "Applications" tab.
- Select the appropriate table row.
- Select the calendar
icon from the bottom of the screen.
The chart is visible after selecting the tabbed navigation associated with your app's "App Group".
Setup Application Components
Warning
Assumes that the system-wide crontab is working as per the installation instructions.
Info
Metaport relies on third-party APIs for its knowledge of frameworks, operating systems and language runtimes. These APIs are used to report end-of-life and end-of-support to teams.
- Login to Metaport with a Superuser account.
- Navigate to the "Settings" section.
- Select the "Main" tab (if it isn't already displayed).
- Deselect components and their versions which do not concern users of this Metaport server.
- Select the "Save" button.
Export App Credentials for Developers
Info
This is the process for exporting the "Developer Export" to get developers up and running quickly with the Metaport agent.
Warning
The exported file contains unencrypted credentials. Use secure channels and password vaults to transfer this information securely.
- Login to Metaport with any user role.
- Navigate to the team to which your application is related.
- Select the "Applications" tab.
- Select the appropriate table row.
- Select the Get Developer Export
icon.
Anatomy of the Developer Export
