saaslayer 0.0.7 → 0.2.0
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/README.md +150 -13
- package/bin/saaslayer.js +318 -66
- package/package.json +4 -3
- package/src/api-client.js +48 -28
- package/src/aws-sigv4.js +1 -1
- package/src/commands/access-admins.js +73 -0
- package/src/commands/accounts.js +32 -3
- package/src/commands/activity.js +33 -0
- package/src/commands/aws.js +55 -6
- package/src/commands/catalog.js +30 -29
- package/src/commands/context.js +64 -0
- package/src/commands/deploy.js +79 -10
- package/src/commands/first-admin.js +42 -0
- package/src/commands/foundation.js +456 -0
- package/src/commands/integration-credentials.js +66 -0
- package/src/commands/lifecycle.js +77 -40
- package/src/commands/login.js +200 -26
- package/src/commands/machine-trust.js +96 -0
- package/src/commands/operations.js +140 -0
- package/src/commands/orgs.js +29 -4
- package/src/commands/{rbac-inspect.js → permissions-inspect.js} +15 -15
- package/src/commands/release-manifest.js +138 -0
- package/src/commands/service-principals.js +81 -0
- package/src/commands/settings.js +140 -0
- package/src/commands/stacks.js +12 -7
- package/src/commands/users-management.js +401 -0
- package/src/commands/users.js +192 -4
- package/src/config.js +20 -7
- package/src/credentials.js +221 -34
- package/src/deployment-api-auth.js +61 -0
- package/src/deployment-auth.js +38 -0
- package/src/deployments.js +12 -13
- package/src/discovery.js +66 -0
- package/src/env-compare.js +143 -0
- package/src/iam-session.js +4 -30
- package/src/module-catalog.js +66 -0
- package/src/permissions-request.js +43 -0
- package/src/release-manifest.js +334 -0
- package/src/scope.js +114 -0
- package/src/settings.js +272 -0
- package/src/users-api.js +165 -0
- package/src/users-import/import.js +10 -10
- package/templates/saaslayer-foundation-region.yml +37 -1
- package/templates/saaslayer-foundation.yml +63 -10
- package/src/commands/iam-principals.js +0 -53
- package/src/rbac-auth.js +0 -25
- package/vendor/ids/index.d.ts +0 -21
- package/vendor/ids/index.js +0 -237
package/bin/saaslayer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// SaaSLayer CLI (M0.10, D18) — onboard an AWS account and register
|
|
2
|
+
// SaaSLayer CLI (M0.10, D18) — onboard an AWS account and register permissions manifests.
|
|
3
3
|
// `saaslayer init` deploys the bundled saaslayer-foundation.yml (the control plane's deploy role +
|
|
4
|
-
// boundary + artifact bucket). `saaslayer
|
|
5
|
-
// into the
|
|
4
|
+
// boundary + artifact bucket). `saaslayer permissions register` upserts a service's permissions manifest
|
|
5
|
+
// into the permissions catalog (POST /catalog/register) — run by a human or wired into CI.
|
|
6
6
|
|
|
7
7
|
'use strict'
|
|
8
8
|
const fs = require('fs')
|
|
@@ -36,49 +36,109 @@ Usage:
|
|
|
36
36
|
bucket) into the caller's AWS account, trusting the SaaSLayer control plane.
|
|
37
37
|
Uses the bundled templates/saaslayer-foundation.yml. --dry-run validates only.
|
|
38
38
|
|
|
39
|
-
saaslayer
|
|
39
|
+
saaslayer foundation status [--region R] [--profile P] [--stack-name saaslayer-foundation] [--only account|region]
|
|
40
|
+
Show each installed foundation stack (saaslayer-foundation + saaslayer-foundation-<region>): its status,
|
|
41
|
+
installed version and the version bundled with this CLI.
|
|
42
|
+
saaslayer foundation upgrade [--region R] [--profile P] [--stack-name saaslayer-foundation] [--only account|region]
|
|
43
|
+
[--dry-run] [--yes] [--allow-replacement]
|
|
44
|
+
Upgrade the installed foundation stacks in place to this CLI's bundled templates with YOUR AWS credentials.
|
|
45
|
+
Builds a CloudFormation change set that keeps every existing parameter value (the ExternalId is never
|
|
46
|
+
re-entered or printed; new parameters take their template default), prints the version change and each
|
|
47
|
+
resource change, then executes after you confirm and reads the new version back. Refuses a stack that is
|
|
48
|
+
not in a stable state or that runs a newer version than this CLI. A change that replaces a resource or
|
|
49
|
+
removes an IAM role, the permissions boundary or the artifact bucket needs --allow-replacement.
|
|
50
|
+
--dry-run shows the change set and deletes it; --yes skips the confirmation. --region is where the stacks
|
|
51
|
+
live (default $AWS_REGION, else us-east-1). The region stack is skipped when it is not installed.
|
|
52
|
+
After the upgrade (or when nothing changed) the control plane re-reads the account's foundation through its
|
|
53
|
+
own trust, as your saaslayer login (no AWS credentials are sent), so the console and deploys see the new
|
|
54
|
+
version; if that fails the upgrade still stands and the console's "check again" re-reads it.
|
|
55
|
+
|
|
56
|
+
saaslayer signup [--config-url URL] [--email E --password P]
|
|
40
57
|
Create a SaaSLayer account (allowlist-gated) and log in.
|
|
58
|
+
--config-url (or $SAASLAYER_CONFIG_URL) is the control-plane API; default https://api.saaslayer.com.
|
|
41
59
|
saaslayer login [--email E --password P] [--config-url URL | --user-pool-id ID --client-id ID --region R]
|
|
42
60
|
Log in to your SaaSLayer account (Cognito SRP) and cache tokens in ~/.saaslayer.
|
|
43
61
|
Email/password fall back to $SAASLAYER_EMAIL/$SAASLAYER_PASSWORD, else prompt.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
saaslayer
|
|
47
|
-
|
|
62
|
+
Challenges (both login forms): first-login password change via --new-password-stdin (or a hidden
|
|
63
|
+
prompt in a terminal); MFA via --mfa-code 123456 (or a hidden prompt). Secrets are never echoed.
|
|
64
|
+
saaslayer login --deployment <dep_id|env> [--user-service-instance NAME] [--project P] [--region R] [--config-url URL]
|
|
65
|
+
Log in to a deployment's user-service as an access admin. The pool, client and API bases are
|
|
66
|
+
discovered from the deployment's public outputs (an env name resolves the active project's deployment).
|
|
67
|
+
Kept separate from your control-plane login, which stays logged in.
|
|
68
|
+
saaslayer whoami Show the current logged-in account, its control plane, and the active org/project.
|
|
69
|
+
saaslayer context [--json] [--profile AWS_PROFILE] Show the control-plane account, the deployment login, the AWS
|
|
70
|
+
profile, org and project (and where each came from) and every cached identity.
|
|
71
|
+
Tokens are never printed.
|
|
72
|
+
saaslayer accounts List all cached control-plane accounts (most-recently-used first; * = active).
|
|
73
|
+
saaslayer account use <email> Switch the active control-plane account to another cached login (no re-auth).
|
|
74
|
+
saaslayer deployment logins List cached deployment logins (* = current).
|
|
75
|
+
saaslayer deployment use <dep_id|env> [--as <email>] [--user-service-instance NAME]
|
|
76
|
+
Select the deployment login that deployment commands act as. --deployment/--as on a command pick one for
|
|
77
|
+
that command; when several match, the command fails and names the flag to add.
|
|
78
|
+
saaslayer logout [--user <email|userId>] Clear the current control-plane account (or the named one).
|
|
79
|
+
saaslayer logout --deployment <dep_id|env> [--as <email>] Clear a deployment login (control-plane login kept).
|
|
48
80
|
|
|
49
|
-
saaslayer
|
|
50
|
-
Upsert a service's
|
|
81
|
+
saaslayer permissions register <manifest.json> --product PRODUCT --api-base URL [auth]
|
|
82
|
+
Upsert a service's permissions manifest into the permissions catalog under the product that owns it (a service
|
|
51
83
|
belongs to exactly one product; --product defaults to the manifest's "product"). Publishes a new registry
|
|
52
|
-
snapshot version, live in every container within 60 s.
|
|
53
|
-
|
|
84
|
+
snapshot version, live in every container within 60 s. Needs saaslayer:catalog:service:register: a deployment
|
|
85
|
+
administrator holds it; a machine (--iam) needs the catalog:register scope and a grant of it. [auth] = a
|
|
86
|
+
access-admin login, --token KEY (defaults to $SAASLAYER_TOKEN) or --iam PRINCIPAL.
|
|
87
|
+
saaslayer permissions inspect <TYPE>:<id> --api-base URL (--iam PRINCIPAL | --token KEY) [--scope S]... [--scope-page C]
|
|
54
88
|
[--assignment-page C] [--all-scopes] [--stored] [--json]
|
|
55
|
-
Print a principal's permissions (needs saaslayer:
|
|
89
|
+
Print a principal's permissions (needs saaslayer:identity read): assignments, global and per-scope allows/denies with the
|
|
56
90
|
granting role/policy and conditions, size stats (item bytes vs the 340 KB gate, defs, ref sets, scopes) and
|
|
57
91
|
copy-paste next-page commands. --all-scopes follows every scope page (restarts once if the doc is rebuilt
|
|
58
92
|
mid-way). --stored prints the stored doc's inspection model ("Stored v1" / "Stored v2 (compact)", problems);
|
|
59
93
|
--stored --json the raw stored items. session:<id> inspects a session's stored permission set.
|
|
60
|
-
saaslayer
|
|
94
|
+
saaslayer permissions model apply <authorization-model.json> --api-base URL (--iam PRINCIPAL [--region R] [--profile P] | --token KEY)
|
|
61
95
|
[--dry-run] [--allow-orphan] [--adopt]
|
|
62
|
-
Apply a product's versioned role catalog
|
|
96
|
+
Apply a product's versioned authorization model (role catalog: managed system roles) to its permissions API.
|
|
63
97
|
--iam authenticates as one of your IAM principals using your AWS credentials.
|
|
64
98
|
--dry-run prints the plan and role diff without writing; --allow-orphan permits
|
|
65
99
|
removing roles that still have assignments; --adopt converts org-owned roles with catalog
|
|
66
100
|
ids into shared catalog roles (assignments kept). Fails if the manifest's selfCheck fails.
|
|
67
|
-
saaslayer
|
|
101
|
+
saaslayer permissions model export --snapshot --out FILE --api-base URL (--iam PRINCIPAL | --token KEY)
|
|
68
102
|
Write the currently published registry snapshot ({ meta, snapshot }) to FILE — the pinned registry
|
|
69
|
-
|
|
70
|
-
saaslayer
|
|
71
|
-
Print the
|
|
72
|
-
saaslayer
|
|
73
|
-
Make a member the FIRST owner of an org (refused once the org has an owner). Needs
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
103
|
+
@saaslayer/permissions direct mode loads at deploy.
|
|
104
|
+
saaslayer permissions model get <product> --api-base URL (--iam PRINCIPAL [--region R] [--profile P] | --token KEY)
|
|
105
|
+
Print the authorization model currently applied for a product (version, content hash, roles, manifest).
|
|
106
|
+
saaslayer permissions owner bootstrap <product> --org ORG --user USER --api-base URL (--iam PRINCIPAL | --token KEY)
|
|
107
|
+
Make a member the FIRST owner of an org (refused once the org has an owner). Needs saaslayer:catalog:owner:bootstrap
|
|
108
|
+
(a machine: the owners:bootstrap scope and a grant of it).
|
|
109
|
+
saaslayer permissions owner reconcile <product> --api-base URL (--iam PRINCIPAL | --token KEY) [--org ORG] [--apply]
|
|
110
|
+
Compare each org's owner counter with a live recount; --apply repairs drift. Needs saaslayer:catalog:owner:reconcile
|
|
111
|
+
(a machine: the catalog:write scope and a grant of it).
|
|
112
|
+
saaslayer permissions service-principal roles (<id> | --machine PRINCIPAL) --api-base URL (--token KEY | --iam PRINCIPAL)
|
|
113
|
+
saaslayer permissions service-principal assign (<id> | --machine PRINCIPAL) --role ROLE [--scope S] --api-base URL (--token KEY | --iam PRINCIPAL)
|
|
114
|
+
saaslayer permissions service-principal unassign (<id> | --machine PRINCIPAL) --role ROLE [--scope S] --api-base URL (--token KEY | --iam PRINCIPAL)
|
|
115
|
+
List, grant or revoke roles of a service principal. --machine PRINCIPAL targets a declared IAM principal's
|
|
116
|
+
mapped principal (iam.PRINCIPAL), which acts with its scopes AND these grants.
|
|
117
|
+
Grants are deployment-wide unless --scope names an org scope. Needs roles:role:{assign,unassign} +
|
|
118
|
+
identity:principal:read.
|
|
119
|
+
saaslayer permissions machine-trust list | get <principalId> --api-base URL [auth]
|
|
120
|
+
saaslayer permissions machine-trust declare <principalId> --role-arn ARN --scope S [--scope S2] --api-base URL [auth]
|
|
121
|
+
saaslayer permissions machine-trust update <principalId> [--role-arn ARN] [--scope S …] [--expected-revision N] --api-base URL [auth]
|
|
122
|
+
saaslayer permissions machine-trust remove <principalId> --api-base URL [auth]
|
|
123
|
+
saaslayer permissions machine-trust reconcile --api-base URL [auth]
|
|
124
|
+
The deployment's trusted AWS IAM roles (machine trust), managed through the permissions API, which writes the
|
|
125
|
+
backing SSM parameter. [auth] = an access-admin login (\`saaslayer login --deployment\`), --token KEY or --iam PRINCIPAL.
|
|
126
|
+
A declaration grants nothing: grant roles with \`permissions service-principal assign --machine\`. remove unassigns
|
|
127
|
+
every role of the mapped principal. Changes reach already-issued iam_ tokens within 60 s. Every machine call
|
|
128
|
+
needs scope AND grant (broker:<p> and attest routes are scope-only). Scopes: catalog:read,
|
|
129
|
+
catalog:write, catalog:register, owners:bootstrap, orgs:read, orgs:write, users:read, users:write, users:write-reserved,
|
|
130
|
+
users:set-password, users:adopt, machine-trust:read, machine-trust:write, broker:<p>, attributes:attest:<p>,
|
|
131
|
+
context:attest:<p>.
|
|
132
|
+
saaslayer permissions access-admins list --api-base URL [auth]
|
|
133
|
+
saaslayer permissions access-admins offer <suid> [--mode transfer|add] [--expires-in-hours N] --api-base URL [auth]
|
|
134
|
+
saaslayer permissions access-admins status | cancel <transferId> --api-base URL [auth]
|
|
135
|
+
saaslayer permissions access-admins accept <transferId> | activate --api-base URL [your deployment login]
|
|
136
|
+
The deployment's administrators (saaslayer:access-admin). At least one usable human administrator
|
|
137
|
+
always remains — enabled, and activated: signed in themselves with a verified email; machines never count — so
|
|
138
|
+
the last one can't be revoked, disabled, deleted or unverified (409 LAST_ADMIN). offer grants <suid> the role at
|
|
139
|
+
once; it counts once they accept with their own deployment login. --mode transfer (default) then removes you,
|
|
140
|
+
add keeps you. An interrupted accept leaves both admins; accept again to finish. cancel (pending offers, by you)
|
|
141
|
+
revokes the grant. activate records your own activation. See services/permissions-service/user-docs/access-admins.md.
|
|
82
142
|
|
|
83
143
|
saaslayer users export --provider cognito --user-pool-id POOL --region R [--profile P]
|
|
84
144
|
[--account-attribute ATTR] [--account-name-attribute ATTR] [--role-map map.js] --out manifest.json
|
|
@@ -89,31 +149,154 @@ Usage:
|
|
|
89
149
|
[--api-base URL --product P (--iam PRINCIPAL | --token KEY) [--logs-role-arn ARN] --apply] [--report FILE]
|
|
90
150
|
Dry run by default: prints what would be created or linked. --apply imports new users through a Cognito CSV
|
|
91
151
|
import job (reset required on first sign-in, no emails sent), stamps their SaaSLayer id + default org, then
|
|
92
|
-
creates each user's
|
|
152
|
+
creates each user's permissions principal and org, adds members and bootstraps the first Owner (IAM scopes users:write + orgs:write + owners:bootstrap).
|
|
93
153
|
Idempotent: re-run to retry failures. See docs/users-import.md.
|
|
154
|
+
saaslayer users <command> … [target] [auth]
|
|
155
|
+
Administer a deployment's users through its user-service /api/users (see services/user-service/docs/users.md).
|
|
156
|
+
[auth] = the current deployment login (\`saaslayer login --deployment\`; pick one with --deployment/--as), or
|
|
157
|
+
--iam PRINCIPAL [--region R] [--profile P] (IAM scopes users:read|write|write-reserved|set-password|adopt + the
|
|
158
|
+
matching saaslayer:users:account:* grant on iam.PRINCIPAL), or --token KEY. [target] = the login's own APIs, or
|
|
159
|
+
--api-base USERS_URL [--permissions-api-base PERMISSIONS_URL], or the deployment's public discovery (--deployment <dep_id|env>
|
|
160
|
+
[--config-url URL] or --discovery-url URL). <user> = <suid>, --suid ID or --email E (looked up). Prints JSON.
|
|
161
|
+
saaslayer users create --email E [--password-stdin | --delivery invitation] [--name N] [--soid ORG] [--suid ID]
|
|
162
|
+
[--idempotency-key K] [--interval SECONDS]
|
|
163
|
+
A durable operation (identity, profile, permissions principal, password | invitation). Re-running the same command
|
|
164
|
+
replays it (the default Idempotency-Key is derived from the email); a running operation is waited for; a failed
|
|
165
|
+
step is an error — run the same command again to resume. An email of another account is refused (see adopt).
|
|
166
|
+
--password-stdin sets a permanent password: the deployment needs
|
|
167
|
+
user-service.EnablePasswordInitialization=true and is never prod.
|
|
168
|
+
e.g. printf '%s' "$PW" | saaslayer users create --email qa@acme.com --password-stdin
|
|
169
|
+
saaslayer users get <user> [--org ORG]
|
|
170
|
+
One user (status, enabled, email verification); --org ORG = the member view of that org.
|
|
171
|
+
saaslayer users list (--email E | --default-org ORG) [--limit N] [--cursor C]
|
|
172
|
+
Users holding an email, or whose default org is ORG; prints nextCursor for the next page.
|
|
173
|
+
saaslayer users update <user> [--name N] [--attr name=value …]
|
|
174
|
+
Profile attributes (name, given_name, family_name, locale, zoneinfo, picture).
|
|
175
|
+
saaslayer users disable <user> | saaslayer users enable <user>
|
|
176
|
+
Sign the user out everywhere and refuse sign-in / allow it again (grants and credentials are kept). The last
|
|
177
|
+
usable owner of an org can't be disabled.
|
|
178
|
+
saaslayer users delete <suid> --yes [--email E]
|
|
179
|
+
GDPR delete everywhere (sign-in, passwordless data, profile). --email finds a user that was never projected.
|
|
180
|
+
saaslayer users reset-password <user>
|
|
181
|
+
Cognito mails a reset code to the verified email; the current password stops working.
|
|
182
|
+
saaslayer users set-password <user> --password-stdin [--temporary]
|
|
183
|
+
Permanent unless --temporary (replaced at next sign-in). Needs EnablePasswordInitialization (never prod);
|
|
184
|
+
access admins are refused.
|
|
185
|
+
saaslayer users adopt <user> [--password-stdin]
|
|
186
|
+
Adopt an account made outside SaaSLayer's routes (self sign-up, the Cognito console); --password-stdin then
|
|
187
|
+
sets its password. Needs EnablePasswordInitialization (never prod).
|
|
188
|
+
Passwords are read from stdin only; a --password flag is refused.
|
|
189
|
+
saaslayer users reset-mfa <user> --reason "…"
|
|
190
|
+
For a user who lost every MFA factor: removes their passkeys and authenticator-app MFA and signs them out
|
|
191
|
+
everywhere, so they can enroll a new factor. Access admins only (never --iam); the reason
|
|
192
|
+
goes to the audit line. Resetting your own MFA needs a fresh MFA sign-in.
|
|
193
|
+
saaslayer users admin bootstrap|keys|grants --deployment <id> --service <ref> --account-id <id> --region <r>
|
|
194
|
+
[--profile <p> --manifest <file>] [--wait]
|
|
195
|
+
Opt-in local management of one user-service instance (off by default): owners, machine keys and human grants
|
|
196
|
+
with fixed purposes, usable without the control plane or permissions-service. Standalone (--manifest, your
|
|
197
|
+
target-account IAM; the manifest is checked against the stack before any write) or managed (an owner of the
|
|
198
|
+
deployment's owning org, through the control plane).
|
|
199
|
+
bootstrap --owner-suid <suid> --owner-email <email> [repeat] --purpose <p> [repeat] [--reason <text>]
|
|
200
|
+
keys --caller <id> --purpose <p> --phase introduce --output <private-file>
|
|
201
|
+
keys --caller <id> --phase activate|retire|revoke --key-id <id> [--reason <text>] | keys --phase status
|
|
202
|
+
grants --principal <suid> [repeat] --purpose <p> --phase grant|revoke|status [--reason <text>]
|
|
203
|
+
Purposes: account-read, account-provisioning, account-import, account-administration, account-deletion,
|
|
204
|
+
account-sensitive, account-recovery (humans only), reconciliation, config, email-authoring. A raw key is written
|
|
205
|
+
only to --output (0600); revoke needs --reason; a revoked grant or root comes back only with --reason.
|
|
94
206
|
|
|
95
207
|
Deploy & lifecycle (requires login + a connected AWS account):
|
|
96
208
|
saaslayer aws connect --aws-account <id> [--region R] [--org ID] [--org-wide]
|
|
97
209
|
Connect your AWS account to an org. Binds it to your active project by
|
|
98
210
|
default; --org-wide lets any project in the org deploy into it.
|
|
99
|
-
saaslayer project use <id> Set the active project for deploy/status.
|
|
100
|
-
saaslayer
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
saaslayer
|
|
106
|
-
|
|
211
|
+
saaslayer project use <id> Set the active project for deploy/status (a project id tnt_… or a customer id).
|
|
212
|
+
saaslayer project destroy [<id>] [--yes]
|
|
213
|
+
Delete a project (the active one by default) and release its public name for reuse. Refused while any of its
|
|
214
|
+
deployments is live: destroy each with \`saaslayer destroy\` first. Asks for the id to be typed unless --yes.
|
|
215
|
+
saaslayer stacks List the modules a project can deploy: module id, regions, required
|
|
216
|
+
modules and stable outputs.
|
|
217
|
+
saaslayer deploy [--services a,b | --module M ...] [--set MODULE.Setting=VALUE ...] [--settings FILE] [--env prod]
|
|
218
|
+
[--region R] [--target ACCT] [--commit-sha SHA] [--admin-email E] [--yes]
|
|
219
|
+
Deploy the project's modules into your connected account. --services/--module and --set take catalog module
|
|
220
|
+
ids (\`saaslayer stacks\`, e.g. permissions-service); an unknown id or a missing required module is refused before
|
|
221
|
+
anything is sent. --settings FILE is { "<module>": { "<Setting>": value } }; --set overrides it (--param is
|
|
222
|
+
the same as --set). The settings are checked against the schema of the release being deployed (--commit-sha,
|
|
223
|
+
else the default release \`saaslayer stacks\` reports) before anything is sent, and the create-only ones are
|
|
224
|
+
listed; the control plane always checks them too. A secret takes ssm:/<parameter name>.
|
|
225
|
+
Asks before creating anything, then confirms any cost estimate (--yes answers both; required non-interactively).
|
|
226
|
+
saaslayer status [--project ID] [--env E] [--region R]
|
|
227
|
+
Show the deployed instances of a project. --project takes a project id (tnt_…) or a customer id. Every scoped
|
|
228
|
+
command prints \`scope: org=… project=… env=… (from: …)\` on stderr first (--json omits it); an empty result
|
|
229
|
+
lists the projects you can see that do have deployments.
|
|
107
230
|
saaslayer service add <service> [--region R]
|
|
108
|
-
saaslayer service remove <service> --data-custody delete|retain [--region R]
|
|
109
|
-
Add or remove a single service on an existing deployment.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
--
|
|
114
|
-
|
|
231
|
+
saaslayer service remove <service> --data-custody delete|retain [--region R] [--reason TEXT] [--yes]
|
|
232
|
+
Add or remove a single service on an existing deployment. A protected env (staging, prod) removal needs --reason
|
|
233
|
+
and the service name typed to confirm (--yes confirms it).
|
|
234
|
+
saaslayer update --commit-sha SHA [--env E] [--region R] [--reason TEXT] [--force]
|
|
235
|
+
Roll an existing deployment's services to a new release (upgrade; deploy only creates). Protected envs
|
|
236
|
+
(staging, prod) need --reason; --force updates past the drift gate (audited with the reason).
|
|
237
|
+
saaslayer migrations approve --env E [--region R] --run <runId> --reason TEXT [--no-wait]
|
|
238
|
+
Approve the migrations an update left awaiting approval (a protected env's destructive contract migrations, e.g. a
|
|
239
|
+
rename's retire step): \`saaslayer update\` prints the run id. The control plane records you and the reason.
|
|
240
|
+
saaslayer update --param MODULE.Setting=VALUE ... [--env E] [--region R] [--reason TEXT]
|
|
241
|
+
Change settings, keeping the current release: --param goes through the settings route, exactly like
|
|
242
|
+
\`saaslayer settings set --set\`. --commit-sha and --param cannot be combined: move the release, then set.
|
|
243
|
+
saaslayer update --manifest FILE [--env E] [--region R] [--settings F] [--reason TEXT] [--force] [--dry-run]
|
|
244
|
+
Promote a tested release manifest to this environment. Preflight first, nothing sent on any problem: the CLI
|
|
245
|
+
version the release was tested with, every deployed module in the bundle, each module's published settings
|
|
246
|
+
contract matching the manifest's sha256, schema transitions from the deployed revision (a set setting the target
|
|
247
|
+
drops or refuses, a changed create-only default), the environment's settings (environments.<env>.settings in
|
|
248
|
+
the manifest, or --settings) against the target contracts, direct-mode readers (permissionsDirectMode.readers) against
|
|
249
|
+
what the release writes, and --reason for staging/prod. Then moves the release through the update route, waits,
|
|
250
|
+
and writes the settings that differ through the settings route. --dry-run prints the preflight and plan only.
|
|
251
|
+
saaslayer release-manifest create --env E [--region R] [--out FILE] [--name NAME]
|
|
252
|
+
Record a tested deployment as a release manifest: its revision, each module's settings-contract sha256, this
|
|
253
|
+
CLI's version and what its permissions service writes. Add permissionsDirectMode.readers and environments.<env>.settings yourself.
|
|
254
|
+
saaslayer settings schema --module M [--revision SHA] [--env E] [--json]
|
|
255
|
+
Print a module's published settings schema: type, update behavior (update-safe | create-only), kind
|
|
256
|
+
(deployment | runtime), secret, billing impact, default. Without --revision, the revision the selected
|
|
257
|
+
deployment runs.
|
|
258
|
+
saaslayer settings get --env E [--region R] [--json]
|
|
259
|
+
Print a deployment's settings: value and source (set | default | unset), the settings revision and any
|
|
260
|
+
pending operation. A secret shows only whether it is set.
|
|
261
|
+
saaslayer settings set --env E (--set MODULE.Setting=VALUE ... | --file settings.<env>.json) [--reason TEXT] [--no-wait]
|
|
262
|
+
Change settings (null in a file resets one to its default; omitted settings are untouched). Checked against
|
|
263
|
+
the deployment's schema before anything is sent: create-only, runtime and unknown settings are refused, and
|
|
264
|
+
a secret takes a reference (ssm:/<parameter name>, or { "ssmParameter": "/<name>" } in a file), never the
|
|
265
|
+
value. Sent with the settings revision just read, so a concurrent change is refused (re-read and retry).
|
|
266
|
+
A billing change and the protected envs (staging, prod) need --reason. Waits for the update operation.
|
|
267
|
+
saaslayer settings diff --env A --env B [--manifest release.json] [--json]
|
|
268
|
+
Compare two environments: module revisions, differing settings (create-only and secret marked; secrets as
|
|
269
|
+
set/unset) and each settings revision, plus the gaps between them. With --manifest, each environment is also
|
|
270
|
+
checked against the release: modules outside or behind the bundle, bundle modules it lacks, the
|
|
271
|
+
permission-doc format it writes, and its deployed values against environments.<env>.settings.
|
|
272
|
+
Every settings command prints its scope and the deployment id on stderr (--json omits them).
|
|
115
273
|
saaslayer destroy --data-custody delete|retain [--region R] [--yes]
|
|
116
274
|
Tear down the project's deployment (typed-name confirmation).
|
|
275
|
+
saaslayer operations get <operationId> [--deployment ID] [--json]
|
|
276
|
+
saaslayer operations watch <operationId> [--deployment ID] [--interval SECONDS]
|
|
277
|
+
Show (get) or wait for (watch) an operation: a deploy, update, service add/remove or destroy and each
|
|
278
|
+
component's outcome. deploy, update, destroy and service add|remove wait for their operation by default
|
|
279
|
+
(--no-wait returns once it starts); after a dropped connection resume with \`operations watch\`. Without
|
|
280
|
+
--deployment the deployment is resolved from --project/--env/--region. A failed or partial operation exits
|
|
281
|
+
non-zero and names the next supported command. A retried command replays its operation; request keys are kept
|
|
282
|
+
7 days.
|
|
283
|
+
saaslayer operations cancel <operationId> [--deployment ID] [--reason TEXT] [--json]
|
|
284
|
+
Cancel an in-flight operation: stops its run and releases the deployment for the next command. The deployment's
|
|
285
|
+
activity records who cancelled it and the reason. A finished operation is refused.
|
|
286
|
+
saaslayer first-admin resend [--deployment ID | --env E --region R] [--reason TEXT] [--no-wait]
|
|
287
|
+
saaslayer first-admin recover --email E --reason TEXT [--suid ID] [--deployment ID | --env E --region R] [--no-wait]
|
|
288
|
+
The deployment's first administrator (needs saaslayer:deployer:deployment:admin-bootstrap; org owners hold it).
|
|
289
|
+
resend delivers the designated admin's first sign-in again (the only rotation of its temporary password;
|
|
290
|
+
refused once they activated). recover designates a new first admin (--email, optional --suid) and is refused
|
|
291
|
+
with ADMIN_EXISTS while any usable access admin remains. Both wait for their operation.
|
|
292
|
+
saaslayer activity --env E [--region R | --deployment ID] [--limit N] [--json]
|
|
293
|
+
A deployment's activity, newest first: every change — yours and any SaaSLayer operator's — with who made it
|
|
294
|
+
(customer:<id> | operator:<id>), the action, what it touched, the reason and its operation id.
|
|
295
|
+
saaslayer credentials status --deployment <id> --service <ref> [--json]
|
|
296
|
+
saaslayer credentials revoke --deployment <id> --service <ref> --kind email-authoring|config --key-id <id> --reason <text> [--json]
|
|
297
|
+
Org owners: a user-service instance's console integration credentials (key ids, state, age; never a value), and an
|
|
298
|
+
emergency revoke of one key (no delay). The revoke answers its pending operation; the key stops working once every
|
|
299
|
+
verifier holds the replacement.
|
|
117
300
|
|
|
118
301
|
Data migrations you run yourself (a deployment with migrationRunner self):
|
|
119
302
|
saaslayer migrate status --deployment <id> [--service <ref>]
|
|
@@ -176,29 +359,51 @@ async function main() {
|
|
|
176
359
|
const [cmd, sub] = positional
|
|
177
360
|
try {
|
|
178
361
|
if (cmd === 'init') return cmdInit({ flags })
|
|
179
|
-
if (cmd === '
|
|
180
|
-
if (cmd === '
|
|
181
|
-
if (cmd === '
|
|
182
|
-
if (cmd === '
|
|
183
|
-
if (cmd === '
|
|
184
|
-
const r = await require('../src/commands/catalog').catalogReconcileOwners(positional.slice(
|
|
362
|
+
if (cmd === 'permissions' && sub === 'inspect') { await require('../src/commands/permissions-inspect').permissionsInspect(positional.slice(2), flags); return }
|
|
363
|
+
if (cmd === 'permissions' && sub === 'register') { await require('../src/commands/catalog').permissionsRegister(positional.slice(2), flags); return }
|
|
364
|
+
if (cmd === 'permissions' && sub === 'model' && positional[2] === 'apply') { await require('../src/commands/catalog').catalogApply(positional.slice(3), flags); return }
|
|
365
|
+
if (cmd === 'permissions' && sub === 'owner' && positional[2] === 'bootstrap') { const a = await require('../src/commands/catalog').catalogBootstrapOwner(positional.slice(3), flags); console.log(`${a.userId} is now ${a.roleId} of ${a.scope}`); return }
|
|
366
|
+
if (cmd === 'permissions' && sub === 'owner' && positional[2] === 'reconcile') {
|
|
367
|
+
const r = await require('../src/commands/catalog').catalogReconcileOwners(positional.slice(3), flags)
|
|
185
368
|
for (const o of r.orgs) console.log(`${o.ok ? 'ok ' : 'DRIFT'} ${o.orgId} counter=${o.counter} actual=${o.actual}`)
|
|
186
369
|
console.log(r.applied ? 'repaired mismatched counters' : 'report only (pass --apply to repair)')
|
|
187
370
|
return
|
|
188
371
|
}
|
|
189
|
-
if (cmd === '
|
|
190
|
-
if (cmd === '
|
|
191
|
-
if (cmd === '
|
|
192
|
-
const
|
|
193
|
-
if (positional[2] === '
|
|
194
|
-
if (positional[2] === '
|
|
195
|
-
|
|
372
|
+
if (cmd === 'permissions' && sub === 'model' && positional[2] === 'export') { await require('../src/commands/catalog').catalogExport(positional.slice(3), flags); return }
|
|
373
|
+
if (cmd === 'permissions' && sub === 'model' && positional[2] === 'get') { console.log(JSON.stringify(await require('../src/commands/catalog').catalogGet(positional.slice(3), flags), null, 2)); return }
|
|
374
|
+
if (cmd === 'permissions' && sub === 'service-principal') {
|
|
375
|
+
const sp = require('../src/commands/service-principals')
|
|
376
|
+
if (positional[2] === 'roles') { console.log(JSON.stringify(await sp.servicePrincipalRoles(positional.slice(3), flags), null, 2)); return }
|
|
377
|
+
if (positional[2] === 'assign') { const a = await sp.servicePrincipalAssign(positional.slice(3), flags); console.log(`granted ${a.roleId} to ${a.principalId}${a.scope ? ` in ${a.scope}` : ' (deployment-wide)'}`); return }
|
|
378
|
+
if (positional[2] === 'unassign') { await sp.servicePrincipalUnassign(positional.slice(3), flags); console.log(`revoked ${flags.role}`); return }
|
|
379
|
+
console.error('usage: saaslayer permissions service-principal <roles|assign|unassign> (<id> | --machine PRINCIPAL) [--role ROLE] [--scope S] --api-base URL'); process.exit(1)
|
|
380
|
+
}
|
|
381
|
+
if (cmd === 'permissions' && sub === 'machine-trust') {
|
|
382
|
+
const trust = require('../src/commands/machine-trust')
|
|
383
|
+
const rest = positional.slice(3)
|
|
384
|
+
const print = (/** @type {unknown} */ v) => console.log(JSON.stringify(v, null, 2))
|
|
385
|
+
if (positional[2] === 'list') { print(await trust.machineTrustList(rest, flags)); return }
|
|
386
|
+
if (positional[2] === 'get') { print(await trust.machineTrustGet(rest, flags)); return }
|
|
387
|
+
if (positional[2] === 'declare') { print(await trust.machineTrustDeclare(rest, flags)); return }
|
|
388
|
+
if (positional[2] === 'update') { print(await trust.machineTrustUpdate(rest, flags)); return }
|
|
389
|
+
if (positional[2] === 'remove') { print(await trust.machineTrustRemove(rest, flags)); return }
|
|
390
|
+
if (positional[2] === 'reconcile') { print(await trust.machineTrustReconcile(rest, flags)); return }
|
|
391
|
+
console.error('usage: saaslayer permissions machine-trust <list|get|declare|update|remove|reconcile> [principalId] --api-base URL'); process.exit(1)
|
|
392
|
+
}
|
|
393
|
+
if (cmd === 'permissions' && sub === 'access-admins') {
|
|
394
|
+
const admins = require('../src/commands/access-admins')
|
|
395
|
+
const rest = positional.slice(3)
|
|
396
|
+
const run = { list: admins.adminsList, offer: admins.adminsOffer, status: admins.adminsStatus, cancel: admins.adminsCancel, accept: admins.adminsAccept, activate: admins.adminsActivate }[positional[2]]
|
|
397
|
+
if (run) { console.log(JSON.stringify(await run(rest, flags), null, 2)); return }
|
|
398
|
+
console.error('usage: saaslayer permissions access-admins <list|offer|status|cancel|accept|activate> [suid|transferId] --api-base URL'); process.exit(1)
|
|
196
399
|
}
|
|
197
400
|
if (cmd === 'users') {
|
|
198
401
|
const users = require('../src/commands/users')
|
|
199
402
|
if (sub === 'export') { await users.usersExport(flags); return }
|
|
200
403
|
if (sub === 'import') { await users.usersImport(flags); return }
|
|
201
|
-
|
|
404
|
+
if (sub === 'admin') { await require('../src/commands/users-management').usersManagement(positional[2], flags); return }
|
|
405
|
+
if (users.ADMIN_COMMANDS.includes(sub)) { await users.usersAdmin(sub, positional.slice(2), flags); return }
|
|
406
|
+
console.error(users.USAGE); process.exit(1)
|
|
202
407
|
}
|
|
203
408
|
if (cmd === 'signup') {
|
|
204
409
|
const { signup } = require('../src/commands/login')
|
|
@@ -207,22 +412,51 @@ async function main() {
|
|
|
207
412
|
return
|
|
208
413
|
}
|
|
209
414
|
if (cmd === 'login') {
|
|
210
|
-
const { login } = require('../src/commands/login')
|
|
415
|
+
const { login, loginDeployment } = require('../src/commands/login')
|
|
416
|
+
if (flags.deployment) {
|
|
417
|
+
const who = await loginDeployment(flags)
|
|
418
|
+
console.log(`logged in to deployment ${who.deploymentId}${who.environment ? ` [${who.environment}]` : ''} (user-service ${who.serviceInstance}) as ${who.email} — control-plane login unchanged`)
|
|
419
|
+
return
|
|
420
|
+
}
|
|
211
421
|
const who = await login(flags)
|
|
212
422
|
console.log(`logged in as ${who.email}`)
|
|
213
423
|
return
|
|
214
424
|
}
|
|
215
425
|
if (cmd === 'logout') {
|
|
216
426
|
const { logout } = require('../src/commands/login')
|
|
217
|
-
logout(flags)
|
|
218
|
-
console.log('logged out')
|
|
427
|
+
const out = logout(flags)
|
|
428
|
+
console.log(out.authority === 'deployment' ? `logged out of deployment ${out.deploymentId} (${out.email}) — control-plane login unchanged` : 'logged out')
|
|
429
|
+
return
|
|
430
|
+
}
|
|
431
|
+
if (cmd === 'deployment' && (sub === 'logins' || sub === 'use')) {
|
|
432
|
+
const { deploymentLogins, deploymentUse } = require('../src/commands/accounts')
|
|
433
|
+
if (sub === 'use') {
|
|
434
|
+
const d = deploymentUse({ ...flags, deployment: positional[2] || flags.deployment })
|
|
435
|
+
console.log(`current deployment login: ${d.deploymentId}${d.environment ? ` [${d.environment}]` : ''} (user-service ${d.serviceInstance}) as ${d.email}`)
|
|
436
|
+
return
|
|
437
|
+
}
|
|
438
|
+
const rows = deploymentLogins()
|
|
439
|
+
if (!rows.length) { console.log('no deployment logins — run `saaslayer login --deployment <dep_id|env>`'); return }
|
|
440
|
+
for (const r of rows) {
|
|
441
|
+
const expired = r.expired === true ? ` (token expired — run \`saaslayer login --deployment ${r.deploymentId}\`)` : ''
|
|
442
|
+
console.log(`${r.current ? '*' : ' '} ${r.deploymentId}${r.environment ? ` [${r.environment}]` : ''} user-service ${r.serviceInstance} ${r.email || r.userId}${expired}`)
|
|
443
|
+
}
|
|
444
|
+
console.log('\n* = current. Switch with: saaslayer deployment use <dep_id|env> [--as <email>]')
|
|
219
445
|
return
|
|
220
446
|
}
|
|
221
447
|
if (cmd === 'whoami') {
|
|
222
448
|
const { whoami } = require('../src/commands/login')
|
|
223
449
|
const who = whoami()
|
|
224
450
|
if (!who) { console.log('not logged in'); return }
|
|
225
|
-
console.log(`${who.email} (${who.env})`)
|
|
451
|
+
console.log(`${who.email} (control plane: ${who.env})`)
|
|
452
|
+
const ctx = require('../src/context-store').load()
|
|
453
|
+
console.log(`org: ${ctx.org || '—'} project: ${ctx.project ? `${ctx.project} (${require('../src/scope').projectIdKind(ctx.project)})` : '—'} (see: saaslayer context)`)
|
|
454
|
+
return
|
|
455
|
+
}
|
|
456
|
+
if (cmd === 'context') {
|
|
457
|
+
const { contextShow, formatContext } = require('../src/commands/context')
|
|
458
|
+
const ctx = contextShow(flags)
|
|
459
|
+
console.log(flags.json ? JSON.stringify(ctx, null, 2) : formatContext(ctx).join('\n'))
|
|
226
460
|
return
|
|
227
461
|
}
|
|
228
462
|
if (cmd === 'accounts' || (cmd === 'account' && (sub === 'list' || sub === undefined))) {
|
|
@@ -253,8 +487,9 @@ async function main() {
|
|
|
253
487
|
if (cmd === 'project') {
|
|
254
488
|
const orgs = require('../src/commands/orgs')
|
|
255
489
|
if (sub === 'create') { const p = await orgs.projectCreate(flags, positional[2]); console.log(`created project ${p.name || ''} (${p.id}) in org ${p.orgId}`); return }
|
|
256
|
-
if (sub === 'use') { const id = positional[2]; if (!id) throw new Error('project use requires a project id'); require('../src/context-store').set('project', id); console.log(`active project: ${id}`); return }
|
|
257
|
-
|
|
490
|
+
if (sub === 'use') { const id = positional[2]; if (!id) throw new Error('project use requires a project id'); require('../src/context-store').set('project', id); console.log(`active project: ${id} (${require('../src/scope').projectIdKind(id)})`); return }
|
|
491
|
+
if (sub === 'destroy') { await orgs.projectDestroy(flags, positional[2]); return }
|
|
492
|
+
console.error('usage: saaslayer project <create <name>|use <id>|destroy [<id>]>'); process.exit(1)
|
|
258
493
|
}
|
|
259
494
|
if (cmd === 'projects') {
|
|
260
495
|
const orgs = require('../src/commands/orgs')
|
|
@@ -267,22 +502,39 @@ async function main() {
|
|
|
267
502
|
if (sub === 'connect') { await aws.awsConnect(flags); return }
|
|
268
503
|
console.error('usage: saaslayer aws connect --aws-account <id> [--region <r>] [--org-wide]'); process.exit(1)
|
|
269
504
|
}
|
|
505
|
+
if (cmd === 'foundation') {
|
|
506
|
+
const foundation = require('../src/commands/foundation')
|
|
507
|
+
if (sub === 'status') { await foundation.foundationStatus(flags); return }
|
|
508
|
+
if (sub === 'upgrade') { await foundation.foundationUpgrade(flags); return }
|
|
509
|
+
console.error('usage: saaslayer foundation <status|upgrade> [--region R] [--profile P] (see saaslayer --help)'); process.exit(1)
|
|
510
|
+
}
|
|
270
511
|
if (cmd === 'stacks') { const { stacks } = require('../src/commands/stacks'); await stacks(flags); return }
|
|
271
512
|
if (cmd === 'deploy') { const { deploy } = require('../src/commands/deploy'); await deploy(flags); return }
|
|
272
513
|
if (cmd === 'status') { const { status } = require('../src/commands/lifecycle'); await status(flags); return }
|
|
273
514
|
if (cmd === 'update') { const { update } = require('../src/commands/lifecycle'); await update(flags); return }
|
|
274
515
|
if (cmd === 'destroy') { const { destroy } = require('../src/commands/lifecycle'); await destroy(flags); return }
|
|
516
|
+
if (cmd === 'migrations') {
|
|
517
|
+
if (sub === 'approve') { const { approveMigrations } = require('../src/commands/lifecycle'); await approveMigrations(flags); return }
|
|
518
|
+
console.error('usage: saaslayer migrations approve --env E [--region R] --run <runId> --reason <text>'); process.exit(1)
|
|
519
|
+
}
|
|
275
520
|
if (cmd === 'migrate') {
|
|
276
521
|
const { migrate } = require('../src/commands/migrate')
|
|
277
522
|
const result = await migrate(sub, flags)
|
|
278
523
|
process.exitCode = result.exitCode
|
|
279
524
|
return
|
|
280
525
|
}
|
|
526
|
+
if (cmd === 'release-manifest') { const { releaseManifestCommand } = require('../src/commands/release-manifest'); await releaseManifestCommand(sub, flags); return }
|
|
527
|
+
if (cmd === 'settings') { const { settingsCommand } = require('../src/commands/settings'); await settingsCommand(sub, flags); return }
|
|
528
|
+
if (cmd === 'first-admin') { const { firstAdminCommand } = require('../src/commands/first-admin'); await firstAdminCommand(sub, flags); return }
|
|
529
|
+
if (cmd === 'activity') { const { activityCommand } = require('../src/commands/activity'); await activityCommand(flags); return }
|
|
530
|
+
if (cmd === 'credentials' && sub === 'status') { await require('../src/commands/integration-credentials').credentialsStatus(flags); return }
|
|
531
|
+
if (cmd === 'credentials' && sub === 'revoke') { await require('../src/commands/integration-credentials').credentialsRevoke(flags); return }
|
|
532
|
+
if (cmd === 'operations' || cmd === 'operation') { const { operationsCommand } = require('../src/commands/operations'); await operationsCommand(sub, positional[2], flags); return }
|
|
281
533
|
if (cmd === 'service') {
|
|
282
534
|
const lc = require('../src/commands/lifecycle')
|
|
283
535
|
if (sub === 'add') { await lc.serviceAdd(positional[2], flags); return }
|
|
284
536
|
if (sub === 'remove') { await lc.serviceRemove(positional[2], flags); return }
|
|
285
|
-
console.error('usage: saaslayer service <add|remove> <service> [--data-custody delete|retain]'); process.exit(1)
|
|
537
|
+
console.error('usage: saaslayer service <add|remove> <service> [--data-custody delete|retain] [--reason TEXT] [--yes]'); process.exit(1)
|
|
286
538
|
}
|
|
287
539
|
console.error(`Unknown command: ${positional.join(' ')}\n`); console.log(HELP); process.exit(1)
|
|
288
540
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saaslayer",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "SaaSLayer CLI
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "SaaSLayer CLI — onboard an account (init) and register a service's permissions manifest.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"saaslayer": "bin/saaslayer.js"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"keywords": [
|
|
32
32
|
"saaslayer",
|
|
33
33
|
"cli",
|
|
34
|
+
"permissions",
|
|
34
35
|
"rbac",
|
|
35
36
|
"aws",
|
|
36
37
|
"cloudformation",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
|
-
"test": "node scripts/sync-template.js --check && node scripts/sync-vendor.js --check && node bin/saaslayer.js --help >/dev/null && node test/credentials.test.js && node test/multi-account.test.js && node test/aws.test.js && node test/api-client-refresh.test.js && node test/update.test.js && node test/catalog.test.js && node test/catalog-registry.test.js && node test/
|
|
44
|
+
"test": "node scripts/sync-template.js --check && node scripts/sync-vendor.js --check && node bin/saaslayer.js --help >/dev/null && node test/credentials.test.js && node test/multi-account.test.js && node test/aws.test.js && node test/api-client-refresh.test.js && node test/update.test.js && node test/migrations-approve.test.js && node test/service-remove.test.js && node test/settings.test.js && node test/env-compare.test.js && node test/release-manifest.test.js && node test/operations.test.js && node test/projects.test.js && node test/activity.test.js && node test/integration-credentials.test.js && node test/users-management.test.js && node test/deploy.test.js && node test/module-catalog.test.js && node test/stacks.test.js && node test/catalog.test.js && node test/catalog-registry.test.js && node test/permissions-inspect.test.js && node test/permissions-commands.test.js && node test/iam.test.js && node test/machine-trust.test.js && node test/access-admins.test.js && node test/first-admin.test.js && node test/service-principals.test.js && node test/package-files.test.js && node test/users-export.test.js && node test/users-import.test.js && node test/users.test.js && node test/migrate.test.js && node test/foundation-template.test.js && node test/foundation.test.js && node test/scope.test.js && node test/discovery.test.js && node test/credential-profiles.test.js && node test/login-challenges.test.js && node test/login-prompt.test.js && node test/control-plane-url.test.js && echo ok",
|
|
44
45
|
"sync-template": "node scripts/sync-template.js",
|
|
45
46
|
"sync-template:check": "node scripts/sync-template.js --check",
|
|
46
47
|
"prepublishOnly": "node scripts/sync-template.js",
|