diff --git a/.gitattributes b/.gitattributes new file mode 100755 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/CHANGELOG.md b/CHANGELOG.md index babf41e..3ee7b01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Sheriff Azure DevOps Extension Changelog +## 0.0.7 + +* `InstallSheriffCLI` task updated to download Sheriff from releases.frontierhq.com. + ## 0.0.6 * `SheriffPlan` and `SheriffApply` tasks updated to support workload identity federation authentication. diff --git a/README.rst b/README.rst index 8bbd2dc..90157c3 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ desired state configuration. Installation ------------ -The extension is available in the `Visual Studio Marketplace `_. +The extension is available in the `Visual Studio Marketplace `_. ----- Usage diff --git a/images/extension-icon.png b/images/extension-icon.png index bf572e2..da83424 100644 Binary files a/images/extension-icon.png and b/images/extension-icon.png differ diff --git a/images/large-extension-icon.png b/images/large-extension-icon.png index e3d2e91..1027962 100644 Binary files a/images/large-extension-icon.png and b/images/large-extension-icon.png differ diff --git a/overview.md b/overview.md index 327826e..a9119c5 100644 --- a/overview.md +++ b/overview.md @@ -3,9 +3,8 @@ ## About This is an Azure DevOps extension that provides tasks for installing and running -[Sheriff](https://github.com/frontierhq/sheriff), a command line tool to -manage Microsoft Entra Privileged Identity Management (Microsoft Entra PIM) -using desired state configuration. +[Sheriff](https://frontierhq.com/products/sheriff), a command line tool to configure +and operate Microsoft Entra Privileged Identity Management (PIM) in automation. ## Usage diff --git a/package-lock.json b/package-lock.json index e3fb74f..33be7ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "rimraf": "^5.0.1", "shelljs": "^0.8.5", "tempdir": "^2.0.0", - "tfx-cli": "^0.15.0", + "tfx-cli": "^0.17.0", "winston": "^3.10.0" }, "devDependencies": { @@ -3311,9 +3311,9 @@ } }, "node_modules/sax": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", - "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "node_modules/semver": { "version": "6.3.1", @@ -3759,9 +3759,9 @@ "dev": true }, "node_modules/tfx-cli": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/tfx-cli/-/tfx-cli-0.15.0.tgz", - "integrity": "sha512-uZ9+vVlfWy39wzfJXVOjaCYeN4q5Cp5ywt4SmiAEhN6/ILTr/ApxZEUo7nTfHwt51p5odD7+mMbvXAigmA5GIg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/tfx-cli/-/tfx-cli-0.17.0.tgz", + "integrity": "sha512-/fFD1qE3FkPglQQZIxbiZ2Hl5itTgLQW1LJ/2qMxGYkzxJx9U/axhg/g6dnYb2qsvWs4oHTbajHCiLKe8mE5LA==", "dependencies": { "app-root-path": "1.0.0", "archiver": "2.0.3", @@ -3786,7 +3786,7 @@ "uuid": "^3.0.1", "validator": "^13.7.0", "winreg": "0.0.12", - "xml2js": "^0.4.16" + "xml2js": "^0.5.0" }, "bin": { "tfx": "_build/tfx-cli.js" @@ -4307,9 +4307,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -6787,9 +6787,9 @@ "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==" }, "sax": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", - "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "semver": { "version": "6.3.1", @@ -7123,9 +7123,9 @@ "dev": true }, "tfx-cli": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/tfx-cli/-/tfx-cli-0.15.0.tgz", - "integrity": "sha512-uZ9+vVlfWy39wzfJXVOjaCYeN4q5Cp5ywt4SmiAEhN6/ILTr/ApxZEUo7nTfHwt51p5odD7+mMbvXAigmA5GIg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/tfx-cli/-/tfx-cli-0.17.0.tgz", + "integrity": "sha512-/fFD1qE3FkPglQQZIxbiZ2Hl5itTgLQW1LJ/2qMxGYkzxJx9U/axhg/g6dnYb2qsvWs4oHTbajHCiLKe8mE5LA==", "requires": { "app-root-path": "1.0.0", "archiver": "2.0.3", @@ -7150,7 +7150,7 @@ "uuid": "^3.0.1", "validator": "^13.7.0", "winreg": "0.0.12", - "xml2js": "^0.4.16" + "xml2js": "^0.5.0" }, "dependencies": { "glob": { @@ -7539,9 +7539,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "requires": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" diff --git a/package.json b/package.json index a46119c..a5ff22f 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "rimraf": "^5.0.1", "shelljs": "^0.8.5", "tempdir": "^2.0.0", - "tfx-cli": "^0.15.0", + "tfx-cli": "^0.17.0", "winston": "^3.10.0" }, "devDependencies": { diff --git a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package-lock.json b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package-lock.json index 74d03d4..4b9f050 100644 --- a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package-lock.json +++ b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package-lock.json @@ -1,12 +1,12 @@ { "name": "install-sheriff-cli-task", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "install-sheriff-cli-task", - "version": "0.0.3", + "version": "0.0.4", "license": "GPL-3.0", "dependencies": { "axios": "^1.4.0", diff --git a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package.json b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package.json index 240173b..d70a9ae 100644 --- a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package.json +++ b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/package.json @@ -1,6 +1,6 @@ { "name": "install-sheriff-cli-task", - "version": "0.0.3", + "version": "0.0.4", "description": "", "scripts": { "test": "run-p test:*", diff --git a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/src/index.js b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/src/index.js index f747b4b..82b3ef0 100644 --- a/tasks/InstallSheriffCLI/InstallSheriffCLIV0/src/index.js +++ b/tasks/InstallSheriffCLI/InstallSheriffCLIV0/src/index.js @@ -9,8 +9,6 @@ const { promisify } = require('util'); const finished = promisify(stream.finished); -const sas = 'sp=r&st=2024-01-01T00:00:00Z&se=2049-12-31T23:59:59Z&spr=https&sv=2022-11-02&sr=c&sig=Obnq5FJma2NJlE1k0PykIYlHbBcTA1yeba3YRLV6rmw%3D'; - async function run() { try { const version = tl.getInput('version', true); @@ -43,9 +41,9 @@ async function run() { let downloadUrl; if (version === 'latest') { - downloadUrl = `https://sa0she0prd0uks0releases.blob.core.windows.net/sheriff/latest/sheriff_${os}_${platform}.${fileExtension}?${sas}`; + downloadUrl = `https://releases.frontierhq.com/sheriff/latest/sheriff_${os}_${platform}.${fileExtension}`; } else { - downloadUrl = `https://sa0she0prd0uks0releases.blob.core.windows.net/sheriff/${version}/sheriff_${os}_${platform}.${fileExtension}?${sas}`; + downloadUrl = `https://releases.frontierhq.com/sheriff/${version}/sheriff_${os}_${platform}.${fileExtension}`; } const downloadPath = path.join(agentTempDirectory, `sheriff_${os}_${platform}.${fileExtension}`); const toolDirPath = `${agentToolsDirectory}/sheriff/${version}/${platform}`; diff --git a/vss-extension.json b/vss-extension.json index 719457d..0fc6520 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "Sheriff", "name": "Sheriff", - "publisher": "gofrontier", + "publisher": "frontierhq", "version": "", "public": false, "targets": [ @@ -13,7 +13,7 @@ "categories": [ "Azure Pipelines" ], - "description": "Provides tasks to operate Sheriff, a command line tool to manage Microsoft Entra Privileged Identity Management (Microsoft Entra PIM) using desired state configuration.", + "description": "Provides tasks to operate Sheriff, a command line tool to configure and operate Microsoft Entra Privileged Identity Management (PIM) in automation.", "tags": [ "Microsoft Azure", "Microsoft Entra ID", @@ -30,7 +30,7 @@ }, "links": { "learn": { - "uri": "https://github.com/frontierhq/sheriff" + "uri": "https://frontierhq.com/products/sheriff" } }, "icons": {