Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 3.16.1 #1400

Merged
merged 160 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
14e6969
refactor: convert WidgetDataStatsConfiguration controller to a class
gaetanmaisse Dec 28, 2021
96dfdce
fix(dashboard): properly handle units on Stats widget
gaetanmaisse Jan 3, 2022
4aa93a0
refactor: an unpublish api is not sync
gcusnieux Nov 18, 2021
c5c1107
fix(repository): change searchLatest implementation
phiz71 Jan 4, 2022
a022f3c
fix(sync): adapt API & Dictionaries sync
phiz71 Jan 4, 2022
e3f329e
3.5.28
graviteeio Jan 5, 2022
54b6202
chore: prepare next version
graviteeio Jan 5, 2022
8e2678d
Merge tag '3.5.28' into 3.10.x
phiz71 Jan 6, 2022
9494b4c
fix(cve83): ensure API access control is properly enforced
a-cordier Dec 8, 2021
813a28c
fix: resolve discrepancies in API permission checking
a-cordier Dec 17, 2021
0aa1fba
fix(rest-api): scans the import path even if the PolicyPaths is not s…
ThibaudAV Jan 4, 2022
455a11b
fix: add definitionVersion and force setWithPathMapping for importPat…
ThibaudAV Jan 6, 2022
2cb68d7
refactor(rest-api): improve regex performance
ThibaudAV Jan 6, 2022
a96fe4d
fix: check API primary ownership before updating a group
a-cordier Dec 30, 2021
4d6a22a
ci: don't publish dev docker images on docker hub
phiz71 Jan 12, 2022
8af279b
chore: prepare next version [skip ci]
graviteeio Jan 12, 2022
e298552
fix: undeploy dictionnaries when deleting
gcusnieux Jan 5, 2022
8d7ff01
3.10.10
graviteeio Jan 14, 2022
6de4810
chore: prepare next version
graviteeio Jan 14, 2022
1825d11
ci: bump versions for dev environment
phiz71 Jan 14, 2022
77d4d97
fix(conf): contains method must also be based on relaxed properties
brasseld Jan 17, 2022
d47ea30
fix: add a search mode for search latest
phiz71 Jan 17, 2022
55db7da
fix: ignore unknown fields when ser/deser objects
phiz71 Jan 17, 2022
630f954
chore: allow to skip validation plugins
phiz71 Jan 18, 2022
b5c74a0
fix: add missing environmentId field in bridge server handler
phiz71 Jan 18, 2022
30175fa
fix(console): resolve typescript compilation
gcusnieux Jan 18, 2022
6c01af9
feat: bump elasticsearch version to 3.5.6 adds openSearch support
Jan 11, 2022
1403d3b
chore: bump ui-component version
gcusnieux Jan 13, 2022
b876a82
chore: upgrade gv-pagination component
gcusnieux Jan 7, 2022
0ff72a1
chore: override compiler version to 11
gcusnieux Jan 18, 2022
6895b48
3.5.29
graviteeio Jan 19, 2022
8cd1666
chore: prepare next version
graviteeio Jan 19, 2022
0de9958
style: improve user info display
gaetanmaisse Jan 19, 2022
70d48ef
Merge tag '3.5.29' into 3.10.x
phiz71 Jan 19, 2022
3a4e2e8
fix(metrics): Add support for old prometheus label names for backward…
phiz71 Jan 19, 2022
0c5b977
feat(alert): allow notification per api endpoint
jhaeyaert Dec 13, 2021
1b15870
fix: set failure status message according to status code
a-cordier Jan 9, 2022
91ff62f
fix: gravitee-apim-repository/gravitee-apim-repository-jdbc/pom.xml t…
snyk-bot Jan 3, 2022
3d8eeee
chore: bump @gravitee/ui-components to 3.28.7
gaetanmaisse Jan 27, 2022
66b8a7c
chore: prepare next version [skip ci]
graviteeio Jan 27, 2022
5b90a71
fix: update wrong dependencies version in gravitee-apim-distribution
ytvnr Jan 31, 2022
93699e2
fix: bump rest-to-soap from 1.12.0 to 1.13.0
ytvnr Jan 31, 2022
91e9ee0
chore: remove policy upgrade during release
gaetanmaisse Jan 28, 2022
1ec5997
fix: gravitee-apim-repository/gravitee-apim-repository-jdbc/pom.xml t…
snyk-bot Jan 3, 2022
5d1731d
fix: gravitee-apim-repository/gravitee-apim-repository-jdbc/pom.xml t…
snyk-bot Jan 3, 2022
b0b2b87
chore: bump swagger-ui-dist version
phiz71 Jan 26, 2022
9b6aeb5
fix: show_url should be a boolean
phiz71 Jan 26, 2022
ea94967
fix: remove the final quote
phiz71 Jan 26, 2022
31f90af
fix: hack to avoid global style in swagger renderer
phiz71 Jan 27, 2022
a9dec10
3.15.1
graviteeio Jan 31, 2022
7df458d
chore: prepare next version [skip ci]
graviteeio Jan 31, 2022
3da5062
fix: bump gravitee-node
phiz71 Feb 3, 2022
5e03c0f
3.15.2
graviteeio Feb 3, 2022
48866ba
chore: prepare next version [skip ci]
graviteeio Feb 3, 2022
4f5dc84
ci: include all subfolders when building standalone zipfile
phiz71 Feb 6, 2022
7c73b88
chore: improve ApiSynchronizer exceptions logging
Feb 4, 2022
0a532d5
fix(sync): fix API synchronization when environment has no HrID
Feb 4, 2022
c7aef5d
fix(jdbc): fix JDBC default environment initialization
Feb 7, 2022
a126cef
fix(jdbc): fix invalid SQL syntax when finding plans by IDs or APIs
Feb 4, 2022
56791c0
fix(repository): be aware that api criteria may not have a group or l…
gcusnieux Feb 7, 2022
6679ad9
3.15.3
graviteeio Feb 7, 2022
772bb97
chore: prepare next version [skip ci]
graviteeio Feb 7, 2022
c166776
chore: bump gravitee-policy-cache to version 1.15.0
Feb 15, 2022
1fc3747
chore: bump gravitee-policy-cache to version 1.9.1
Feb 15, 2022
9328e24
chore: bump gravitee-policy-cache to version 1.13.1
Feb 15, 2022
24835b7
fix: restore API Primary Owner privileges
a-cordier Jan 10, 2022
b343f0a
ci: don't deploy on EZ cluster
phiz71 Feb 15, 2022
94d539c
ci: don't need to upgrade the helm chart
phiz71 Feb 15, 2022
e5201a0
ci: k8s deployment names depend on support branch
phiz71 Feb 15, 2022
304455f
ci: don't deploy on EZ cluster
phiz71 Feb 15, 2022
094303f
ci: don't need to upgrade the helm chart
phiz71 Feb 15, 2022
9f8277d
ci: k8s deployment names depend on support branch
phiz71 Feb 15, 2022
8f07755
ci: don't publish dev docker images on docker hub
phiz71 Jan 12, 2022
cf0eb8a
ci: don't deploy on EZ cluster
phiz71 Feb 15, 2022
ff7e819
ci: don't need to upgrade the helm chart
phiz71 Feb 15, 2022
78200b3
ci: k8s deployment names depend on support branch
phiz71 Feb 15, 2022
7260e12
ci: don't publish dev docker images on docker hub
phiz71 Jan 12, 2022
91358f1
ci: don't deploy on EZ cluster
phiz71 Feb 15, 2022
9462e5d
ci: don't need to upgrade the helm chart
phiz71 Feb 15, 2022
647fad8
ci: k8s deployment names depend on support branch
phiz71 Feb 15, 2022
443334b
ci: k8s deployment names depend on support branch
phiz71 Feb 15, 2022
64bb656
fix(console): resolve logs display
gcusnieux Feb 15, 2022
d14744d
chore(portal): bump @gravitee/ui-components to 3.29.4
gcusnieux Feb 16, 2022
76a5784
fix: gravitee-apim-rest-api/gravitee-apim-rest-api-management/gravite…
snyk-bot Feb 8, 2022
37bffb4
fix: pom.xml to reduce vulnerabilities
snyk-bot Feb 2, 2022
62d3254
fix: pom.xml to reduce vulnerabilities
snyk-bot Feb 2, 2022
c102028
fix: pom.xml to reduce vulnerabilities
snyk-bot Feb 8, 2022
4c885f1
fix: on response, platform policies should be executed last
ytvnr Feb 17, 2022
6652d60
fix(jdbc): fix invalid SQL syntax when finding plans by IDs or APIs
Feb 4, 2022
3076fa3
chore: disable liquibase schema updates in Gateway
phiz71 Feb 21, 2022
8116481
chore: bump `@gravitee/ui-components` to 3.30.1
gaetanmaisse Feb 22, 2022
9d81753
fix(console): retrieve groups with member in transfer ownership compo…
a-cordier Feb 21, 2022
e077611
fix: admin role check in transfer ownerwhip component
a-cordier Feb 22, 2022
dc7ab33
fix: get group with members
a-cordier Feb 22, 2022
9b7e9be
fix: gravitee-apim-console-webui/package.json & gravitee-apim-console…
snyk-bot Feb 16, 2022
405aa1a
fix(portal): do not display labels on apis list if setting disabled
ytvnr Feb 23, 2022
e28f600
feat: personal token matching performance improvment
Feb 24, 2022
679678b
3.5.30
graviteeio Feb 25, 2022
331cc6a
chore: prepare next version
graviteeio Feb 25, 2022
39ea052
fix: add missing implementation of endHandler
phiz71 Feb 21, 2022
92def33
test: allow to load configuration from different folder
phiz71 Feb 22, 2022
1ff7289
test: add a FakeReporter that can be used to check what is reported
phiz71 Feb 24, 2022
7912c3c
fix: reason was not transferred from endpoint when logging activated
phiz71 Feb 24, 2022
00b9463
Merge branch '3.5.x' into 3.10.x
gaetanmaisse Feb 25, 2022
2f1ea72
3.10.11
graviteeio Feb 25, 2022
0b6e12a
chore: prepare next version
graviteeio Feb 25, 2022
68579a0
Merge branch '3.13.x' into 3.14.x
gaetanmaisse Feb 25, 2022
751a82f
Merge branch '3.13.x' into 3.14.x
phiz71 Feb 25, 2022
54f7239
Merge branch '3.10.x' into merge-3.10.x-in-3.14.x
gaetanmaisse Feb 28, 2022
28210c9
chore: fix version in pom.xml
gaetanmaisse Feb 28, 2022
998bd9c
fix: check existence before creating a new list from groups list
phiz71 Mar 1, 2022
ddede49
chore: bump version of metrics-reporter policy to 1.2.1
ytvnr Feb 25, 2022
78df42a
ci: create AZ storage container only if it does not exist
gaetanmaisse Mar 1, 2022
2ef0951
chore: bump gravitee-node
gaetanmaisse Feb 28, 2022
e51a9c3
ci: create AZ storage container only if it doesn't exist
gaetanmaisse Mar 1, 2022
ef75052
Merge branch '3.10.x' into merge-3.10.x-in-3.14.x
phiz71 Mar 1, 2022
6e12439
Merge pull request #1349 from gravitee-io/merge-3.10.x-in-3.14.x
gaetanmaisse Mar 1, 2022
03bbb8a
fix(gateway): use abstract endpoint model to create discovered endpoint
gcusnieux Feb 28, 2022
7b5f87e
chore: bump version of metrics-reporter policy to 1.1.1
ytvnr Feb 25, 2022
0bae14b
3.14.1
graviteeio Mar 3, 2022
483b3a5
chore: prepare next version [skip ci]
graviteeio Mar 3, 2022
910318e
chore: bump gateway-api & expression-language
gcusnieux Mar 2, 2022
049e3f4
fix: allow to import openapi with server without basepath
phiz71 Mar 2, 2022
97a196b
ci: add every existing plugins in 3.10.x env
phiz71 Mar 1, 2022
4844ba8
Merge branch '3.14.x' into merge-3.14.x-in-3.15.x
gaetanmaisse Mar 4, 2022
216a141
fix: remove service geoip from dev env
phiz71 Mar 4, 2022
c444916
fix: embed the resource-auth-provider api so plugins of this type can…
phiz71 Mar 1, 2022
d1e11ce
Merge pull request #1369 from gravitee-io/merge-3.14.x-in-3.15.x
phiz71 Mar 4, 2022
6eb5f83
fix: resolve generation of logging max duration EL condition
gcusnieux Mar 3, 2022
71d7ef3
fix: add upgrader to migrate api logging condition with good syntax
gcusnieux Mar 3, 2022
13d4aaa
fix: align elements of api logging form
gcusnieux Mar 3, 2022
7f15d55
chore: bump version of jws, jsontojson, jsontoxml, xmltojson, xslt po…
ytvnr Mar 2, 2022
218e5b9
feat: introduce new ExecutionContext
gcusnieux Feb 28, 2022
9de36c7
refactor: use ExecutionContext in MessageService
gcusnieux Feb 28, 2022
b26ab11
fix(MessageService): resolve fetch of indirect members
gcusnieux Feb 28, 2022
00a0102
refactor(MessageService): move indirect members fetch in explicit method
gcusnieux Feb 28, 2022
f239708
perf(MessageService): only one user can be primary owner of an app
gcusnieux Feb 28, 2022
08a01b6
refactor: simplify MessageService
gcusnieux Mar 3, 2022
2c0f452
test: reduce expiration date for compatibility with mysql
gcusnieux Mar 7, 2022
6b1d355
chore: add Deepcode cache file in gitignore file
gaetanmaisse Mar 7, 2022
a318025
ci: clean azure storage before sending new console static build
gaetanmaisse Mar 7, 2022
77cc5ba
ci: add a simple ZX script to purge all outdated storage container
gaetanmaisse Mar 7, 2022
4514464
3.15.4
graviteeio Mar 7, 2022
767df61
chore: prepare next version [skip ci]
graviteeio Mar 7, 2022
e781bf6
Merge tag '3.15.4' into merge-3.15.4
gcusnieux Mar 7, 2022
d3cec5f
Merge pull request #1386 from gravitee-io/merge-3.15.4
gaetanmaisse Mar 8, 2022
15c146e
fix: set back correct version of plugins in APIM distribution and upd…
gaetanmaisse Mar 8, 2022
a3b422a
fix(console): do not reload the page when saving api design
gcusnieux Mar 8, 2022
3c1d9bb
chore(console): regenerate package-lock.json
gcusnieux Mar 8, 2022
7de9549
ci: add every existing plugins in 3.14.x env
phiz71 Mar 3, 2022
f3db009
fix: update release script to avoid automatic update to "dev" version…
phiz71 Mar 8, 2022
810853a
fix: keep listeners when creating HttpEndpoint to fix endpoint switching
gaetanmaisse Mar 8, 2022
7841c51
Merge branch '3.10.x' into 3.14.x
gaetanmaisse Mar 9, 2022
1231a3e
Merge branch '3.14.x' into 3.15.x
gaetanmaisse Mar 9, 2022
0c5b3ce
refactor: reformat with prettier after a merge
gaetanmaisse Mar 9, 2022
4ec9247
ci: fix Azure Storage deployment
gaetanmaisse Mar 9, 2022
f7abd83
3.15.5
graviteeio Mar 9, 2022
4492b66
Merge tag '3.15.5' into 3.16.x
gcusnieux Mar 9, 2022
ceef725
3.16.1
graviteeio Mar 9, 2022
70db6b0
Merge tag '3.16.1'
gcusnieux Mar 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 30 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ executors:
- image: cimg/node:14.18
resource_class: << parameters.class >>

azure-cli:
parameters:
resource_class:
description: The resource class
type: enum
enum: ["small", "medium", "large", "xlarge"]
default: "medium"
docker:
# Version can be found here https://docs.microsoft.com/en-us/cli/azure/release-notes-azure-cli
# be careful when updating the version as it looks it is not following semver
- image: mcr.microsoft.com/azure-cli:2.34.1
resource_class: <<parameters.resource_class>>

commands:
prepare-env-var:
description: Prepare env variables used in [version.properties] files
Expand Down Expand Up @@ -599,9 +612,9 @@ jobs:
- notify-on-failure

console-webui-deploy-on-azure-storage:
docker:
- image: mcr.microsoft.com/azure-cli:latest
resource_class: small
executor:
name: azure-cli
resource_class: small
steps:
- attach_workspace:
at: .
Expand All @@ -612,8 +625,12 @@ jobs:
command: |
export BRANCH_ID=$(echo "$CIRCLE_BRANCH" | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr "[:upper:]" "[:lower:]" | cut -c -60)
az login --service-principal -u $AZURE_APPLICATION_ID --tenant $AZURE_TENANT -p $AZURE_APPLICATION_SECRET
az storage container create -n $BRANCH_ID --public-access blob
az storage blob upload-batch --overwrite true -s gravitee-apim-console-webui/dist -d $BRANCH_ID
CONTAINER_EXISTS=$(az storage container exists -n $BRANCH_ID | jq .exists)
if [ "$CONTAINER_EXISTS" = false ] ; then
echo "Creating container $BRANCH_ID"
az storage container create -n $BRANCH_ID --public-access blob
fi
az storage blob upload-batch --overwrite true -s gravitee-apim-console-webui/dist -d $BRANCH_ID --overwrite
- notify-on-failure

console-webui-comment-pr-after-deployment:
Expand All @@ -639,7 +656,6 @@ jobs:
echo "PR is not opened, stopping the job here."
exit 0
fi

export BRANCH_ID=$(echo "$CIRCLE_BRANCH" | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr "[:upper:]" "[:lower:]" | cut -c -60)
export PR_BODY_UI_SECTION="
<!-- UI placeholder -->
Expand All @@ -655,9 +671,9 @@ jobs:
- notify-on-failure

purge-master-azure-registry:
docker:
- image: mcr.microsoft.com/azure-cli:latest
resource_class: small
executor:
name: azure-cli
resource_class: small
steps:
- run:
name: 🗑 Let's purge all master Apim images older than 1d
Expand All @@ -669,9 +685,9 @@ jobs:
- notify-on-failure

deploy-on-azure-cluster:
docker:
- image: mcr.microsoft.com/azure-cli:latest
resource_class: small
executor:
name: azure-cli
resource_class: small
steps:
- attach_workspace:
at: .
Expand All @@ -684,7 +700,7 @@ jobs:
mv ./kubectl /usr/local/bin/kubectl
kubectl version --client=true
- run:
name: 🚀 to APIM cluster
name: Restart APIM cluster pods
command: |
export K8S_NAME=apim-${CIRCLE_BRANCH//\./-}
export K8S_NAMESPACE=apim-${CIRCLE_BRANCH//\./-}
Expand Down Expand Up @@ -779,7 +795,7 @@ jobs:
name: Update maven dependencies versions from properties and remove `-SNAPSHOT` from versions
command: |
# Update maven dependencies versions from properties
mvn -Duser.home=${HOME} -s /tmp/release.settings.xml -B -U versions:update-properties -Dmaven.version.rules.serverId=artifactory-gravitee-releases -Dincludes="io.gravitee.*:*" -Dexcludes="io.gravitee.policy:*" -DallowMajorUpdates=false -DallowMinorUpdates=false -DallowIncrementalUpdates=true -DgenerateBackupPoms=false
mvn -Duser.home=${HOME} -s /tmp/release.settings.xml -B -U versions:update-properties -Dmaven.version.rules.serverId=artifactory-gravitee-releases -Dincludes="io.gravitee.*:*" -Dexcludes="io.gravitee.policy:*,io.gravitee.connector:*,io.gravitee.resource:*,io.gravitee.service:*,io.gravitee.fetcher:*,io.gravitee.tracer:*,io.gravitee.repository:*,io.gravitee.reporter:*,io.gravitee.cockpit:*,io.gravitee.discovery:*,io.gravitee.notifier:*,com.graviteesource.notifier:*,com.graviteesource.policy:*" -DallowMajorUpdates=false -DallowMinorUpdates=false -DallowIncrementalUpdates=true -DgenerateBackupPoms=false -T 2C

# Remove `-SNAPSHOT` from versions
mvn -Duser.home=${HOME} -s /tmp/release.settings.xml -B versions:set -DremoveSnapshot=true -DgenerateBackupPoms=false
Expand Down
42 changes: 42 additions & 0 deletions .circleci/purge-outdated-storage-container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Purge Storage Container

This simple script will purge the storage container older than a specified date.

First, be sure you have [`zx`](https://github.com/google/zx) CLI installed.

To run this script you need to provide 2 env vars:
- CONNECTION_STRING: The connection string to the storage account
- LIMIT_DATE: The limit date to purge the storage container (everything older than this date will be deleted), in the format `YYYY-MM-DDTHH:MM:SS+00:00`, for instance `2022-02-01T00:00:00+00:00`

Then, you can run the script with the following command:
`CONNECTION_STRING="" LIMIT_DATE="2022-02-01T00:00:00+00:00" zx ./purge-storage-container.md`

It will first get the env variables:

```javascript
const connectionString = process.env.CONNECTION_STRING;
const limitDate = process.env.LIMIT_DATE || '2022-02-01T00:00:00+00:00';
if(!connectionString) {
console.error("You need to provide the following env vars: CONNECTION_STRING");
process.exit(1);
}
```

Then call the Azure API to list all the containers matching the lastModified date:
```javascript
const query = `[?properties.lastModified<="${limitDate}"].{name:name}`;
const containersToDeleteAsString = await $`az storage container list --connection-string=${connectionString} --query ${query}`;
const containersToDelete = JSON.parse(containersToDeleteAsString);
```

Then call the Azure API to delete all the containers:
```javascript
console.log(`Deleting ${containersToDelete.length} containers`);
for(const container of containersToDelete) {
console.log(`Deleting container ${container.name}`);
await $`az storage container delete --name ${container.name} --connection-string=${connectionString}`
console.log(`🚮 Deleted container ${container.name}`);
}
```

Et voila!
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ docker/quick-setup/**/.plugins
docker/quick-setup/**/.license
docker/quick-setup/**/.driver

# -- Cicd : Git ignore the [.circleci/**/*] which contains
# files which do not need to be commited (password to artifactory)
.circleci/**/*
# -- Cicd : Do not git ignore the [!./.circleci/config.yml] which contains
# the pipeline definition
!./.circleci/config.yml
# -- Cicd : Git ignore the [gpg.script.snippet.sh] which contains
# secrets (password to artifactory)
gpg.script.snippet.sh
# -- Cicd : The [graviteebot.gpg.priv.key] file contains secrets
Expand All @@ -57,4 +50,6 @@ graviteebot.gpg.pub.key
# Cypress
gravitee-apim-cypress/cypress/videos/
gravitee-apim-cypress/cypress/screenshots/
.dccache

# Deepcode (Snyk Code) cache
**/.dccache