-
bryan authored
* decrypt and read values from airgap token - Adds notion of "AirgapToken" - Adds max-users and company optional fields to `TokenStatus` - Adds branch to `fetch-token-status*` for handling airgapped tokens * Add support for handling airgap tokens - validate airgap token valid-thru date * enforce user creation limits using airgap token * fix airgap token reads + fill in the token data * in oss mode don't try to read the airgap_ token * use airgap-token? helper * tighten the user-creation logic - make the check correct - account for archived users Co-authored-by:
John Swanson <john.swanson@metabase.com> * check airgap user count setting premium-embedding-token app startup * move decryption code into ee namespace * add some tests for token decryption * fix tests and add tests * move ee features into ee tests * add typehint + warn on reflection * add a check for missing public key resource * respond to review - add docstring to AirgapToken - remove outdated comment - fix off-by-1 error * valid-now? takes a TokenStatus instead of a :map * revert usage of mt/with-temporary-setting-values --------- Co-authored-by:
John Swanson <john.swanson@metabase.com>
bryan authored* decrypt and read values from airgap token - Adds notion of "AirgapToken" - Adds max-users and company optional fields to `TokenStatus` - Adds branch to `fetch-token-status*` for handling airgapped tokens * Add support for handling airgap tokens - validate airgap token valid-thru date * enforce user creation limits using airgap token * fix airgap token reads + fill in the token data * in oss mode don't try to read the airgap_ token * use airgap-token? helper * tighten the user-creation logic - make the check correct - account for archived users Co-authored-by:
John Swanson <john.swanson@metabase.com> * check airgap user count setting premium-embedding-token app startup * move decryption code into ee namespace * add some tests for token decryption * fix tests and add tests * move ee features into ee tests * add typehint + warn on reflection * add a check for missing public key resource * respond to review - add docstring to AirgapToken - remove outdated comment - fix off-by-1 error * valid-now? takes a TokenStatus instead of a :map * revert usage of mt/with-temporary-setting-values --------- Co-authored-by:
John Swanson <john.swanson@metabase.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
fake_ag_token.txt 708 B
airgap_eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhDQkMtSFMyNTYifQ.rHUDSPzcF-Kth1pIXbnlLlJiEgwx2rABSyj9PU98ubYGa7vUFwxfR9f4-UhF6EYrjvbtOx0QG9rFOSlfDmgG8jhCpIyuXpfliXdeeFpYt8Pludf-bmB85gU6hQEpYaTq_hihrPwCjpkUaNBaQzxN-klk1uqgDG2gBTspuqBXBln_Km6kLkyeF6BLO2nDJiiqT5pGPINSz42CCB7hGxZOFOnB443PfCas8QkfvmSX5X_Uqe9NNjhF_QKyElUWGCCO-Im48Pgd-HytwdaoaDzhe25fFDnYzDYgmEEQOxFncie0ZITCr7vjBRueK7KNnwXhO1297Xaku3moWnxRGZkcqA.ETtpjR3NQIceA-b77k537g.KHUIHYecBLByiKNm-_oQ7aNd9mJCVfhX12qfmWq6Zg1JBKicY-p7F3i_sk_ci0tfyfxT0PObi-s7BZ8pD7Fjw0wx-fmuQ0351gfA_1F6eKKZ0HwPtDBRN11Ip_FBy51YdRDa_bIRUXZJSEfLZSictQ1wMf-aUDRM6xz1CuzPNMXN3yi6vrkVNwAguHPwgs_pTCvga9P79vmjFyl05cBRzyDEhFOy72HzTd2R4EEXVKngZSNFvyJmILGQ_gcLrGr9.VuP_E_SwQMCeRUe2PNPpFg