1
0
mirror of https://github.com/quay/quay.git synced 2026-01-29 08:42:15 +03:00
Commit Graph

29 Commits

Author SHA1 Message Date
Sunandadadi
52dc9f8437 adding validation to value and minor fixes 2024-06-18 21:21:02 -04:00
Sunandadadi
808dd6520c adding validation in config tool for default autoprune policy 2024-06-18 13:58:45 -04:00
Harish Govindarajulu
074f35ee99 chore: Update alembic migration script to support sqlite db (PROJQUAY-7097) (#2839)
* Add sqlite db support on quay start up

* Add batchmode to migration scripts to support sqlite db

* Add sqlite db to config-tool validator +  alembic migration

* Fix migration script to prevent db row locking

Added commit statement to ensure previous transaction is
completed before the next one within the same table

* Clean up unused sqlite volume

* Apply black formatting to migration scripts

* Address review comments

* Ensure py39-unit test runs the alembic migration on Sqlite

* Add static type checking for alembic config file name

* alembic remove commit and invalidate during migration

When disconnecting from db, alembic tries to rollback
causing PendingRollbackError

* Bump go version in config-tool Dockerfile

* Explicitly commit transaction to prevent db table locking

* Clean up + remove debug statements

* Undo database secret key change

* Add TEST_DATABASE_URI to py39-unit to run unit test with sqlite db

* Drop index before dropping column to prevent sqlite error

* Add test coverage + address last set of reviews

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
2024-06-12 13:57:32 -04:00
dependabot[bot]
4bfad98e9c build(deps-dev): bump follow-redirects from 1.12.1 to 1.15.6 in /config-tool/pkg/lib/editor (#2759)
build(deps-dev): bump follow-redirects in /config-tool/pkg/lib/editor

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.12.1 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.12.1...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 17:10:17 +02:00
Jonathan King
233c128849 sts: Add STS support for S3 (PROJQUAY-6362) (#2632)
- Add STS authentication to s3
- Add STS validation to config tool
- PR automatically refreshes token on expiry
2024-02-22 10:50:54 -05:00
Brandon Caton
94735bcfbd configtool: Adding validation for IBM Cloud Storage (PROJQUAY-6549) (#2568)
Adding validation for IBM Cloud Storage
2023-12-20 09:16:45 -05:00
Michaela Lang
2c24975dbb federationuser(ldap): fixing keepalive settings for LDAP connections (PROJQUAY-5137) (#2440)
fixed field names for keepalive attributes.

* scenario1: config-tool empty configuration
** expectation: empty config for DB_CONNECTION_ARGS
```
$ curl -s http://localhost/api/v1/config | jq -r '."config.yaml".DB_CONNECTION_ARGS'
{}
```

* scenario2: config-tool with populated DB_CONNECTION_ARGS
** expectation: values are returned in DB_CONNECTION_ARGS
```
$ curl -s http://localhost/api/v1/config | jq -r '."config.yaml".DB_CONNECTION_ARGS'
{
  "autorollback": true,
  "keepalives": 1,
  "keepalives_count": 5,
  "keepalives_idle": 3,
  "keepalives_interval": 4,
  "max_connections": 30,
  "sslcompression": 1,
  "stale_timeout": 300,
  "tcp_user_timeout": 1000
}
```

* scenario3: config-tool with populated DB_CONNECTION_ARGS wrong type
** expectation: config-tool validate will bailout the wrong type in the
parameter
```
$ podman run -ti --rm --name config-tool -v config.yaml:/tmp/config.yaml config-tool:latest validate --configDir /tmp -m online
FATA[0000] An error occurred during validation. Process could not marshal config.yaml. This is most likely due to an incorrect type.
More info: keepalives must be of type int
```
2023-11-07 16:58:30 +01:00
dependabot[bot]
31e435c66f build(deps-dev): bump postcss from 8.4.29 to 8.4.31 in /config-tool/pkg/lib/editor (#2284)
build(deps-dev): bump postcss in /config-tool/pkg/lib/editor

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.29...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 13:02:43 +02:00
dependabot[bot]
6afb41d5f4 build(deps): bump @cypress/request and cypress in /config-tool/pkg/lib/editor (#2259)
build(deps): bump @cypress/request and cypress

Bumps [@cypress/request](https://github.com/cypress-io/request) to 3.0.1 and updates ancestor dependency [cypress](https://github.com/cypress-io/cypress). These dependencies need to be updated together.


Updates `@cypress/request` from 2.88.12 to 3.0.1
- [Release notes](https://github.com/cypress-io/request/releases)
- [Changelog](https://github.com/cypress-io/request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cypress-io/request/compare/v2.88.12...v3.0.1)

Updates `cypress` from 12.17.4 to 13.2.0
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/cypress-io/cypress/compare/v12.17.4...v13.2.0)

---
updated-dependencies:
- dependency-name: "@cypress/request"
  dependency-type: indirect
- dependency-name: cypress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-27 19:05:25 +00:00
dependabot[bot]
e3d9b3ef94 build(deps): bump highlight.js from 9.18.3 to 11.8.0 in /config-tool/pkg/lib/editor (#2226)
build(deps): bump highlight.js in /config-tool/pkg/lib/editor

Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.3 to 11.8.0.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/commits/11.8.0)

---
updated-dependencies:
- dependency-name: highlight.js
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 13:09:55 +02:00
dependabot[bot]
d50fef9e60 build(deps-dev): bump json5 from 1.0.1 to 1.0.2 in /config-tool/pkg/lib/editor (#2211)
build(deps-dev): bump json5 in /config-tool/pkg/lib/editor

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-20 13:02:48 +02:00
Jonathan King
f013a27b6f reconfigure: Remove ca-bundle.crt and service-ca.crt (PROJQUAY-5233) (#2231)
- We need to strip out the cluster provided certs from the reconfigure rrequest to avoid duplication.
This resolves JSON encoding/decoding issues found in passing this cert through the config editor
2023-09-12 17:04:35 +00:00
dependabot[bot]
d894940f2e build(deps): bump loader-utils, css-loader, karma-webpack, ngtemplate-loader and style-loader in /config-tool/pkg/lib/editor (#2184)
* build(deps): bump loader-utils, css-loader, karma-webpack, ngtemplate-loader and style-loader

Bumps [loader-utils](https://github.com/webpack/loader-utils) to 1.4.2 and updates ancestor dependencies [loader-utils](https://github.com/webpack/loader-utils), [css-loader](https://github.com/webpack-contrib/css-loader), [karma-webpack](https://github.com/webpack-contrib/karma-webpack), [ngtemplate-loader](https://github.com/WearyMonkey/ngtemplate-loader) and [style-loader](https://github.com/webpack-contrib/style-loader). These dependencies need to be updated together.


Updates `loader-utils` from 1.4.0 to 1.4.2
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

Updates `css-loader` from 0.25.0 to 6.8.1
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v0.25.0...v6.8.1)

Updates `karma-webpack` from 1.8.1 to 5.0.0
- [Release notes](https://github.com/webpack-contrib/karma-webpack/releases)
- [Changelog](https://github.com/ryanclark/karma-webpack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/karma-webpack/compare/v1.8.1...v5.0.0)

Updates `ngtemplate-loader` from 1.3.1 to 2.1.0
- [Commits](https://github.com/WearyMonkey/ngtemplate-loader/commits)

Updates `style-loader` from 0.13.1 to 0.13.2
- [Release notes](https://github.com/webpack-contrib/style-loader/releases)
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/style-loader/compare/v0.13.1...v0.13.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
- dependency-name: css-loader
  dependency-type: direct:development
- dependency-name: karma-webpack
  dependency-type: direct:development
- dependency-name: ngtemplate-loader
  dependency-type: direct:development
- dependency-name: style-loader
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: bump webpack

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleg Bulatov <oleg@bulatov.me>
2023-09-06 15:59:03 +02:00
Oleg Bulatov
9ab64f2052 feat(config-tool): add SSL client authentication (PROJQUAY-2417) (#2157)
* Add SSL client authentication by extending libpg connection parameter support as well as network parameters

* chore: go fmt

---------

Co-authored-by: Michaela Lang <milang@redhat.com>
2023-08-29 10:47:37 +02:00
dependabot[bot]
e400a0c22c build(deps-dev): bump source-map-loader from 0.1.5 to 1.1.3 in /config-tool/pkg/lib/editor (#2181)
build(deps-dev): bump source-map-loader in /config-tool/pkg/lib/editor

Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader) from 0.1.5 to 1.1.3.
- [Release notes](https://github.com/webpack-contrib/source-map-loader/releases)
- [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v0.1.5...v1.1.3)

---
updated-dependencies:
- dependency-name: source-map-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 15:52:31 +02:00
dependabot[bot]
72ae94ea7f build(deps-dev): bump angular-mocks and @types/angular-mocks in /config-tool/pkg/lib/editor (#2172)
build(deps-dev): bump angular-mocks and @types/angular-mocks

Bumps [angular-mocks](https://github.com/angular/angular.js) and [@types/angular-mocks](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/angular-mocks). These dependencies needed to be updated together.

Updates `angular-mocks` from 1.6.2 to 1.8.3
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular.js/compare/v1.6.2...v1.8.3)

Updates `@types/angular-mocks` from 1.7.0 to 1.7.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/angular-mocks)

---
updated-dependencies:
- dependency-name: angular-mocks
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/angular-mocks"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-27 15:18:16 +02:00
dependabot[bot]
d51dae5f21 build(deps-dev): bump webpack-cli from 3.3.9 to 4.10.0 in /config-tool/pkg/lib/editor (#2170)
build(deps-dev): bump webpack-cli in /config-tool/pkg/lib/editor

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.9 to 4.10.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.9...webpack-cli@4.10.0)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-27 15:15:40 +02:00
dependabot[bot]
a531a79fbc build(deps): bump urijs from 1.19.2 to 1.19.11 in /config-tool/pkg/lib/editor (#2164)
build(deps): bump urijs in /config-tool/pkg/lib/editor

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.2 to 1.19.11.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.2...v1.19.11)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 17:20:57 +02:00
dependabot[bot]
0046cb518c build(deps): bump moment-timezone from 0.4.1 to 0.5.35 in /config-tool/pkg/lib/editor (#2158)
build(deps): bump moment-timezone in /config-tool/pkg/lib/editor

Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.4.1 to 0.5.35.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.4.1...0.5.35)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 12:09:17 +00:00
dependabot[bot]
1e18a5466b build(deps): bump ejs and webpack-bundle-analyzer in /config-tool/pkg/lib/editor (#2163)
build(deps): bump ejs and webpack-bundle-analyzer

Removes [ejs](https://github.com/mde/ejs). It's no longer used after updating ancestor dependency [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer). These dependencies need to be updated together.


Removes `ejs`

Updates `webpack-bundle-analyzer` from 3.5.2 to 4.9.0
- [Release notes](https://github.com/webpack-contrib/webpack-bundle-analyzer/releases)
- [Changelog](https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/webpack-bundle-analyzer/compare/v3.5.2...v4.9.0)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
- dependency-name: webpack-bundle-analyzer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 13:48:56 +02:00
dependabot[bot]
5a0d400192 build(deps): bump jsrsasign from 10.1.13 to 10.5.25 in /config-tool/pkg/lib/editor (#2161)
build(deps): bump jsrsasign in /config-tool/pkg/lib/editor

Bumps [jsrsasign](https://github.com/kjur/jsrsasign) from 10.1.13 to 10.5.25.
- [Release notes](https://github.com/kjur/jsrsasign/releases)
- [Changelog](https://github.com/kjur/jsrsasign/blob/master/ChangeLog.txt)
- [Commits](https://github.com/kjur/jsrsasign/compare/10.1.13...10.5.25)

---
updated-dependencies:
- dependency-name: jsrsasign
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 09:47:56 +00:00
dependabot[bot]
da0e6efdd4 build(deps): bump moment from 2.27.0 to 2.29.4 in /config-tool/pkg/lib/editor (#2160)
build(deps): bump moment in /config-tool/pkg/lib/editor

Bumps [moment](https://github.com/moment/moment) from 2.27.0 to 2.29.4.
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.27.0...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 09:14:50 +02:00
dependabot[bot]
9fbd49b37b build(deps): bump jszip from 3.5.0 to 3.8.0 in /config-tool/pkg/lib/editor (#2073)
build(deps): bump jszip in /config-tool/pkg/lib/editor

Bumps [jszip](https://github.com/Stuk/jszip) from 3.5.0 to 3.8.0.
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.5.0...v3.8.0)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 23:02:30 +02:00
dependabot[bot]
743fa178a1 build(deps): bump jquery from 1.12.4 to 3.5.0 in /config-tool/pkg/lib/editor (#2075)
build(deps): bump jquery in /config-tool/pkg/lib/editor

Bumps [jquery](https://github.com/jquery/jquery) from 1.12.4 to 3.5.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/1.12.4...3.5.0)

---
updated-dependencies:
- dependency-name: jquery
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 19:45:56 +00:00
Oleg Bulatov
e72773bbce chore: add cypress tests for config-tool (#2152) 2023-08-25 17:14:06 +02:00
dependabot[bot]
4fcc2c9427 build(deps-dev): bump qs in /config-tool/pkg/lib/editor (#2072)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 10:30:14 +00:00
dependabot[bot]
8c4d37a4e8 build(deps-dev): bump word-wrap in /config-tool/pkg/lib/editor (#2074)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 09:49:30 +02:00
Oleg Bulatov
02463a7e1a chore: Rename github.com/quay/config-tool to github.com/quay/quay/config-tool 2023-07-31 17:28:58 +02:00
Oleg Bulatov
0429d79696 chore: Move config-tool into its own directory 2023-07-28 16:34:05 +02:00