@firestartr/cli 1.49.0-snapshot-11 → 1.49.0-snapshot-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1023 -222
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +16 -108
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +91 -83
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/external-secrets.schema.d.ts +91 -71
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/index.d.ts +91 -71
- package/build/packages/cdk8s_renderer/src/claims/github/component.secrets-vars.schema.d.ts +0 -12
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -12
- package/build/packages/cdk8s_renderer/src/utils/repositoryClaimUtils.d.ts +1 -3
- package/build/packages/cdk8s_renderer/src/validations/crossReferences.d.ts +2 -0
- package/build/packages/github/index.d.ts +5 -0
- package/build/packages/github/src/encrypt.d.ts +12 -0
- package/build/packages/provisioner/src/entities/firestartrgithubrepository/helpers/RepositorySecret.d.ts +4 -0
- package/build/packages/provisioner/src/entities/firestartrgithubrepository/helpers/RepositoryVariable.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,100 +2,120 @@ export declare const SecretsSchemas: {
|
|
|
2
2
|
$schema: string;
|
|
3
3
|
$id: string;
|
|
4
4
|
definitions: {
|
|
5
|
-
|
|
5
|
+
SecretStore: {
|
|
6
6
|
$id: string;
|
|
7
7
|
type: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
properties: {
|
|
9
|
+
name: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
kind: {
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
required: string[];
|
|
18
|
+
};
|
|
19
|
+
ExternalSecretsSection: {
|
|
20
|
+
$id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
refreshInterval: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
secrets: {
|
|
27
|
+
type: string;
|
|
28
|
+
items: {
|
|
29
|
+
additionalProperties: boolean;
|
|
18
30
|
type: string;
|
|
19
31
|
properties: {
|
|
20
|
-
|
|
32
|
+
secretName: {
|
|
21
33
|
type: string;
|
|
22
34
|
};
|
|
23
|
-
|
|
35
|
+
remoteRef: {
|
|
24
36
|
type: string;
|
|
25
|
-
enum: string[];
|
|
26
37
|
};
|
|
27
38
|
};
|
|
28
39
|
required: string[];
|
|
29
40
|
};
|
|
30
|
-
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
PushSecretsSection: {
|
|
45
|
+
$id: string;
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
properties: {
|
|
50
|
+
data: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
template: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
secretName: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
refreshInterval: {
|
|
31
60
|
type: string;
|
|
32
|
-
items: {
|
|
33
|
-
type: string;
|
|
34
|
-
properties: {
|
|
35
|
-
data: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
template: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
secretName: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
refreshInterval: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
generator: {
|
|
48
|
-
type: string;
|
|
49
|
-
properties: {
|
|
50
|
-
name: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
kind: {
|
|
54
|
-
type: string;
|
|
55
|
-
enum: string[];
|
|
56
|
-
};
|
|
57
|
-
apiVersion: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
conversionStrategy: {
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
outputKey: {
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
required: string[];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
required: string[];
|
|
71
|
-
};
|
|
72
61
|
};
|
|
73
|
-
|
|
62
|
+
generator: {
|
|
74
63
|
type: string;
|
|
75
64
|
properties: {
|
|
76
|
-
|
|
65
|
+
name: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
kind: {
|
|
69
|
+
type: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
};
|
|
72
|
+
apiVersion: {
|
|
77
73
|
type: string;
|
|
78
74
|
};
|
|
79
|
-
|
|
75
|
+
conversionStrategy: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
outputKey: {
|
|
80
79
|
type: string;
|
|
81
|
-
items: {
|
|
82
|
-
additionalProperties: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
properties: {
|
|
85
|
-
secretName: {
|
|
86
|
-
type: string;
|
|
87
|
-
};
|
|
88
|
-
remoteRef: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
required: string[];
|
|
93
|
-
};
|
|
94
80
|
};
|
|
95
81
|
};
|
|
82
|
+
required: string[];
|
|
96
83
|
};
|
|
97
84
|
};
|
|
98
85
|
required: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
ExternalSecretsProvider: {
|
|
89
|
+
$id: string;
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
allOf: ({
|
|
93
|
+
$ref: string;
|
|
94
|
+
anyOf?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
anyOf: ({
|
|
97
|
+
properties: {
|
|
98
|
+
externalSecrets: {
|
|
99
|
+
$ref: string;
|
|
100
|
+
};
|
|
101
|
+
secretStore: {
|
|
102
|
+
$ref: string;
|
|
103
|
+
};
|
|
104
|
+
pushSecrets?: undefined;
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
} | {
|
|
108
|
+
properties: {
|
|
109
|
+
pushSecrets: {
|
|
110
|
+
$ref: string;
|
|
111
|
+
};
|
|
112
|
+
secretStore: {
|
|
113
|
+
$ref: string;
|
|
114
|
+
};
|
|
115
|
+
externalSecrets?: undefined;
|
|
116
|
+
};
|
|
117
|
+
required: string[];
|
|
118
|
+
})[];
|
|
99
119
|
$ref?: undefined;
|
|
100
120
|
})[];
|
|
101
121
|
};
|
|
@@ -12,18 +12,6 @@ declare const _default: {
|
|
|
12
12
|
$ref: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
codespaces: {
|
|
16
|
-
type: string;
|
|
17
|
-
items: {
|
|
18
|
-
$ref: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
dependabot: {
|
|
22
|
-
type: string;
|
|
23
|
-
items: {
|
|
24
|
-
$ref: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
15
|
};
|
|
28
16
|
additionalProperties: boolean;
|
|
29
17
|
};
|
|
@@ -212,18 +212,6 @@ export declare const GithubSchemas: ({
|
|
|
212
212
|
$ref: string;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
codespaces: {
|
|
216
|
-
type: string;
|
|
217
|
-
items: {
|
|
218
|
-
$ref: string;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
dependabot: {
|
|
222
|
-
type: string;
|
|
223
|
-
items: {
|
|
224
|
-
$ref: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
215
|
};
|
|
228
216
|
additionalProperties: boolean;
|
|
229
217
|
};
|
|
@@ -71,12 +71,10 @@ export type RepoSecret = {
|
|
|
71
71
|
export type NamedVars = Var[];
|
|
72
72
|
export type RepoSecrets = RepoSecret[];
|
|
73
73
|
export interface VarsConfiguration {
|
|
74
|
-
copilot?: NamedVars;
|
|
75
74
|
actions?: NamedVars;
|
|
76
|
-
codespaces?: NamedVars;
|
|
77
75
|
}
|
|
78
76
|
export interface RepoSecretsConfiguration {
|
|
79
|
-
|
|
77
|
+
dependabot?: RepoSecrets;
|
|
80
78
|
actions?: RepoSecrets;
|
|
81
79
|
codespaces?: RepoSecrets;
|
|
82
80
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCheckRun } from './src/check_run';
|
|
2
2
|
import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
|
|
3
|
+
import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
org: {
|
|
5
6
|
getRepositoryList: typeof import("./src/organization").getRepositoryList;
|
|
@@ -77,5 +78,9 @@ declare const _default: {
|
|
|
77
78
|
createCheckRun: typeof createCheckRun;
|
|
78
79
|
CheckRun: typeof import("./src/check_run").GithubCheckRun;
|
|
79
80
|
};
|
|
81
|
+
encryption: {
|
|
82
|
+
encryptRepoSecret: typeof encryptRepoSecret;
|
|
83
|
+
getRepoPublicKey: typeof getRepoPublicKey;
|
|
84
|
+
};
|
|
80
85
|
};
|
|
81
86
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function getRepoPublicKey(owner: string, repo: string): Promise<{
|
|
2
|
+
key_id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
id?: number;
|
|
5
|
+
url?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
created_at?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function encryptRepoSecret(owner: string, repo: string, plaintextValue: string): Promise<{
|
|
10
|
+
key_id: string;
|
|
11
|
+
encrypted_value: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Repository } from '@cdktf/provider-github/lib/repository';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { FirestartrGithubRepository } from '../FirestartrGithubRepository';
|
|
4
|
+
export declare function provisionRepositorySecrets(scope: Construct, repo: Repository, fsGithubRepository: FirestartrGithubRepository): Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Repository } from '@cdktf/provider-github/lib/repository';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { FirestartrGithubRepository } from '../FirestartrGithubRepository';
|
|
4
|
+
export declare function provisionRepositoryVariables(scope: Construct, repo: Repository, fsGithubRepository: FirestartrGithubRepository): Promise<void>;
|