indraq_cli 2.1.0 → 2.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.
Files changed (82) hide show
  1. package/CHANGELOG_v2.1.0.md +27 -27
  2. package/CHANGELOG_v2.2.0.md +52 -0
  3. package/LICENSE +21 -21
  4. package/README.md +27 -14
  5. package/RELEASE_CHECKS_v2.2.0.md +27 -0
  6. package/UPGRADE_v2.0_to_v2.1.md +68 -68
  7. package/UPGRADE_v2.1_to_v2.2.md +62 -0
  8. package/cloud-api/.dockerignore +18 -18
  9. package/cloud-api/.env.example +14 -14
  10. package/cloud-api/Dockerfile +19 -19
  11. package/cloud-api/README.md +93 -93
  12. package/cloud-api/dist/index.js +265 -27
  13. package/cloud-api/node_modules/.package-lock.json +1 -1
  14. package/cloud-api/package-lock.json +2 -2
  15. package/cloud-api/package.json +1 -1
  16. package/cloud-api/sql/001_init.sql +8 -8
  17. package/cloud-api/sql/002_user_providers_and_project_resources.sql +40 -40
  18. package/cloud-api/sql/003_environment_infrastructure.sql +19 -19
  19. package/cloud-api/sql/004_managed_aws_credentials.sql +20 -20
  20. package/cloud-api/sql/005_project_members_and_resource_grants.sql +22 -22
  21. package/cloud-api/sql/006_catalog_identity_password_security.sql +96 -96
  22. package/cloud-api/sql/007_aws_access_key_rotation.sql +16 -16
  23. package/cloud-api/sql/008_provider_scopes.sql +91 -91
  24. package/cloud-api/sql/009_scope_user_secrets_and_project_lifecycle.sql +13 -0
  25. package/cloud-api/src/index.ts +164 -27
  26. package/cloud-api/tsconfig.json +18 -18
  27. package/dist/cli/help-content.d.ts.map +1 -1
  28. package/dist/cli/help-content.js +11 -5
  29. package/dist/cli/help-content.js.map +1 -1
  30. package/dist/modules/access/commands/access.command.js +30 -30
  31. package/dist/modules/aws/services/route53-lookup.service.js.map +1 -1
  32. package/dist/modules/cloud/commands/cloud.command.d.ts +4 -0
  33. package/dist/modules/cloud/commands/cloud.command.d.ts.map +1 -1
  34. package/dist/modules/cloud/commands/cloud.command.js +52 -1
  35. package/dist/modules/cloud/commands/cloud.command.js.map +1 -1
  36. package/dist/modules/cloud/index.d.ts.map +1 -1
  37. package/dist/modules/cloud/index.js +4 -1
  38. package/dist/modules/cloud/index.js.map +1 -1
  39. package/dist/modules/cloud/services/cloud-jenkins.service.js +71 -71
  40. package/dist/modules/cloud/services/user-provider.service.d.ts +2 -8
  41. package/dist/modules/cloud/services/user-provider.service.d.ts.map +1 -1
  42. package/dist/modules/cloud/services/user-provider.service.js +7 -35
  43. package/dist/modules/cloud/services/user-provider.service.js.map +1 -1
  44. package/dist/modules/deploy/commands/build.command.d.ts +1 -0
  45. package/dist/modules/deploy/commands/build.command.d.ts.map +1 -1
  46. package/dist/modules/deploy/commands/build.command.js +12 -5
  47. package/dist/modules/deploy/commands/build.command.js.map +1 -1
  48. package/dist/modules/deploy/index.d.ts.map +1 -1
  49. package/dist/modules/deploy/index.js +11 -4
  50. package/dist/modules/deploy/index.js.map +1 -1
  51. package/dist/modules/prebuild/commands/prebuild.command.d.ts +0 -4
  52. package/dist/modules/prebuild/commands/prebuild.command.d.ts.map +1 -1
  53. package/dist/modules/prebuild/commands/prebuild.command.js +34 -38
  54. package/dist/modules/prebuild/commands/prebuild.command.js.map +1 -1
  55. package/dist/modules/prebuild/index.d.ts.map +1 -1
  56. package/dist/modules/prebuild/index.js +4 -8
  57. package/dist/modules/prebuild/index.js.map +1 -1
  58. package/dist/modules/scaffold/services/docker-template.service.js +95 -95
  59. package/dist/modules/scopes/commands/scope.command.d.ts.map +1 -1
  60. package/dist/modules/scopes/commands/scope.command.js +3 -47
  61. package/dist/modules/scopes/commands/scope.command.js.map +1 -1
  62. package/dist/modules/scopes/services/scope-native.service.js +2 -2
  63. package/dist/modules/scopes/services/scope-native.service.js.map +1 -1
  64. package/dist/modules/users/commands/user.command.d.ts +1 -0
  65. package/dist/modules/users/commands/user.command.d.ts.map +1 -1
  66. package/dist/modules/users/commands/user.command.js +15 -1
  67. package/dist/modules/users/commands/user.command.js.map +1 -1
  68. package/dist/modules/users/index.d.ts.map +1 -1
  69. package/dist/modules/users/index.js +1 -0
  70. package/dist/modules/users/index.js.map +1 -1
  71. package/dist/modules/users/providers/jenkins-user.provider.js +95 -95
  72. package/dist/shared/config/config-files.js +7 -7
  73. package/dist/shared/jenkins/jenkins.service.d.ts.map +1 -1
  74. package/dist/shared/jenkins/jenkins.service.js +13 -8
  75. package/dist/shared/jenkins/jenkins.service.js.map +1 -1
  76. package/dist/shared/jenkins/role-strategy-groovy.js +84 -84
  77. package/docs/ARCHITECTURE.md +29 -29
  78. package/docs/CREATE-DEPLOYMENT-reference.groovy +1105 -1105
  79. package/package.json +9 -5
  80. package/templates/jenkins/CREATE-DEPLOYMENT.groovy +1105 -1105
  81. package/templates/jenkins/Jenkinsfile-Mobile-App +759 -759
  82. package/cloud-api/dist/index.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "indraq_cli",
3
- "version": "2.1.0",
4
- "description": "IndraQ scope-based cloud-first CLI for multi-account infrastructure, access and deployments",
3
+ "version": "2.2.0",
4
+ "description": "IndraQ scope-first cloud CLI with hardened per-user provider credentials and project-scoped deployments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "indraq": "dist/index.js"
@@ -13,7 +13,7 @@
13
13
  "dev": "ts-node src/index.ts",
14
14
  "watch": "nodemon --exec ts-node src/index.ts",
15
15
  "build:cloud": "npm --prefix cloud-api install --no-audit --no-fund && npm --prefix cloud-api run build",
16
- "test": "npm run test:cloud-endpoint && npm run test:user-credentials && npm run test:infrastructure && npm run test:platform && npm run test:project-access && npm run test:project-create && npm run test:jenkins-crumb && npm run test:jenkins-port && npm run test:prebuild && npm run test:docker-context && npm run test:identity-security && npm run test:user-lifecycle-jenkins && npm run test:v2-lifecycle && npm run test:v21-scopes",
16
+ "test": "npm run test:cloud-endpoint && npm run test:user-credentials && npm run test:infrastructure && npm run test:platform && npm run test:project-access && npm run test:project-create && npm run test:jenkins-crumb && npm run test:jenkins-port && npm run test:prebuild && npm run test:docker-context && npm run test:identity-security && npm run test:user-lifecycle-jenkins && npm run test:v2-lifecycle && npm run test:v21-scopes && npm run test:v22",
17
17
  "test:user-credentials": "node tests/cloud-user-credential-regression.cjs",
18
18
  "test:prebuild": "node tests/prebuild-cloud-regression.cjs",
19
19
  "test:jenkins-port": "node tests/jenkins-port-regression.cjs",
@@ -27,7 +27,8 @@
27
27
  "test:identity-security": "node tests/identity-security-regression.cjs",
28
28
  "test:user-lifecycle-jenkins": "node tests/user-lifecycle-jenkins-regression.cjs",
29
29
  "test:v2-lifecycle": "node tests/v2-user-project-lifecycle-regression.cjs",
30
- "test:v21-scopes": "node tests/v21-scope-architecture-regression.cjs"
30
+ "test:v21-scopes": "node tests/v21-scope-architecture-regression.cjs",
31
+ "test:v22": "node tests/v22-scope-security-deploy-regression.cjs"
31
32
  },
32
33
  "keywords": [
33
34
  "indraq",
@@ -71,7 +72,10 @@
71
72
  "templates/jenkins",
72
73
  "cloud-api",
73
74
  "CHANGELOG_v2.1.0.md",
74
- "UPGRADE_v2.0_to_v2.1.md"
75
+ "UPGRADE_v2.0_to_v2.1.md",
76
+ "CHANGELOG_v2.2.0.md",
77
+ "UPGRADE_v2.1_to_v2.2.md",
78
+ "RELEASE_CHECKS_v2.2.0.md"
75
79
  ],
76
80
  "publishConfig": {
77
81
  "access": "public",