fix(apiclient): Implemented IService interface in Service class and improved secret bundle documentation.

This commit is contained in:
2024-12-20 02:13:50 +01:00
parent affce1fcd1
commit 50fac41c95
7 changed files with 32 additions and 3 deletions

View File

@ -7,6 +7,17 @@ export interface ISecretBundle {
/**
* determines if the secret is a service or an external secret
* if external secret additional checks are put in place to protect the secret
*
* * service:
* the bundle belongs to a service and can only be used by that service
* * npmci:
* the bundle is a secret bundle that is used by an npmci pipeline
* production secrets will be omitted in any case
* * gitzone:
* the bundle is a secret bundle that is used by a gitzone.
* Only local environment variables are allowed
* * external:
* the bundle is a secret bundle that is used by an external service
*/
type: 'service' | 'npmci' | 'gitzone' | 'external';