Before you start
- This guide assumes you already have already deployed your Fastly Compute proxy integration or you are currently deploying your integration via Terraform.
- This guide assumes have read the Open client response documentation and enabled open client response for your Fingerprint application. This is an advanced configuration option limited to Enterprise customers. Get in touch with our support team if you have any questions.
Enable plugins in your proxy integration
Follow these steps to enable the plugin system in your integration. This is necessary for both the example KV Store plugin and your custom plugins.Step 1: Enable plugins in your Fingerprint Config store
This step assumes you have already contacted the Fingerprint support team and enabled Open client response for your Fingerprint workspace. That means your Fastly proxy integration already receives deobfuscated device intelligence results from Fingerprint. To start processing those results with plugins, you need to enable them explicitly:- Inside your Fastly dashboard, navigate to Resources > Config stores > Fingerprint_Compute_Config_Store_<SERVICE_ID>.
- Create an item
OPEN_CLIENT_RESPONSE_PLUGINS_ENABLEDand set it totrue. The integration will process the open client response and run all registered plugins. You can set this flag tofalseto disable all plugins at once.
Step 2: Add a decryption key to your Secret store
To decrypt the response coming from the Fingerprint API to your proxy integration, plugins need to access your Fingerprint workspace’s decryption key. Store the decryption key in your proxy integration’s Secret store:- Inside your Fastly dashboard, navigate to Resources > Secret stores > Fingerprint_Compute_Secret_Store_<SERVICE_ID>.
- Create an item
DECRYPTION_KEYand set it to the value of your decryption key.
Use the example KV Store plugin
The example plugin provided with the integration decrypts the Fingerprint result and saves it to a Fastly KV Store. Assuming you have already enabled plugins in your integration, follow these steps to start using the KV store plugin:Step 1: Create a KV Store
Plugins run on the edge and can access Fastly resources like KV Stores, Secret stores, and Config stores. To use the example plugin to store Fingerprint results on the edge, create a KV Store:- Inside the Fastly dashboard, navigate to Resources > KV Stores.
- Click Create a KV Store.
- Name it
Fingerprint_Results_<SERVICE_ID>where the suffix is your proxy integration’s Compute Service ID. Make sure you have no spaces in the KV store name after copy-pasting your service ID. - Click Add.
- In your KV store, click Link to services.
- Select your proxy integration service, click Next, Link and activate, and Confirm and activate.
- Click Finish.
Step 2: Enable the KV Store plugin
- Inside your Fastly dashboard, navigate to Resources > Config stores > Fingerprint_Compute_Config_Store_<SERVICE_ID>.
- Create an item
SAVE_TO_KV_STORE_PLUGIN_ENABLEDand set it totrue. This specifically enables only the example KV Store plugin. You can set this flag tofalseto disable only this plugin.
Step 3: Test the KV Store plugin
To test the plugin:- Use the Fingerprint client agent to make identification requests through your Fastly Compute proxy integration.
- After a few moments, you should see the results of these identification events inside your KV Store.

- Go to your integration’s status page at
metric.yourwebsite.com/statusto see that your integration is working and all required variables are set. - Double-check the names of your Config store, Secret store, and KV Store. Check the names and values of all the configuration variables.
- Examine the logs of your proxy integration for errors.
- Contact our support team.
Note: Error handling and latencyThe proxy integration runs the plugins after it sends the identification response to the client. Plugins cannot interfere with or delay proxying requests, even if they fail. The integration logs and ignores any errors thrown by the plugin.
Make your own plugin
You can use the example KV Store plugin described above as a reference to create and deploy your own plugins. Assuming you have already enabled plugins in your integration, follow the steps below:Step 1: Fork the integration repository
When first installing the Fastly Compute proxy integration, you have likely deployed the default service package from the GitHub releases. To include a custom plugin with the proxy service package, you need to build your own version of the package instead:- Fork the Fastly Compute proxy integration repository to your own GitHub account. This allows you to manage and deploy your custom plugins while staying in sync with the base repository.
-
Clone the forked repository to your local machine:
-
Install dependencies using PNPM:
Step 2: Implement your custom plugin
Implement your plugin inside theplugins folder:
- A plugin is a callback function that receives
ProcessOpenClientResponseContextas its argument. The response context includes the Fingerprint identificationeventwith the complete device intelligence result. - You can use a custom item in your integration’s Config store to enable or disable the plugin. If you implement this check, do not forget to add the item to your Config store. This operation may take some time to take effect due to Fastly Compute’s caching policy.
- See the example
saveToKVStore.tsplugin for reference. - See
processOpenClientResponse.tsto see how the callback is called.
Step 3: Register the plugin
Register your plugin inside theplugins/index.ts file:
Step 4: Compile your custom package
Compile the package by running:pkg/fingerprint-fastly-compute-proxy-integration.tar.gz package file now includes your plugin.
Note: You can confirm this by searching for your package name in build/index.js.
Step 5: Deploy your custom package
You have two options for deploying your custom package in your proxy integration Compute service — using the Fastly UI or the Fastly CLI.Using Fastly UI
- Go to Fastly Dashboard.
- Open your proxy integration Compute Service and click Edit configuration > Clone version (active) to edit.
- Click Package in the left-hand menu.
- Click Upload new package and upload the
fingerprint-fastly-compute-proxy-integration.tar.gzfile. - Click Activate in the top right to deploy a new version of your service.
Using Fastly CLI
-
Install the Fastly CLI on your local machine for managing deployments.
-
Inside your fork of the proxy integration Git repository, update the
fastly.tomlfile to include your details:- Update
service_idto the service ID of your proxy integration’s Compute service. - Update
authorsto add your name and email address. - Update
descriptionto provide a custom description for your service.
- Update
-
Deploy your custom proxy service package to your proxy integration’s Fastly Compute service:
Step 6: Test your plugin
- Verify the deployment status of your service in the Fastly dashboard.
- Check that the plugin behaves as you expect.
- If necessary, examine your integration’s service logs.
Note: The proxy integration runs the plugins after it sends the identification response to the client. Plugins cannot interfere with or delay proxying requests, even if they fail. The integration logs and ignores any errors thrown by the plugin.If you encounter any problems, you can get in touch with our support team.