interfaces/ts/data/secretbundle.ts

43 lines
881 B
TypeScript
Raw Normal View History

2024-06-09 22:48:44 +00:00
export interface ISecretBundle {
id: string;
data: {
name: string;
description: string;
/**
* determines if the secret is a service or an external secret
* if external secret additional checks are put in place to protect the secret
*/
2024-06-09 23:26:07 +00:00
type: 'service' | 'npmci' | 'gitzone' | 'external';
2024-06-09 22:48:44 +00:00
/**
* You can add specific secret groups using this
*/
includedSecretGroupIds: string[];
/**
* You can add specific tags using this
*/
includedTags: {
key: string;
2024-06-09 23:26:07 +00:00
value?: string;
2024-06-09 22:48:44 +00:00
}[];
2024-06-09 23:26:07 +00:00
/**
* add images
*/
includedImages: {
imageId: string;
permissions: ('read' | 'write')[];
}[];
2024-06-09 22:48:44 +00:00
/**
* authrozations select a specific environment of a config bundle
*/
authorizations: Array<{
secretAccessKey: string;
environment: string;
}>;
};
}