Skip to main content
Matrix42 Self-Service Help Center

Credentials

Using credentials from various sources to aid in accessing and querying target resources within your network.

Overview

Connection Credentials have two purposes:

  1. During discovery, to gather additional information about the devices that are found
  2. During Attribute data collection, to continue to collect the data from the devices, without installing the FireScope Agent on the machines.

In order for FireScope to connect to, or collect data from, your infrastructure, the devices must be willing to accept the appropriate inbound connections from their respective Edge Device IP.

You will be required to enter your credentials into the FireScope application. It is advised to create credentials specific to the FireScope application's use. These credentials will be stored in the database using reversible encryption so that they are encrypted at rest, but usable when needed.

Some Credential types are Edge Device specific. This means for those Credential types, you can specify unique credentials for each Edge Device, or you can use the application to replicate the same Credential to be used across all Edge Devices so you only have to enter it once.

Credentials List

Screen Shot 2022-07-08 at 09.18.09.png

Any Configuration Administrator or FireScope Administrator can view, manage, and delete Connection Credentials from the Configuration > Connection Credentials > List page. The List is grouped by Credential Type by default.

Credential Types

Amazon AWS
Unique per Edge Device
Used to access your Amazon Web Services (AWS) account automatically. The Access Key and the Secret Access Key are required special tokens that allow FireScope services to communicate with your AWS account by making secure REST or Query protocol requests to the AWS service API.
LDAP
Unique per Edge Device
Used to perform queries against LDAP servers, including Microsoft Active Directory, for identifying user privilege escalation, changes in group policy and more.
Microsoft Azure
Unique per Edge Device
Used to access your Microsoft Azure account. Each tenant will need to have an App and Service Principal set up. The Directory ID, Application ID and Client Secret are values that are created during this set up process, and they are the special tokens that will allow FireScope services to communicate with your Azure account via REST or Query protocol requests to the Azure service API.
NetApp ONTAP
Shared across Edge Devices
Used to access the NetApp ONTAP operating system of the NetApp devices in your infrastructure to gather information about the device, and collect data for Attributes.
SNMP
Shared across Edge Devices
Used to by Configuration Items & Attributes for data collection, by Network Discovery Jobs for device information, by Load Balancer Jobs to populate VIPs and Cluster Members, and many other parts of the application.
Secure Shell (SSH) Keys
Shared across Edge Devices
Used to run remote command-line operations to gather operating system information and monitor the performance of Linux and Unix-based servers, offering Password or Public Key, or Kerberos Authentication. SSH keys provide a more secure way for FireScope to log into a Linux and Unix-based server. This allows for Agent-less monitoring of Linux devices
VMware Virtual Center
Unique per Edge Device
Used to establish a connection to a Virtual Center or ESX server to propagate the Hosts & Guests to build out a Virtual Infrastructure view, and gather regular data about the configuration and health of the Virtual Environment.
Windows Management Interface (WMI)
Shared across Edge Devices
Used to connect to Windows-based computers to gather information about the device and collect data for Attributes. This allows for Agent-less monitoring of Windows devices.

Credentials Edit Form

Screen Shot 2022-07-08 at 09.50.51.png

Credential Information Section

Field Name Description Required?
Edge Device Select the Edge Device (if unique) that should use this Credential.

If the Credential Type is "Unique per Edge Device," then choosing "All Edge Devices" will generate copies of this Credential for every Edge Device at the same time.

If the Credential Type is "Shared across Edge Devices," then one Credential will be created, and shared to all Edge Devices.
Yes
Credential Type Select the kind of Credential to create. This will alter the Edit Form's panels and Edge Device dropdown capabilities. Yes
Name Add a short name for the credential to be displayed in chips throughout the application. Yes
Description Additional descriptive details about the Credential, its purpose, or its unique configuration. No

Amazon AWS Connection Settings Panel

clipboard_ef6601f7d6e3c304226245ff0550b3428.png

First, you'll need to get the credentials from the AWS Management Console:

  1. Log in to your AWS Management Console.
  2. Click on your user name at the top right of the page.
  3. Click on the Security Credentials link from the drop-down menu.
  4. Find the Access Credentials section, and copy the latest Access Key ID.
  5. Click on the Show link in the same row, and copy the Secret Access Key.

Then return to the FireScope application, and:

  1. Choose the Region Endpoint for the credential.
  2. Enter the Access Key ID for the AWS Account.
  3. Enter the Secret Access Key for the AWS Account.
  4. Click Save at the bottom of the page.

Once an Credential has been created, a CI can be associated with it using the Credential Usage Panel or the CI Edit Form's Connection Credentials Panel.

LDAP Connection Settings Panel

clipboard_e40e6e78446364348b1615bd501d9f212.png

  1. Enter the LDAP URL for the LDAP Server, without any trailing slash, e.g.: ldap://local.server.dns or ldap://10.0.22.35
  2. Enter the LDAP Port on which the server is listening, usually 389.
  3. Enter the Bind DN, a fully distinguished name of the account to be used, e.g.: CN=Administrator,CN=Users,DC=matrix42,DC=com.
  4. Enter the Bind Password for the Bind DN being used.
  5. Enter the Base DN, a fully distinguished name for the directory server search starting point, e.g.: OU=Department,DC=matrix42,DC=com.
  6. Click Save at the bottom of the page.

Once an Credential has been created, a CI can be associated with it using the Credential Usage Panel or the CI Edit Form's Connection Credentials Panel.

With a valid LDAP Credential associated to a CI, you can create LDAP Check Attributes. Only Attributes of CIs that have an LDAP Credential will be able to collect LDAP data.

Microsoft Azure Connection Settings Panel

clipboard_e0c71675f0d65758fadaf713a923a0e83.png

First you need to prepare your Microsoft Azure environment:

  1. Sign in to your Azure Account through the Azure portal.
  2. Select Azure Active Directory.
  3. Select App registrations.
  4. Select New registration.
  5. Name the application.
  6. Select a supported account type, which determines who can use the application.
  7. Under Redirect URI, select Web for the type of application you want to create.
  8. Enter the URI where the access token is sent to.  
  9. Record the Directory (tenant) ID and Application (client) ID for use in the Firescope configuration.
  10. After setting the values, select Register.
  11. Use the "Create a New Application Secret" method as the authentication option.
    • Select Azure Active Directory.
    • From App registrations in Azure AD, select your application.
    • Select Certificates & secrets.
    • Select Client secrets -> New client secret.
    • Provide a description of the secret, and a duration. When done, select Add.

After saving the client secret, the value of the client secret is displayed. Copy this value to a safe location now because you won't be able to retrieve the key later. You will provide the key value with the application ID during the next steps.

Now return to the FireScope application and fill out the panel's fields:

  1. Enter the Directory (tenant) ID collected during the Azure Service Principal configuration.
  2. Enter the Application (client) ID collected during the Azure Service Principal configuration.
  3. Enter the Client Secret value collected during the Azure Service Principal configuration.
  4. Click Save at the bottom of the page.

NetApp ONTAP Connection Settings Panel

clipboard_ef8a1ebfd1e02b5bc9d4b3f23c5ba5e7e.png

  1. Select the Server Type from the drop down list.
    • One of Agent, Filter, or NetCache
  2. Select the Transport Type from the drop down list.
    • One of HTTP or HTTPS.
  3. Select the Authentication Style from the drop down list.
    • One of /etc/hosts.equiv, Username/Password, or RPC (Remote Procedure Call)
  4. Enter the Username.
  5. Enter the Password.
  6. Click Save at the bottom of the page.

SNMP Connection Settings Panel

To get started, select which SNMP Version to use: v1, v2, or v3. This will change how the panel fields are displayed.

SNMP v1

clipboard_ed07293228cef880e6cb512467ee76a55.png

Your targeted device must be compatible with SNMP v1, or have an SNMP Agent installed. This includes most networked assets.

The SNMP v1 SMI specifies the use of a number of SMI-specific data types, which are divided into two categories: Simple Data Types, and Application-Wide Data Types.

Most devices have community string support for public.

  1. Enter the Port listening for SNMP lookups, usually 161.
  2. Enter the Community String to use.
  3. Click Save at the bottom of the page.

SNMP v2

clipboard_e05e29bd2414785f1dbf42bcacc8fd2da.png

Your targeted device must be compatible with SNMP v2, or have an SNMP Agent installed. This includes most networked assets.

The SNMP v2 SMI is described in RFC 2578. It makes certain additions and enhancements to SNMP v1's SMI-specific data types, such as including bit strings, network addresses, and counters. Additional SNMP v2 also specifies three types of information modules: MIB modules, compliance statements, and capability statements.

  • Bit strings are defined only in SNMP v2 and comprise zero or more named bits that specify a value.
  • Network addresses represent an address from a particular protocol family. SNMP v1 supports only 32-bit IP addresses, while SNMP v2 can support other types of addresses as well.
  • Counters are non-negative integers that increase until they reach a maximum value, and then return to zero. In SNMP v1, the counters are 32-bit. In SNMP v2, both 32-bit and 64-bit counters are defined.
  • MIB Modules contain definitions of interrelated managed objects.
  • Compliance statements provide a systematic way to describe a group of managed objects that must be implemented for conformance to a standard.
  • Capability statements are used to indicate the precise level of support that an agent claims with respect to a MIB group. An NMS can adjust its behavior toward agents according to the capability’s statements associated with each agent.

Most devices have community string support for public.

  1. Enter the Port listening for SNMP lookups, usually 161.
  2. Enter the Community String to use.
  3. Click Save at the bottom of the page.

SNMP v3

clipboard_e8f717586ba0cf18ff12a2d66ede7cb61.png

Your targeted device must be compatible with SNMP v3, or have an SNMP Agent installed.

SNMP v3 essentially offers the same information as SNMP v2, with the addition of 3 important security features:

  1. Message integrity to ensure that a packet has not been tampered with in transit.
  2. Authentication to verify that the message is from a valid source.
  3. Encryption of packets to prevent snooping by an unauthorized source.

SNMP v3 has specific access requirements due to the variations of access control offered. You will need to provide some of the following values based on the type of authentication required by the device's settings:

  • security name
  • security level
  • authentication type
  • authentication passphrase
  • authentication type
  • privacy passphrase
  1. Enter the Port listening for SNMP lookups, usually 161.
  2. Enter the Community String to use.
  3. Select the Security Level, which will change the form presentation
    • noAuthNoPriv  - Unauthenticated access, and no privacy/encryption
    • authNoPriv - Authenticated access, but no privacy/encryption
      • Select the Authentication Type
        • One of MD5 or SHA.
      • Enter the Authentication Passphrase
    • authPriv - Authenticated access, with privacy/encryption
      • Same as authNoPriv for Authentication settings.
      • Select the Privacy Type.
        • One of AES 128-bit, AES 192-bit, DES, or Triple DES.
      • Enter the Privacy Passphrase.
  4. Click Save at the bottom of the page.

SSH Connection Settings Panel

clipboard_e39aa0cc9815cf4da30f43ee9109bc049.png

Privilege Elevation Command

By default, credentials are assumed to be members of the sudo/wheel group, or root itself, and does not require privilege elevation to execute the arbitrary discovery job, or Attribute operation commands on the targeted CIs that use the credential.

Starting with FireScope v4.7.0, the option to provide a use which can execute sudo-prefixed commands has been added to SSH Credentials. In the future, additional privilege elevation commands may be added as needed.

To aid in setting up non-root users, a list of required & common binaries that such a user must be able to access is provided:

Required for Discovery Jobs Commonly used in SSH Attribute Operations
  • cat
  • cut
  • grep
  • ifconfig
  • lshal
  • uname
  • awk
  • basename
  • df
  • echo
  • hostnamectl
  • lscpu
  • paste
  • print
  • rpm
  • sed

It is up to the device administrator to make sure these binaries are accessible via the PATH environment variable for the Credential's username. These binaries are not called with full file paths, as they cannot be guaranteed to be in the same location for all devices / operating systems.

It is also required that you configure access to these binaries in the NOPASSWD settings in the sudoers file for this non-root user, as there will be no way to handle a password prompt during discovery or Attribute collection.

  1. Select the Privilege Elevation Command, if any is required.
  2. Enter the Username for authentication
  3. Select the Authentication Type to use.
    • One of Password or Public Key.
  4. Enter the Passphrase, either for the User if Password authentication, or for the Private Key (if any) if using Public Key authentication.
  5. If using Public Key authentication, paste the full, raw text of the Private Key.
  6. Click Save at the bottom of the page.

How to Set Up Public Key Authentication Type

  1. Create the SSH key pair using ssh-keygen command.
  2. Copy and install the public ssh key using the ssh-copy-id command on a Linux or Unix server.
  3. Add the user to the sudo or wheel group admin account.
  4. Disable the password login for the root account.
  5. Test your password-less SSH keys by authenticating using the ssh user@server-name command.

Virtual Center Connection Settings Panel

clipboard_e3180f48404f21af15d2265e418bc758f.png

You may only use 1 Virtual Center Connection with 1 Virtual Discovery Job. It is strongly advised that you create a single Connection Credential that can see every Virtual Host & Guest in the Virtual Environment to gather a full picture of the infrastructure to avoid creating duplicate CIs for Virtual Hosts that are already represented. After running the Virtual Discovery Job and processing the results, use Service & Logical Groups to segment the devices for permissions or other general organization.

  1. Enter the Virtual Center Address, either an IP address or a host name.
  2. Enter the Port on which the VMware server is listening.
  3. Enter the Username, ideally one which can see every device you intend to catalog with FireScope. 
  4. Enter the Password for the Username
  5. Click Save at the bottom of the page.

WMI Connection Settings Panel

clipboard_e7112daa3e8eb9b9330f081527054fa40.png

For WMI features to work, on the Domain Controller a Windows Admin must first perform these steps in order for the WMI Features to work.

  1. Go to Administrative Tools > Active Directory Users & Computers
  2. Create a dedicated FireScope WMI Credential using a domain user
  3. Put the FireScope WMI Credential into the Domain Admins group.

 

This grants access to the WMI CIMV2 namespace where device data is queried. Local Admins are not supported at this time.

Return to the FireScope application and fill out the WMI Connection Settings panel fields

  1. Enter the Username as domain\username.
  2. Enter the Password for the Domain User.
  3. Click Save at the bottom of the page.

Credential Usage Panel

clipboard_e9d64072b1c4ea06a54e624bfe4ab21c5.png

After a Credential has been created, coming back to the Credential Edit Form will reveal a "Credential Usage" panel where any Discovery Jobs or Configuration Items that are linked to the Credential will be listed.

To remove the Credential from the Discovery Job, you will have to go to the Discovery Job Edit Form's Credentials Panel, and uncheck the marked Credential to remove it.

To add/remove the Credential from Configuration Items, you can select/remove the CI from this Credentials Usage Panel or go to the Configuration Item Edit Form's Connection Credentials Panel to change the dropdown to None or to a different credential.

Deleting Credentials

A credential in use by a Discovery Job or Configuration Item cannot be deleted until it has been removed from use. See the Credential Usage Panel above.

Unused Credentials can be deleted from the Connection Credential List by clicking on the 3-dot button in the far-right column for the Credential to reveal the context menu. Then clicking on Delete Credential context menu item, and following the modals and prompts to completion.

An unused Credential can also be deleted from the Connection Credential Edit Form by clicking the Delete (trash can) button at the bottom of the page, and following the modals and prompts to completion.

What's Next

The User Guide may be accessed in any order, but the next logical step is to review the procedures and requirements involved in the Discovery process.

  • Was this article helpful?