-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of default license (#39314)
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
- Loading branch information
Showing
3 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters