-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor EE secret versioning/snapshot access
- Loading branch information
1 parent
8f765cb
commit 9f724b5
Showing
7 changed files
with
68 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
import { LICENSE_KEY } from '../../config'; | ||
|
||
/** | ||
* Class to handle Enterprise Edition license actions | ||
*/ | ||
class EELicenseService { | ||
/** | ||
* Check if license key [licenseKey] corresponds to a | ||
* valid Infisical Enterprise Edition license. | ||
* @param {Object} obj | ||
* @param {Object} obj.licenseKey | ||
* @returns {Boolean} | ||
*/ | ||
static async checkLicense({ | ||
licenseKey | ||
}: { | ||
licenseKey: string; | ||
}) { | ||
// TODO | ||
return true; | ||
|
||
private readonly _isLicenseValid: boolean; | ||
|
||
constructor(licenseKey: string) { | ||
this._isLicenseValid = true; | ||
} | ||
|
||
public get isLicenseValid(): boolean { | ||
return this._isLicenseValid; | ||
} | ||
} | ||
|
||
export default EELicenseService; | ||
export default new EELicenseService(LICENSE_KEY); |
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