Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
azure-publish-settings
Advanced tools
Readme
Reads Azure publish settings for use with Web Deploy, FTP, Git and Kudu. Includes first class support for working with kudu-api.
npm install azure-publish-settings --save
var aps = require("azure-publish-settings");
// Traditional
aps.read("path/to/MySite.PublishSettings", function (err, settings) {
var iisSite = settings.web.iisSite;
var username = settings.web.username;
var password = settings.web.password;
// Use settings with Web Deploy etc.
});
// Promise
aps.readAsync("path/to/MySite.PublishSettings")
.then(function (settings) {
var ftpUrl = settings.ftp.url;
var username = settings.ftp.username;
var password = settings.ftp.password;
// Use settings with an FTP client
});
// Integration with kudu-api
var kuduApi = require("kudu-api");
aps.read("path/to/MySite.PublishSettings", function (err, settings) {
// Use the "kudu" property to pass credentials directly to kudu-api
var api = kuduApi(settings.kudu);
// Use kudu-api to manage an Azure web app
});
The following schema describes the output.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The DNS friendly name of the web app."
},
"url": {
"type": "string",
"description": "The full URL of the web app."
},
"web": {
"type": "object",
"description": "The primary profile using the method 'web'.",
"properties": {
"name": {
"type": "string",
"description": "The profile name"
},
"url": {
"type": "string",
"description": "The URL for web publishing."
},
"username": {
"type": "string",
"description": "The username for web publishing."
},
"password": {
"type": "string",
"description": "The password for web publishing."
},
"iisSite": {
"type": "string",
"description": "The IIS site name."
}
}
},
"ftp": {
"type": "object",
"description": "The primary profile using the method 'ftp'.",
"properties": {
"name": {
"type": "string",
"description": "The profile name"
},
"url": {
"type": "string",
"description": "The URL for FTP publishing."
},
"username": {
"type": "string",
"description": "The username for FTP publishing."
},
"password": {
"type": "string",
"description": "The password for FTP publishing."
},
"passive": {
"type": "boolean",
"description": "True if passive mode should be used."
}
}
},
"profiles": {
"type": "array",
"description": "The list of all profiles in the publish settings file.",
"items": {
"type": "object",
"properties": {
"method": {
"type": "string",
"description": "The publish method. Either 'web' or 'ftp'."
},
"name": {
"type": "string",
"description": "The profile name"
},
"url": {
"type": "string",
"description": "The URL for the publish method."
},
"username": {
"type": "string",
"description": "The username for the publish method."
},
"password": {
"type": "string",
"description": "The password for the publish method."
},
"iisSite": {
"type": "string",
"description": "Only for method 'web'. The IIS site name."
},
"passive": {
"type": "boolean",
"description": "Only for the method 'ftp'. True if passive mode should be used."
}
}
}
}
}
}
FAQs
Reads Azure publish settings for use with Web Deploy, FTP, Git and Kudu.
The npm package azure-publish-settings receives a total of 958 weekly downloads. As such, azure-publish-settings popularity was classified as not popular.
We found that azure-publish-settings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.