🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@medplum/agent

Package Overview
Dependencies
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@medplum/agent

Medplum Agent

Source
npmnpm
Version
5.0.8
Version published
Maintainers
3
Created
Source

Medplum Agent

On-prem agent for device connectivity.

Building

Published releases are built using Github Actions. See the build-agent workflow for details.

The following tools are used to build the agent:

  • Node.js
  • Node.js Single Executable Applications to build the .exe file
  • NSIS to build the installer
  • Shawl for the Microsoft Windows service wrapper
  • Azure Trusted Signing to sign the executable files

Authentication and Signing

The build process uses OpenID Connect (OIDC) to authenticate with Azure Trusted Signing. This provides secure, secret-free authentication using federated credentials.

Required GitHub Secrets

For Azure OIDC Authentication:

  • AZURE_TENANT_ID - Azure Active Directory tenant ID
  • AZURE_CLIENT_ID - Azure application client ID (from service principal with federated credentials)
  • AZURE_SUBSCRIPTION_ID - Azure subscription ID

For GPG Signing:

  • MEDPLUM_RELEASE_GPG_KEY - The private GPG key (imported before signing)
  • MEDPLUM_RELEASE_GPG_KEY_ID - GPG key identifier
  • MEDPLUM_RELEASE_GPG_PASSPHRASE - GPG key passphrase

Setup Instructions

To configure OIDC authentication for Azure Trusted Signing:

  • Create a Microsoft Entra application and service principal
  • Add federated credentials for GitHub Actions
  • Assign the Trusted Signing Certificate Profile Signer role to your service principal
  • Configure the required GitHub secrets

For detailed setup instructions, see Authenticating with OpenID Connect.

References

Docker Image

Build and run the docker image

docker build -t medplum-agent:latest \
  --build-arg GIT_SHA=$(git log -1 --format=format:%H) \
  --build-arg MEDPLUM_VERSION=3.0.3 .
docker run --rm \
  -e MEDPLUM_BASE_URL="" \
  -e MEDPLUM_CLIENT_ID="" \
  -e MEDPLUM_CLIENT_SECRET="" \
  -e MEDPLUM_AGENT_ID="" \
  medplum-agent:latest

Optionally set the MEDPLUM_LOG_LEVEL environment variable

  -e MEDPLUM_LOG_LEVEL="DEBUG"

FAQs

Package last updated on 09 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts