
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
ember-cli-deploy-sentry
Advanced tools
Ember CLI Deploy plugin to upload javascript sourcemaps to sentry.
**WARNING: This plugin is only compatible with ember-cli-deploy versions >= 0.5.0**An ember-cli-deploy-plugin to upload javascript sourcemaps to Sentry.
A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
To get up and running quickly, do the following:
Ensure ember-cli-deploy-build is installed and configured.
Install this plugin
$ ember install ember-cli-deploy-sentry
config/deploy.js
ENV.sentry {
publicUrl: 'https://your.awesome.site',
sentryUrl: 'https://sentry.your.awesome.site',
sentryOrganizationSlug: 'AwesomeOrg',
sentryProjectSlug: 'AwesomeProject',
sentryApiKey: 'awesomeApiKey'
}
Install ember-cli-sentry but import the raven service from ember-cli-deploy-sentry/service/raven
,
which will automatically handle setting up the release version for you. Sentry needs this to find the correct sourcemap for an error that occurs.
If you don't want to use ember-cli-sentry
but set raven-js up manually see Manual integration with raven-js.
ember-cli
builds sourcemaps only in development environment by default. In order to build them always,
just add the following to your EmberApp
options.
sourcemaps: {
enabled: true,
extensions: ['js']
}
See also: ember-cli documentation
$ ember deploy
Run the following command in your terminal:
ember install ember-cli-deploy-sentry
For general information on how to setup Sentry and raven-js you probably want to check out the official Sentry Documentation especially on Sourcemaps.
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
configure
upload
didDeploy
For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.
The public url to the root of your website.
Required
The url of the sentry installation that ember-cli-deploy-sentry
shall upload sourcemaps and javascript files to.
If you are deploying in your local network, keep in mind you might need to use the local hostname/IP address.
Required
The slug of the organization you want to upload sourcemaps for. You can specify this in organization settings in sentry.
Required
The slug of the project you want to upload sourcemaps for. You can specify this in project settings in sentry.
Required
An api key you can create in your organization settings. Make sure it has the project:write
privilege.
Required
The root directory that all files matching the filePattern
will be uploaded from. By default, this option will use the distDir
property of the deployment context.
Default: context.distDir
A message that will be displayed after the distDir has been copied to destDir.
Default:
didDeployMessage: function(context){
return "Uploaded sourcemaps to sentry release: "
+ this.readConfig('sentryUrl')
+ '/'
+ this.readConfig('sentryOrganizationSlug')
+ '/'
+ this.readConfig('sentryProjectSlug')
+ '/releases/'
+ this.readConfig('revisionKey')
+ '/';
}
minimatch
expression that is used to determine which files should be uploaded from the distDir
.
Default: /**/*.{js,map}
The revision string that is used to create releases in sentry.
revisionKey: function(context) {
return context.revisionData && context.revisionData.revisionKey;
}
Enable adding a meta tag with the current revisionKey into the head of your index.html
.
Default true
The following properties are expected to be present on the deployment context
object:
distDir
(provided by ember-cli-deploy-build)revisionData.revisionKey
(provided by ember-cli-deploy-revision-data)By default a meta tag with the key name sentry:revision
is inserted in your index.html:
<meta name="sentry:revision" content="(revision)">
When you setup raven-js you can retrieve it like this:
Raven.config({
release: $("meta[name='sentry:revision']").attr('content')
});
If you only want to use the sourcemap upload functionality of ember-cli-deploy-sentry
, you can disable automatic meta tag insertion completely by setting enableRevisionTagging to false
.
Last but not least make sure to setup proper exception catching like this.
npm test
context.distFiles
from ember-cli-deploy-build instead globbing distDir again?service.releaseMetaName
It works. We use it in production at Hatchet.
0.2.1
FAQs
Ember CLI Deploy plugin to upload javascript sourcemaps to sentry.
The npm package ember-cli-deploy-sentry receives a total of 67 weekly downloads. As such, ember-cli-deploy-sentry popularity was classified as not popular.
We found that ember-cli-deploy-sentry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.