Skip to content

Commit

Permalink
Merge branch 'release' into 'master'
Browse files Browse the repository at this point in the history
Merge release into master

See merge request passbolt/passbolt-ce-api!113
  • Loading branch information
cedricalfonsi committed Mar 16, 2023
2 parents b80a660 + 706d40d commit f8e0e15
Show file tree
Hide file tree
Showing 232 changed files with 22,233 additions and 1,061 deletions.
5 changes: 4 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ variables:
stages:
- unit-test
- unit-test-parallel
- packaging-trigger

include:
- template: Code-Quality.gitlab-ci.yml
# - local: "/.gitlab-ci/jobs/php_unit_tests/runner.yml"
# - local: "/.gitlab-ci/jobs/php_unit_tests/runner.yml"
- local: "/.gitlab-ci/jobs/php_unit_tests/sequential/php_unit_tests.yml"
- local: "/.gitlab-ci/jobs/style_check.yml"
- local: ".gitlab-ci/jobs/packaging_trigger/package_trigger.yml"

code_quality:
stage: unit-test
Expand All @@ -33,3 +35,4 @@ workflow:
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
12 changes: 12 additions & 0 deletions .gitlab-ci/jobs/packaging_trigger/package_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
packaging-trigger:
stage: packaging-trigger
variables:
PACKAGING_TRIGGER_BRANCH: "main"
DOWNSTREAM_PROJECT_ID: "$PACKAGING_PROJECT_ID"
image: registry.gitlab.com/passbolt/passbolt-ci-docker-images/debian-bullseye-11-slim:latest
script:
- apt update && apt install -y curl
- bash .gitlab-ci/scripts/packaging-trigger.sh "$CI_COMMIT_TAG" "$PACKAGING_TRIGGER_BRANCH"
rules:
- if: $CI_COMMIT_TAG
when: on_success
47 changes: 47 additions & 0 deletions .gitlab-ci/scripts/packaging-trigger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

# This script receives an passbolt tag and returns the passbolt version semver compliant (without 'v')
# It can handle stable versions eg. v3.11.0 -> 3.11.0
# and release candiate versions eg. v3.11.0-rc.1 -> 3.11.0-rc.1

tag="$1"
branch="$2"

function is_release_candidate () {
local version=$1
if [[ ! $version =~ [0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+ ]];then
return 1
fi
return 0
}

function parse_tag() {
local tag=$1

if is_release_candidate "$tag"; then
echo "$tag" | awk -F '-' '{print $1"-"$2}' | tr -d 'v'
else
echo "$tag" | awk -F '-' '{print $1}' | tr -d 'v'
fi
}

if [[ $tag == "" ]]; then
echo "Error: tag is empty!"
exit 1
else
version="$(parse_tag "$tag")"
fi

echo "Creating the following variables"
echo "================================="
echo "PASSBOLT_VERSION=${version}"

passbolt_version="${version}"

curl -X POST \
-F token="$PACKAGING_TOKEN" \
-F "ref=$branch" \
-F "variables[PASSBOLT_FLAVOUR]=$PASSBOLT_FLAVOUR" \
-F "variables[PASSBOLT_VERSION]=$passbolt_version" \
-F "variables[PASSBOLT_BRANCH]=$tag" \
"https://gitlab.com/api/v4/projects/$DOWNSTREAM_PROJECT_ID/trigger/pipeline"
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.12.0] - 2023-03-15
### Added
PB-20535 As a community user I want to use folders
PB-22749 As an administrator I can customise passbolt to output the action logs in syslog
PB-22749 As an administrator I can customise passbolt to output the action logs in a file
PB-22749 As an administrator I can implement my own action logs handler

### Fixed
PB-23717 As a user using the json API I should get a bad request error instead of an internal error if using api-version=v1
PB-21826 Fix emails entries should not be locked when threshold limit is exceeded
PB-23519 As an administrator running the DUO v4 migration I should not see a warning message if DUO was not configured
PB-23721 As an administrator I want to be sure the server key is in the keyring before decrypting users directory settings

### Security
PB-23311 As an administrator I should be the only one to know which users have enabled MFA

### Improved
PB-23333 As an administrator I should see a notice instead of a warning if I enabled the self registration plugin
PB-23722 As a developer running the unit tests I want to be sure the version from the config matches the one from the changelog
PB-22892 As a user recovering my account I want to see the success and error pages feedback

### Maintenance
PB-23287 Duo multi-factor authentication redirection refactoring
PB-23702 Update phpseclib/phpseclib dependency

## [3.11.1] - 2023-03-03
### Fixed
- PB-23283 As an administrator I can disable username validation in Duo Callback endpoints
Expand Down
16 changes: 9 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@
],
"require": {
"php": ">=7.3",
"ext-json" : "*",
"ext-posix" : "*",
"ext-intl" : "*",
"ext-mbstring" : "*",
"ext-gnupg" : "*",
"ext-json": "*",
"ext-posix": "*",
"ext-intl": "*",
"ext-mbstring": "*",
"ext-gnupg": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"ext-curl" : "*",
"ext-curl": "*",
"cakephp/cakephp": "^4.3.11",
"cakephp/migrations": "^3.5.2",
"robmorgan/phinx":"^0.12.10",
"robmorgan/phinx": "^0.12.10",
"cakephp/plugin-installer": "^1.3.1",
"mobiledetect/mobiledetectlib": "^2.8.39",
"ramsey/uuid": "^4.2.3",
Expand Down Expand Up @@ -101,6 +101,7 @@
"Passbolt\\EmailNotificationSettings\\": "./plugins/PassboltCe/EmailNotificationSettings/src",
"Passbolt\\EmailDigest\\": "./plugins/PassboltCe/EmailDigest/src",
"Passbolt\\Reports\\": "./plugins/PassboltCe/Reports/src",
"Passbolt\\Folders\\": "./plugins/PassboltCe/Folders/src",
"Passbolt\\Mobile\\": "./plugins/PassboltCe/Mobile/src",
"Passbolt\\JwtAuthentication\\": "./plugins/PassboltCe/JwtAuthentication/src",
"Passbolt\\Import\\": "./plugins/PassboltCe/Import/src",
Expand All @@ -123,6 +124,7 @@
"Passbolt\\EmailNotificationSettings\\Test\\": "./plugins/PassboltCe/EmailNotificationSettings/tests",
"Passbolt\\EmailDigest\\Test\\": "./plugins/PassboltCe/EmailDigest/tests",
"Passbolt\\Reports\\Test\\": "./plugins/PassboltCe/Reports/tests",
"Passbolt\\Folders\\Test\\": "./plugins/PassboltCe/Folders/tests",
"Passbolt\\Mobile\\Test\\": "./plugins/PassboltCe/Mobile/tests",
"Passbolt\\JwtAuthentication\\Test\\": "./plugins/PassboltCe/JwtAuthentication/tests",
"Passbolt\\MultiFactorAuthentication\\Test\\": "./plugins/PassboltCe/MultiFactorAuthentication/tests",
Expand Down
17 changes: 9 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions config/Migrations/20191119092944_V2130AddFoldersTable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 2.13.0
*/

use Migrations\AbstractMigration;

class V2130AddFoldersTable extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
* @return void
*/
public function change()
{
$this->table('folders', ['id' => false, 'primary_key' => ['id'], 'collation' => 'utf8mb4_unicode_ci'])
->addColumn('id', 'char', [
'default' => null,
'limit' => 36,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->addColumn('name', 'string', [
'default' => null,
'limit' => 64,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->addColumn('created', 'datetime', [
'default' => null,
'limit' => null,
'null' => false,
])
->addColumn('modified', 'datetime', [
'default' => null,
'limit' => null,
'null' => false,
])
->addColumn('created_by', 'char', [
'default' => null,
'limit' => 36,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->addColumn('modified_by', 'char', [
'default' => null,
'limit' => 36,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->create();
}
}
53 changes: 53 additions & 0 deletions config/Migrations/20191119092945_V2130AddFoldersHistoryTable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 2.13.0
*/

use Migrations\AbstractMigration;

class V2130AddFoldersHistoryTable extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
* @return void
*/
public function change()
{
$this->table('folders_history', ['id' => false, 'primary_key' => ['id'], 'collation' => 'utf8mb4_unicode_ci'])
->addColumn('id', 'char', [
'default' => null,
'limit' => 36,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->addColumn('folder_id', 'char', [
'default' => null,
'limit' => 36,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->addColumn('name', 'string', [
'default' => null,
'limit' => 64,
'null' => false,
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci'
])
->create();
}
}
Loading

0 comments on commit f8e0e15

Please sign in to comment.