@firestartr/cli 2.11.0-snapshot-objects-in-patches → 2.11.0-snapshot-orgsettings-nullguard-1
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 +1017 -7
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +457 -0
- package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/charts/github/orgSecretSectionChart.d.ts +8 -0
- package/build/packages/cdk8s_renderer/src/charts/index.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +89 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +89 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgSecrets.schema.d.ts +67 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +20 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +24 -0
- package/build/packages/cdk8s_renderer/src/renderer/claims-render.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/validations/githubOrgSecretSection.d.ts +4 -0
- package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/index.d.ts +7 -0
- package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/secrets.d.ts +16 -0
- package/build/packages/github/index.d.ts +7 -1
- package/build/packages/github/src/orgSecrets.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
$id: string;
|
|
4
|
+
definitions: {
|
|
5
|
+
GithubOrgClaimSecrets: {
|
|
6
|
+
$id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
properties: {
|
|
10
|
+
actions: {
|
|
11
|
+
type: string;
|
|
12
|
+
items: {
|
|
13
|
+
$ref: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
codespaces: {
|
|
17
|
+
type: string;
|
|
18
|
+
items: {
|
|
19
|
+
$ref: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
dependabot: {
|
|
23
|
+
type: string;
|
|
24
|
+
items: {
|
|
25
|
+
$ref: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
additionalProperties: boolean;
|
|
30
|
+
};
|
|
31
|
+
GithubOrgClaimSecretRef: {
|
|
32
|
+
$id: string;
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
pattern: string;
|
|
36
|
+
};
|
|
37
|
+
GithubOrgClaimSecret: {
|
|
38
|
+
$id: string;
|
|
39
|
+
type: string;
|
|
40
|
+
description: string;
|
|
41
|
+
properties: {
|
|
42
|
+
name: {
|
|
43
|
+
type: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
value: {
|
|
47
|
+
$ref: string;
|
|
48
|
+
};
|
|
49
|
+
visibility: {
|
|
50
|
+
type: string;
|
|
51
|
+
enum: string[];
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
selected_repositories: {
|
|
55
|
+
type: string;
|
|
56
|
+
items: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
required: string[];
|
|
63
|
+
additionalProperties: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
@@ -35,6 +35,26 @@ export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
|
|
|
35
35
|
visibility: 'all' | 'private' | 'selected';
|
|
36
36
|
selected_repositories?: string[];
|
|
37
37
|
}[];
|
|
38
|
+
org_secrets?: {
|
|
39
|
+
actions?: {
|
|
40
|
+
name: string;
|
|
41
|
+
value: string;
|
|
42
|
+
visibility?: 'all' | 'private' | 'selected';
|
|
43
|
+
selected_repositories?: string[];
|
|
44
|
+
}[];
|
|
45
|
+
codespaces?: {
|
|
46
|
+
name: string;
|
|
47
|
+
value: string;
|
|
48
|
+
visibility?: 'all' | 'private' | 'selected';
|
|
49
|
+
selected_repositories?: string[];
|
|
50
|
+
}[];
|
|
51
|
+
dependabot?: {
|
|
52
|
+
name: string;
|
|
53
|
+
value: string;
|
|
54
|
+
visibility?: 'all' | 'private' | 'selected';
|
|
55
|
+
selected_repositories?: string[];
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
38
58
|
};
|
|
39
59
|
};
|
|
40
60
|
}
|
|
@@ -146,6 +146,30 @@ declare const _default: {
|
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
+
org_secrets: {
|
|
150
|
+
type: string;
|
|
151
|
+
properties: {
|
|
152
|
+
actions: {
|
|
153
|
+
type: string;
|
|
154
|
+
items: {
|
|
155
|
+
$ref: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
codespaces: {
|
|
159
|
+
type: string;
|
|
160
|
+
items: {
|
|
161
|
+
$ref: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
dependabot: {
|
|
165
|
+
type: string;
|
|
166
|
+
items: {
|
|
167
|
+
$ref: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
additionalProperties: boolean;
|
|
172
|
+
};
|
|
149
173
|
};
|
|
150
174
|
additionalProperties: boolean;
|
|
151
175
|
required: string[];
|
|
@@ -8,5 +8,5 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
|
|
|
8
8
|
crs: any;
|
|
9
9
|
renames?: IRenameResult[];
|
|
10
10
|
}): Promise<RenderedCrMap>;
|
|
11
|
-
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[], secretSectionPreviousCR?: any | false, secretSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RenderClaims, RenderedCrMap } from '../renderer/types';
|
|
2
|
+
export declare function validateGithubOrgSecretSectionSingleton(crs: RenderedCrMap): void;
|
|
3
|
+
export declare function validateSecretNamesUniqueness(crs: RenderedCrMap): void;
|
|
4
|
+
export declare function validateOrgSecretsCrossReferences(renderClaims: RenderClaims): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EntityGHOrgSecretSection } from '.';
|
|
2
|
+
import { type OrgSecretsSection } from 'github';
|
|
3
|
+
export type SecretEntry = {
|
|
4
|
+
name: string;
|
|
5
|
+
ref: {
|
|
6
|
+
kind: string;
|
|
7
|
+
name: string;
|
|
8
|
+
key: string;
|
|
9
|
+
};
|
|
10
|
+
visibility: string;
|
|
11
|
+
selectedRepositories?: string[];
|
|
12
|
+
};
|
|
13
|
+
declare const SECTIONS: OrgSecretsSection[];
|
|
14
|
+
export { SECTIONS };
|
|
15
|
+
export declare function provisionOrgSecrets(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
|
|
16
|
+
export declare function adoptSecretsIfNeeded(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
|
|
@@ -2,7 +2,9 @@ import { createCheckRun } from './src/check_run';
|
|
|
2
2
|
import { upsertMultiPartStickyComments } from './src/sticky_comment';
|
|
3
3
|
import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
|
|
4
4
|
import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
|
|
5
|
+
import { getOrgPublicKey, encryptOrgSecret, getOrgSecret } from './src/orgSecrets';
|
|
5
6
|
import type { RepoSecretsSection } from './src/encrypt';
|
|
7
|
+
import type { OrgSecretsSection } from './src/orgSecrets';
|
|
6
8
|
import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
|
|
7
9
|
import { withProfile } from './src/with_profile';
|
|
8
10
|
import { createProfile } from './src/profile';
|
|
@@ -103,10 +105,14 @@ declare const _default: {
|
|
|
103
105
|
encryption: {
|
|
104
106
|
encryptRepoSecret: typeof encryptRepoSecret;
|
|
105
107
|
getRepoPublicKey: typeof getRepoPublicKey;
|
|
108
|
+
getOrgPublicKey: typeof getOrgPublicKey;
|
|
109
|
+
encryptOrgSecret: typeof encryptOrgSecret;
|
|
110
|
+
getOrgSecret: typeof getOrgSecret;
|
|
106
111
|
};
|
|
107
112
|
withProfile: typeof withProfile;
|
|
108
113
|
createProfile: typeof createProfile;
|
|
109
114
|
};
|
|
110
115
|
export default _default;
|
|
111
|
-
export {
|
|
116
|
+
export { createProfile };
|
|
117
|
+
export type { RepoSecretsSection, OrgSecretsSection };
|
|
112
118
|
export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type OrgSecretsSection = 'actions' | 'dependabot' | 'codespaces';
|
|
2
|
+
export declare function getOrgPublicKey(org: string, section: OrgSecretsSection, octokit?: any): Promise<any>;
|
|
3
|
+
export declare function encryptOrgSecret(org: string, section: OrgSecretsSection, plaintextValue: string, preFetchedKey?: {
|
|
4
|
+
key_id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
}, octokit?: any): Promise<{
|
|
7
|
+
key_id: any;
|
|
8
|
+
encrypted_value: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function getOrgSecret(org: string, section: OrgSecretsSection, name: string, octokit?: any): Promise<any>;
|