Manage contractor access with NetBird
Design contractor access with NetBird using narrow policies, named identities, device checks, explicit offboarding and verified revocation.
Last updated
In short
- Periodic device reauthentication is different from ending a contractor engagement.
- NetBird session expiration applies to interactive SSO peers, not setup-key peers.
- Replace broad default access with tested narrow policies before relying on segmentation.
On this page (7)
Business workflows · Part of NetBird
Editable CSV with a worked example and fields for your own assessment. Example rows are illustrative, not measured results.
Download the contractor-access acceptance worksheetA contractor often needs access to one application or subnet for a defined engagement. A useful private-network design grants that access without turning the contractor’s device into a member of the whole internal estate. It also makes the end of access an explicit, testable event.
This is a reference workflow. The worksheet contains planned acceptance cases, not a claim that revocation has been tested in your NetBird environment.
Start with a resource request
The sponsor should identify the contractor, engagement end date, required resources and allowed protocols or ports. Include device ownership and any posture requirements. “Needs VPN” is too broad to establish the necessary policy.
| Request field | Example of a precise answer |
|---|---|
| Sponsor | Internal owner who confirms ongoing need |
| Identity | Named account tied to the contractor |
| Device | Approved device or documented enrollment method |
| Destination | Named application/server or narrowly scoped route |
| Protocol | Only the required service access |
| Duration | Start, end and review dates |
| Evidence | How access and revocation will be checked |
Keep the network permission separate from application permission. Reaching a service over the mesh does not mean the contractor should be able to sign in as an administrator or see all its data.
Review the current policy before adding another peer
NetBird’s access-control documentation describes explicit policies and the broad default policy created for onboarding. Review that default rather than assuming a new account is already segmented as required. Prepare and test replacement policies before removing a rule that existing users depend on.
Distinguish user and peer groups and verify how the selected enrollment method receives the intended access. A group name that sounds restricted is not evidence that the effective policy is narrow. Inspect both source and destination behavior with test peers.
Understand what session expiry does
Peer session expiration requires periodic reauthentication for peers enrolled through interactive SSO. The documentation states that setup-key peers are not affected by that feature. Therefore, periodic session expiry cannot be used as a universal contractor offboarding mechanism.
Likewise, an enrollment key’s lifetime and the lifetime of an already enrolled device are different questions. Confirm the actual behavior of the selected client, management version and enrollment path. If an automatic engagement-end workflow is not native to that path, name the external automation or manual owner responsible for it.
A session can expire while the contractor remains authorized, and an engagement can end before the next session expiry. The operating process must handle both.
Keep onboarding bounded
Use a test identity and device to validate the approved destinations before enrolling the contractor’s real device. Confirm denied access to neighboring systems and ports, not only the requested connection. Check the application login separately and avoid sharing a broad service credential as a substitute for named access.
Record the supported NetBird deployment, identity-provider configuration and relevant edition/licence terms. If the design uses additional identity or posture capabilities, verify their actual availability. Hosting NetBird does not by itself establish every surrounding control.
Define offboarding as a sequence
At the engagement end or an earlier security event, the responsible owner should revoke the relevant identity and network permissions, review enrolled devices and invalidate application access as required. Check active sessions and other credentials that could continue to work. Preserve the appropriate audit evidence under the organization’s policy.
Do not assume a single account toggle terminates every established connection or application session. Measure the outcome from the contractor device and a controlled destination. Where a time guarantee is required, test and document the actual behavior instead of relying on a nominal configuration interval.
Exercise normal and failure cases
- Confirm the allowed application works from the approved peer.
- Attempt an unapproved destination and protocol; expect denial.
- Change group membership and observe the effective access.
- Trigger the relevant session reauthentication behavior.
- Perform the engagement-end revocation and test existing and new connections.
- Repeat for the actual enrollment method, including setup-key peers if used.
- Test loss of the identity or management dependency and record the behavior.
The result should include timestamps, versions and evidence without exposing credentials. A policy diagram alone does not prove revocation behavior.
Preserve a safe administrative path
Back up required management configuration and credentials using the deployment’s supported process. Before changing broad policies, keep an approved recovery path for administrators and a documented return procedure. Restoring old state can reintroduce removed access, so reconcile revocations before recovered services return to normal use.
Bring the resource list and completed worksheet to the private access review. The Keycloak integration guide addresses one identity path; the contractor workflow also needs sponsorship, end dates and application-level closure. Its value is access that can be explained and withdrawn, not merely a successful network connection.
Sources and further reading
Use the linked documentation to confirm the version, edition and contract that apply to your project.
