Skip to content

Use license files without root activation - #212

Merged
bschwedler merged 2 commits into
mainfrom
fix/workbench-license-file
Sep 25, 2026
Merged

bschwedler merged 2 commits into
mainfrom
fix/workbench-license-file

Conversation

@bschwedler

Copy link
Copy Markdown
Contributor

Workbench should read license files from its service data directory instead of calling license-manager activate-file, which requires root. This lets non-root containers use file-based licensing without running key-license deactivation on exit.

The fix is rendered into all eight existing Workbench versions.

Copy Workbench license files into the service data directory so the
non-root server can read them without license-manager activate-file.
Skip copying files already there and only deactivate key or server
licenses on exit.
Render the existing Workbench versions from the corrected startup
template so older images avoid root-only license file activation.

@zachhannum zachhannum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bschwedler
bschwedler added this pull request to the merge queue Sep 25, 2026

@jacpete jacpete left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. It matches the Connect pattern plus an attempt to change ownership to rstudio-server:rstudio-server if the user is root. I'd expect this to work.

Merged via the queue into main with commit 16ed623 Sep 25, 2026
28 checks passed
@bschwedler
bschwedler deleted the fix/workbench-license-file branch September 25, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix license-file handling in Workbench and Package Manager images

4 participants