2014-09-26 09:49:44 +02:00
summary: Describes the process followed for "core" releases.
2011-02-21 22:23:22 +01:00
# Release Process
2011-02-07 07:48:44 +01:00
2015-06-18 07:26:58 +02:00
This page describes the process followed for "core" releases (mainly the `framework` and `cms` modules).
2011-02-07 07:48:44 +01:00
## Release Maintainer
The current maintainer responsible for planning and performing releases is Ingo Schommer (ingo at silverstripe dot com).
## Release Planning
2015-10-26 21:37:06 +01:00
Our most up-to-date release plans are typically in the ["framework" milestone ](https://github.com/silverstripe/silverstripe-framework/milestones ) and ["cms" milestone ](https://github.com/silverstripe/silverstripe-cms/milestones ).
2014-12-04 22:27:52 +01:00
New features and API changes are discussed on the [core mailinglist ](http://groups.google.com/group/silverstripe-dev ). They are prioritised by the core team as tickets on
github.com. In addition, we collect community feedback on [silverstripe.uservoice.com ](https://silverstripe.uservoice.com ).
Any feature ideas we're planning to implement will be flagged there.
2011-02-07 07:48:44 +01:00
Release dates are usually not published prior to the release, but you can get a good idea of the release status by
2013-04-02 01:46:36 +02:00
reviewing the release milestone on github.com. Releases will be
2011-02-07 07:48:44 +01:00
announced on the [release announcements mailing list ](http://groups.google.com/group/silverstripe-announce ).
2015-06-18 07:26:58 +02:00
Releases of the *cms* and *framework* modules are coupled at the moment, and they follow the same numbering scheme.
2011-02-07 07:48:44 +01:00
## Release Numbering
2014-12-04 22:27:52 +01:00
SilverStripe follows [Semantic Versioning ](http://semver.org ).
2011-02-07 07:48:44 +01:00
2015-06-18 07:26:58 +02:00
Note: Until November 2014, the project didn't adhere to Semantic Versioning. Instead, a "minor release" in semver terminology
2014-12-04 22:27:52 +01:00
was treated as a "major release" in SilverStripe. For example, the *3.1.0* release contained API breaking changes, and
the *3.1.1* release contained new features rather than just bugfixes.
2011-02-07 07:48:44 +01:00
2014-12-04 22:27:52 +01:00
## Supported versions
2011-02-07 07:48:44 +01:00
At any point in time, the core development team will support a set of releases to varying levels:
2014-12-04 22:27:52 +01:00
* The current *master* will get new features, bug fixes and API changes that might require major refactoring before going
into a release. At the moment, bugfixing and feature development might happen on the current major release branch (e.g. *3* ), to be
merged forward to master regularly.
* Applicable bugfixes on master will also be merged back to the last major release branch, to be released as the next
patch release
* Security fixes will be applied to the current master and the previous two major releases (e.g. *4.0* , *3.2* and *3.1* ).
2011-02-07 07:48:44 +01:00
2012-02-01 01:47:49 +01:00
## Deprecation
2011-02-07 07:48:44 +01:00
2013-03-20 10:20:27 +01:00
Needs of developers (both on core framework and custom projects) can outgrow the capabilities
2015-06-18 07:26:58 +02:00
of a certain API. Existing APIs might turn out to be hard to understand, maintain, test or stabilise.
2011-02-07 07:48:44 +01:00
In these cases, it is best practice to "refactor" these APIs into something more useful.
SilverStripe acknowledges that developers have built a lot of code on top of existing APIs,
so we strive for giving ample warning on any upcoming changes through a "deprecation cycle".
How to deprecate an API:
* Add a `@deprecated` item to the docblock tag, with a `{@link <class>}` item pointing to the new API to use.
2016-02-17 22:21:59 +01:00
* Update the deprecated code to throw a [api:Deprecation::notice()] error.
2013-03-20 10:20:27 +01:00
* Both the docblock and error message should contain the **target version** where the functionality is removed.
2015-06-18 07:26:58 +02:00
So, if you're committing the change to a *3.1* minor release, the target version will be *4.0* .
2014-12-04 22:27:52 +01:00
* Deprecations should not be committed to patch releases
2015-06-18 07:26:58 +02:00
* Deprecations should only be committed to pre-release branches, ideally before they enter the "beta" phase.
2013-03-20 10:20:27 +01:00
If deprecations are introduced after this point, their target version needs to be increased by one.
2011-02-07 07:48:44 +01:00
* Make sure that the old deprecated function works by calling the new function - don't have duplicated code!
2014-09-26 09:49:44 +02:00
* The commit message should contain an `API` prefix (see ["commit message format" ](code#commit-messages ))
2014-12-04 22:27:52 +01:00
* Document the change in the [changelog ](/changelogs ) for the next release
2015-06-18 21:51:16 +02:00
* Deprecated APIs can be removed only after developers have had sufficient time to react to the changes. Hence, deprecated APIs should be removed in MAJOR releases only. Between MAJOR releases, leave the code in place with a deprecation warning.
* Exceptions to the deprecation cycle are APIs that have been moved into their own module, and continue to work with the new minor release. These changes can be performed in a single minor release without a deprecation period.
2013-03-20 10:20:27 +01:00
2011-02-07 07:48:44 +01:00
Here's an example for replacing `Director::isDev()` with a (theoretical) `Env::is_dev()` :
:::php
/**
* Returns true if your are in development mode
2014-12-04 22:27:52 +01:00
* @deprecated 4.0 Use {@link Env::is_dev()} instead.
2011-02-07 07:48:44 +01:00
*/
2012-01-30 23:13:42 +01:00
public function isDev() {
2014-12-04 22:27:52 +01:00
Deprecation::notice('4.0', 'Use Env::is_dev() instead');
2011-02-07 07:48:44 +01:00
return Env::is_dev();
}
2013-03-20 10:20:27 +01:00
2015-06-18 07:26:58 +02:00
This change could be committed to a minor release like *3.2.0* , and remains deprecated in all subsequent minor releases
(e.g. *3.3.0* , *3.4.0* ), until a new major release (e.g. *4.0.0* ), at which point it gets removed from the codebase.
2012-02-01 01:47:49 +01:00
2015-06-10 00:27:54 +02:00
Deprecation notices are enabled by default on dev environment, but can be
turned off via either _ss_environment.php or in your _config.php. Deprecation
notices are always disabled on both live and test.
`mysite/_config.php`
:::php
Deprecation::set_enabled(false);
`_ss_environment.php`
:::php
define('SS_DEPRECATION_ENABLED', false);
2012-02-01 01:47:49 +01:00
## Security Releases
### Reporting an issue
2013-04-02 01:46:36 +02:00
Report security issues to [security@silverstripe.com ](mailto:security@silverstripe.com ).
2014-09-26 09:49:44 +02:00
Please don't file security issues in our [bugtracker ](issues_and_bugs ).
2012-02-01 01:47:49 +01:00
2014-09-26 09:49:44 +02:00
### Acknowledgment and disclosure
2012-02-01 01:47:49 +01:00
In the event of a confirmed vulnerability in SilverStripe core, we will take the following actions:
* Acknowledge to the reporter that we’ ve received the report and that a fix is forthcoming. We’ ll give a rough
timeline and ask the reporter to keep the issue confidential until we announce it.
* Halt all other development as long as is needed to develop a fix, including patches against the current and one
previous major release (if applicable).
* We will inform you about resolution and [announce ](http://groups.google.com/group/silverstripe-announce ) a
[new release ](http://silverstripe.org/security-releases/ ) publically.
You can help us determine the problem and speed up responses by providing us with more information on how to reproduce
2015-06-18 07:26:58 +02:00
the issue: SilverStripe version (incl. any installed modules), PHP/webserver version and configuration, anonymised
2012-02-01 01:47:49 +01:00
webserver access logs (if a hack is suspected), any other services and web packages running on the same server.
### Severity rating
2014-09-26 09:49:44 +02:00
Each [security release ](http://www.silverstripe.org/security-releases/ ) includes an overall severity rating and one for
each vulnerability. The rating indicates how important an update is:
2012-02-01 01:47:49 +01:00
| Severity | Description |
|---------------|-------------|
2015-06-18 07:26:58 +02:00
| **Critical** | Critical releases require immediate action. Such vulnerabilities allow attackers to take control of your site and you should upgrade on the day of release. *Example: Directory traversal, privilege escalation* |
2012-02-01 01:47:49 +01:00
| **Important** | Important releases should be evaluated immediately. These issues allow an attacker to compromise a site's data and should be fixed within days. *Example: SQL injection.* |
| **Moderate** | Releases of moderate severity should be applied as soon as possible. They allow the unauthorized editing or creation of content. *Examples: Cross Site Scripting (XSS) in template helpers.* |
2015-06-18 07:26:58 +02:00
| **Low** | Low risk releases fix information disclosure and read-only privilege escalation vulnerabilities. These updates should also be applied as soon as possible, but according to an impact-dependent priority. *Example: Exposure of the core version number, Cross Site Scripting (XSS) limited to the admin interface.* |