Skip to content

Commit

Permalink
Merge pull request #148 from adobe/epic/secretsmanage
Browse files Browse the repository at this point in the history
Epic/secretsmanage
  • Loading branch information
AjazSumaiya authored Jul 12, 2024
2 parents adff8e1 + 03bf64d commit 2450a4e
Show file tree
Hide file tree
Showing 16 changed files with 1,272 additions and 23 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/aio-cli-plugin-api-mesh",
"version": "3.4.0",
"version": "3.5.0-beta.1",
"description": "Adobe I/O CLI plugin to develop and manage API mesh sources",
"keywords": [
"oclif-plugin"
Expand Down Expand Up @@ -37,13 +37,13 @@
"version": "oclif-dev readme && git add README.md"
},
"dependencies": {
"@adobe-apimesh/mesh-builder": "1.5.0",
"@adobe-apimesh/mesh-builder": "1.6.0",
"@adobe/aio-cli-lib-console": "^4.0.0",
"@adobe/aio-lib-core-config": "^3.0.0",
"@adobe/aio-lib-core-logging": "^2.0.0",
"@adobe/aio-lib-env": "^2.0.0",
"@adobe/aio-lib-ims": "^6.0.1",
"@adobe/plugin-hooks": "0.1.1",
"@adobe/plugin-hooks": "0.3.0",
"@adobe/plugin-on-fetch": "0.1.0",
"@graphql-mesh/cli": "0.82.30",
"@graphql-mesh/graphql": "0.34.13",
Expand All @@ -52,6 +52,7 @@
"@graphql-mesh/plugin-http-details-extensions": "0.1.21",
"@graphql-mesh/runtime": "0.46.21",
"@graphql-mesh/soap": "0.14.25",
"@graphql-mesh/store": "0.9.20",
"@graphql-mesh/transform-encapsulate": "0.4.21",
"@graphql-mesh/transform-federation": "0.11.14",
"@graphql-mesh/transform-filter-schema": "0.15.23",
Expand All @@ -64,7 +65,6 @@
"@graphql-mesh/transform-resolvers-composition": "0.13.20",
"@graphql-mesh/transform-type-merging": "0.5.20",
"@graphql-mesh/types": "0.91.12",
"@graphql-mesh/store": "0.9.20",
"@oclif/command": "^1.6.1",
"@oclif/config": "^1.15.1",
"@oclif/core": "^1.14.1",
Expand All @@ -74,6 +74,7 @@
"child_process": "^1.0.2",
"content-disposition": "^0.5.4",
"dotenv": "^16.0.3",
"envsub": "^4.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-security": "^1.5.0",
"eslint-plugin-sonarjs": "^0.16.0",
Expand All @@ -92,7 +93,8 @@
"pupa": "^3.1.0",
"source-registry-storage-adapter": "github:devx-services/source-registry-storage-adapter#main",
"util": "^0.12.5",
"uuid": "^8.3.2"
"uuid": "^8.3.2",
"yaml": "^2.4.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.15.8",
Expand Down
18 changes: 18 additions & 0 deletions src/commands/__fixtures__/sample_secrets_mesh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"meshConfig": {
"sources": [
{
"name": "Commerce",
"handler": {
"graphql": {
"endpoint": "https://venia.magento.com/graphql",
"operationHeaders": {
"Authorization": "{context.secrets.Token}"
},
"useGETForQueries": true
}
}
}
]
}
}
3 changes: 3 additions & 0 deletions src/commands/__fixtures__/secrets_invalid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HOME: 'home'
TOKEN: "dummy-token"
TOKEN: "dummy-token-duplicate"
2 changes: 2 additions & 0 deletions src/commands/__fixtures__/secrets_valid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HOME: 'home'
TOKEN: "dummy-token"
4 changes: 4 additions & 0 deletions src/commands/__fixtures__/secrets_with_batch_variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HOME: 'home'
TOKEN: "dummy-token"
batchHome: '$HOME'
USER: '${USER}'
Loading

0 comments on commit 2450a4e

Please sign in to comment.