FlowFuse / FlowFuse/device-agent

Make setting up private CA certificates easier

Open
#525 0 comments 0 reactions 0 assignees View on GitHub
needs-triage type:feature
Dominant language
JavaScript
Stars
20
Forks
10
Avg merge
9d 4h
Merged PRs (30d)
9

Description

### Description

Suggest adding a default empty chain.pem to `/opt/flowfuse-device/`

And configuring both NSSM and Linux services to export the `NODE_EXTRA_CA_CERTS=/opt/flowfuse-device/chain.pem` environment variable by default.

This mean users would only need to overwrite the file with their CA chain to enable support.

I would like to do this for the flowfuse-device-agent shell scripts as well, but they are generated by npm from the package.json file and I don't think it's possible to inject env vars into them.

### Requested By

- Customer name and/or link to HubSpot contact

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the setup files for /opt/flowfuse-device/, the NSSM and Linux service definitions, and package.json generation for the flowfuse-device-agent shell scripts. Verify that a default empty chain.pem is installed and that the requested NODE_EXTRA_CA_CERTS value is configured for the supported services, while checking whether generated scripts can receive the environment variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux, node.js
Domain
infrastructure, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.