Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14] Fix loading of default license #39313

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Mar 13, 2024

Backport #39243 to branch/v14

changelog: Teleport Enterprise now attempts to load the license file from the configured data directory if not otherwise specified.

The behavior that we expect (and that we document) for the
license_file field in the configuration is that:
1. when empty, Teleport looks for license.pem in the configured data dir
2. when absolute, the provided path is used
3. when relative, the path is relative to the provided data dir

The actual behavior prior to this change failed to meet items 1 and 3
above. When license_file is empty  users would get an error, and when
license_file is a relative path it was always treated as relative to
/var/lib/teleport, not relative to the configured data directory.

Closes gravitational/teleport.e#481
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from tcsc March 14, 2024 08:39
@zmb3 zmb3 added this pull request to the merge queue Mar 14, 2024
Merged via the queue into branch/v14 with commit 4cb0ef0 Mar 14, 2024
26 checks passed
@zmb3 zmb3 deleted the bot/backport-39243-branch/v14 branch March 14, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants