1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Commit Graph

241 Commits

Author SHA1 Message Date
OpenShift Cherrypick Robot
96ff97e7df [redhat-3.13] ui: adding under_maintenance state to status indicator (PROJQUAY-8507) (#3625)
Adding under_maintenance state to status indicator

Co-authored-by: bcaton <bcaton@redhat.com>
2025-02-03 12:43:34 -05:00
OpenShift Cherrypick Robot
b1870400c1 [redhat-3.13] dep: updating css-loader to 6.11.0 (PROJQUAY-8297) (#3545)
updating css-loader to 6.11.0

Co-authored-by: bcaton <bcaton@redhat.com>
2025-01-07 19:12:49 +00:00
OpenShift Cherrypick Robot
cfd93edafe [redhat-3.13] ui: fixing cypress flake (PROJQUAY-8352) (#3510)
There's a flake in the web/cypress/e2e/repository-permissions.cy.ts test where it is intermittently unable to type in the "Search for user, add/create robot account" search dropdown which occasionally fails the test. Since updating cypress the test fails consistently. This changes waits and clicks on the input allowing the type to complete and the dropdown to populate.

Co-authored-by: bcaton <bcaton@redhat.com>
2024-12-13 12:08:01 -05:00
OpenShift Cherrypick Robot
5702a0f1bd [redhat-3.13] dep: updating axios (PROJQUAY-7657) (#3465)
Upgrading axios

---------

Co-authored-by: bcaton <bcaton@redhat.com>
2024-12-05 17:15:32 -05:00
OpenShift Cherrypick Robot
e97bbca8a0 [redhat-3.13] ui: Add proxy cache config UI to org settings (PROJQUAY-7697) (#3428)
* ui: Add proxy cache config UI to org settings (PROJQUAY-7697)

* Fix alerts + reset input fields on user action

* Add cypress test for proxy cache config

* enable proxy cache for cypress test

* Propagate backend api error to UI

* Add additional cypress test coverage

* Fix eslint error

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
Co-authored-by: harishsurf <hgovinda@redhat.com>
2024-11-27 14:43:20 +05:30
OpenShift Cherrypick Robot
1e5a519a60 [redhat-3.13] ui: Update regex pattern helper text for validating team name (PROJQUAY-8110) (#3354)
* ui: update regex pattern in helpertext for team name(PROJQUAY-8110)

* old ui: update regex pattern for validating team name

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
Co-authored-by: harishsurf <hgovinda@redhat.com>
2024-11-05 20:00:37 +00:00
OpenShift Cherrypick Robot
8418b7aa79 [redhat-3.13] ui: Render namespace values for <SelectOption> dropdown under Create Repository modal (PROJQUAY-8118) (#3361)
* ui: Render namespace values for <SelectOption> dropdown

Signed-off-by: harishsurf <hgovinda@redhat.com>

* fix cypress test

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
Co-authored-by: harishsurf <hgovinda@redhat.com>
2024-11-04 09:56:29 -05:00
OpenShift Cherrypick Robot
199f041d68 [redhat-3.13] ui: show user autoprune policies under repo autoprune policies tab (PROJQUAY-8093) (#3360)
ui: show user autoprune policies under repo autoprune policies tab (PROJQUAY-8093)

Co-authored-by: Sunandadadi <sunanda.3094@gmail.com>
2024-10-24 15:53:53 +00:00
OpenShift Cherrypick Robot
31edc93514 [redhat-3.13] ui: conditionally support custom tag expiration durations (PROJQUAY-6700) (#3352)
conditionally support custom tag expiration durations with reliable human-readable display

Signed-off-by: dmesser <dmesser@redhat.com>
Co-authored-by: dmesser <dmesser@redhat.com>
2024-10-21 17:12:57 +00:00
OpenShift Cherrypick Robot
1ba004e4c0 [redhat-3.13] notifications: fetch autoprune tags with multiple policies for image expiry notification (PROJQUAY-8117) (#3345)
* notifications: fetch autoprune tags with multiple policies for image expiry notification(PROJQUAY-8117)

* don't fetch notifications if tags expiry is greater than notification days + add tests

---------

Co-authored-by: Sunandadadi <sunanda.3094@gmail.com>
2024-10-18 20:55:05 +00:00
OpenShift Cherrypick Robot
eb6f9583e2 [redhat-3.13] build(deps): bump cookie and express in /web (#3319)
build(deps): bump cookie and express in /web

Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1)

Updates `express` from 4.21.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.0...4.21.1)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 18:13:20 +00:00
OpenShift Cherrypick Robot
63dbac679d [redhat-3.13] ui: add entry for robot federation config (PROJQUAY-8050) (#3330)
* ui: add entry for robot federation config (PROJQUAY-8050)

adding entry for showing description in the UI for robot federation config changes


---------

Co-authored-by: Syed <syed@apache.org>
2024-10-15 12:20:30 -04:00
OpenShift Cherrypick Robot
ab421ac38f [redhat-3.13] logs: Audit export logs requests (PROJQUAY-7679) (#3298)
* logs: Audit export logs requests (PROJQUAY-7679) We add the ability to audit export logs requests that were previously not tracked.

* Add UI elements to properly render new audit log

* Truncate date/time column on exterme zooms

* Add initdb.py entries

* Fix migration and add test db data

* Add test database and fix migration paths

* Changed logging mechanism to grab raised exceptions

* Fix improper import

* Add date/time timestamp to saved metadata

* Change message on export logs screen in UI

* Changed message in old UI as well

* Change log description in new UI too

* Simplify call logic and add additonal information to logged errors

---------

Co-authored-by: Ivan Bazulic <ibazulic@redhat.com>
2024-10-03 21:08:09 +00:00
OpenShift Cherrypick Robot
131fa686d2 [redhat-3.13] build(deps-dev): bump webpack from 5.76.0 to 5.95.0 in /web (#3285)
build(deps-dev): bump webpack from 5.76.0 to 5.95.0 in /web

Bumps [webpack](https://github.com/webpack/webpack) from 5.76.0 to 5.95.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.0...v5.95.0)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-03 12:56:25 -04:00
OpenShift Cherrypick Robot
56e9c9932b [redhat-3.13] build(deps): bump body-parser and express in /web (#3275)
build(deps): bump body-parser and express in /web

Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 17:55:54 +00:00
OpenShift Cherrypick Robot
cd0f34ae03 [redhat-3.13] build(deps): bump rollup from 2.70.2 to 2.79.2 in /web (#3276)
build(deps): bump rollup from 2.70.2 to 2.79.2 in /web

Bumps [rollup](https://github.com/rollup/rollup) from 2.70.2 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.70.2...v2.79.2)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 15:54:49 +00:00
OpenShift Cherrypick Robot
106f8124f1 [redhat-3.13] ui: adding tag pattern to audit logs in namespace policy list (PROJQUAY-8002) (#3281)
Adds the tag pattern to audit logs and the namespace policy list in the repository auto-pruning tab.

---------

Co-authored-by: bcaton <bcaton@redhat.com>
2024-10-02 14:43:54 +00:00
OpenShift Cherrypick Robot
88846844a1 [redhat-3.13] ui: show all auto-pruning policies for namespace (PROJQUAY-7975) (#3274)
ui: show all auto-pruning policies for namespace (PROJQUAY-7975)

Co-authored-by: Sunandadadi <sunanda.3094@gmail.com>
Co-authored-by: Sunandadadi <Sunandadadi@users.noreply.github.com>
2024-10-01 20:55:16 +00:00
OpenShift Cherrypick Robot
fc9a895b5c [redhat-3.13] ui: clear state on delete autoprune policies (PROJQUAY-8003) (#3279)
* ui: clear state on delete autoprune policies (PROJQUAY-8003)

* add retries to tests + triggering click

---------

Co-authored-by: Sunandadadi <sunanda.3094@gmail.com>
2024-10-01 16:16:55 -04:00
Amir Fefer
c87d852f93 ui: fix confirm username modal loop (PROJQUAY-7982) (#3254)
ui-plugin: fix confirm username modal loop (PROJQUAY-7982)
2024-09-25 15:48:41 +00:00
Syed Ahmed
e9161cb3ae robots: Add robot federation for keyless auth (PROJQUAY-7803) (#3207)
robots: Add robot federation for keyless auth (PROJQUAY-7652)

adds the ability to configure federated auth for robots by
using external OIDC providers. Each robot can be configured
to have multiple external OIDC providers as the source for
authentication.
2024-09-24 11:32:38 -04:00
Sunandadadi
f327551ccc autoprune: support multiple organization and repository policies (PROJQUAY-7695) (#3209)
* autoprune: support multiple organization policies (PROJQUAY-7695)

* ui to support multiple org policies

* backend to support multiple repository autoprune policies

* ui: multiple repository policies

* fixing tests

* adding tests
2024-09-20 09:18:09 -04:00
Brandon Caton
27d7c149b9 db: adding immutable column to tag table (PROJQUAY-7777) (#3195)
Adding immutable column to tag table
2024-09-19 10:02:20 -04:00
Brandon Caton
6da65c5003 api: adding tag_pattern to autoprune API (PROJQUAY-7668) (#3188)
Allows users to specify a regex tag pattern when creating namespace/repository autoprune policies via the new UI. Users will have the option to prune tags that only match the tag pattern or exclude tags that match the tag pattern.
2024-09-13 09:48:51 -04:00
Marcus Kok
a2919e4db5 ui: add enable/disable team sync for log kinds (PROJQUAY-7388) (#2982)
add enable/disable team sync for log kinds
2024-09-06 16:17:45 -04:00
Sunandadadi
b1de06938b cypress: fix flake test (PROJQUAY-7624) (#3137)
* cypress: fix flake test (PROJQUAY-7624)

* format fix

* fetch using id of input parent

* removing chaning of commands
2024-08-13 13:26:49 -04:00
Erik Berg
43e6496419 bug: too strict validateTeamName regex (PROJQUAY-7606) (#3126)
If you PUT against /api/v1/organization/mirrors/team/CAPITAL-LETTERS
you'll get a different regex back.

  Invalid team name CAPITAL-LETTERS: Namespace must match expression
  ^([a-z0-9]+(?:[._-][a-z0-9]+)*)$

Let's use this more permissive regex in the web-ui instead.
2024-08-12 13:10:56 -04:00
Ivan Bazulic
3c8ed17b17 bug: Fix UI x-axis display (PROJQUAY-7467) (#3066)
* bug: Fix UI x-axis display (PROJQUAY-7467)
Several fixes were made:

- We weren't properly displaying the `x` axis. This change increases the border padding to properly display the axis at the bottom.
- We weren't properly setting the legend font colors which made it impossible to see it when dark mode was turned on. We now properly apply them.
- If loaded logs were empty, the graph would not render properly. We check if any data should be rendered, if not, we display a message instead of rendering the graph.

* bug: Correct padding on graph rendering (PROJQUAY-7467)
The previous changes were not sufficient when only one action was recorded. We now set fixed padding on the bottom to `50px` instead of dynamically allocating it to resolve the problem.
2024-07-22 11:11:54 -04:00
Ivan Bazulic
b0a3856c5a bug: Fix UI x-axis display (PROJQUAY-7467) (#3053)
* bug: Fix UI x-axis display (PROJQUAY-7467)
Several fixes were made:

- We weren't properly displaying the `x` axis. This change increases the border padding to properly display the axis at the bottom.
- We weren't properly setting the legend font colors which made it impossible to see it when dark mode was turned on. We now properly apply them.
- If loaded logs were empty, the graph would not render properly. We check if any data should be rendered, if not, we display a message instead of rendering the graph.
2024-07-22 09:25:53 -04:00
Brandon Caton
4c15712a82 db: fixing alembic migration (PROJQUAY-7493) (#3044)
fixing alembic migration
2024-07-17 15:02:53 -04:00
Brandon Caton
854046d904 ui: adding message that registry wide autoprune has been enabled (PROJQUAY-7452) (#3042)
adding message that registry wide autoprune has been enabled
2024-07-17 13:55:56 -04:00
Kenny Lee Sin Cheong
32890207da registry: index manifest artifact type for filtering (PROJQUAY-7471) (#3035)
Previous assumption made use of the config media type only, which is not the case
if a manifest's artifact type is explicitly set. i.e the config's media type and
artifact type are different, and the artifact type take precedence for filtering.
2024-07-16 22:33:38 +00:00
Brandon Caton
916aff690c oauth: logging assign oauth action to audit logs (PROJQUAY-7431) (#3033)
logging assign oauth action to audit logs
2024-07-16 14:24:17 -04:00
Marcus Kok
638b0a0195 ui: add search bar for usage logs (PROJQUAY-7109) (#2955)
add search bar for usage logs
2024-07-11 15:45:44 -04:00
Sunandadadi
1bff53e6a3 ui: add helper text for input (PROJQUAY-7442) (#3015)
* ui: add helper text for input (PROJQUAY-7442)

* minor fixes

* fixing tests

* minor revert
2024-07-11 10:04:18 -04:00
Sunandadadi
0cdd254ce1 ui: fix for negative integers in image expiry days (PROJQUAY-7442) (#3013) 2024-07-10 10:13:00 -04:00
Sunandadadi
13f6cd590c featureflag: add feature flag for image expiry trigger (PROJQUAY-7460) (#3007)
* feature flag: add feature flag for image expiry trigger (PROJQUAY-7460)

* add FEATURE_IMAGE_EXPIRY_TRIGGER to CLIENT_WHITELIST

* minor fix

* setting IMAGE_EXPIRY_TRIGGER to true for testing

* fixing config.json
2024-07-08 17:43:14 -04:00
Sunandadadi
8812ebc16d ui: Frontend changes for repo image expiry notification (PROJQUAY-7078) (#2986)
* database: adding subject_backfilled index to manifest table (PROJQUAY-7360) (#2963)

adding subject_backfilled index to manifest table

* Rebasing with latest

* updating cypress data

* Rebasing with latest

* Forcing an empty commit.

* minor fixes

* Rebasing with latest

* format fix

* ui

* Forcing an empty commit.

* adding ui validations

* minor type check fix

---------

Co-authored-by: Brandon Caton <bcaton@redhat.com>
2024-06-27 19:10:09 -04:00
Marcus Kok
1d4865a0f9 ui: adjust large legends for usage logs (PROJQUAY-7384) (#2978)
adjust large legends for usage logs
2024-06-26 09:12:19 -04:00
Sunandadadi
6c371c5406 db: updates for image expiry notification (PROJQUAY-7075) (#2894)
* resolving conflicts

* database: adding subject_backfilled index to manifest table (PROJQUAY-7360) (#2963)

adding subject_backfilled index to manifest table

* adding index to last_ran_ms and updating alembic head

* minor fixes

* updating cypress data

---------

Co-authored-by: Brandon Caton <bcaton@redhat.com>
2024-06-25 15:59:40 -04:00
dependabot[bot]
377e858f9a build(deps): bump sanitize-html from 2.10.0 to 2.13.0 in /web (#2976)
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.10.0 to 2.13.0.
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.10.0...2.13.0)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 17:22:53 +00:00
Brandon Caton
e4f05583c1 oauth: allowing to assign token to user (PROJQUAY-7074) (#2869)
Allow organization administrators to assign Oauth token to another user.
2024-06-25 09:23:51 -04:00
Brandon Caton
bc06a3ef36 database: adding subject_backfilled index to manifest table (PROJQUAY-7360) (#2963)
adding subject_backfilled index to manifest table
2024-06-24 14:04:27 -04:00
dependabot[bot]
c9415826c3 build(deps): bump ejs from 3.1.6 to 3.1.10 in /web (#2857)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 14:47:05 +02:00
dependabot[bot]
95a48ce33e build(deps): bump braces and webpack in /web (#2944)
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and updates ancestor dependency [webpack](https://github.com/webpack/webpack). These dependencies need to be updated together.


Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

Updates `webpack` from 4.46.0 to 5.76.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.46.0...v5.76.0)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 14:40:23 +02:00
Kenny Lee Sin Cheong
4546163e83 registry: implements the OCI 1.1 referrers API (PROJQUAY-7280) (#2597)
* registry: implements the OCI 1.1 referrers API

Migrations:
- Adds a subject column for lookup
- Adds a subject_backfilled column to track status of the backfilling
of existing manifests
- Adds a manifest_json column making use of postgres' JSONB support,
for future use.

Manifestsubjectbackfillworker: Indexes existing manifests for possible
existing subject field.

* Deprecate IGNORE_UNKNOWN_MEDIATYPES

* Cleanup
2024-06-07 13:28:13 -04:00
dependabot[bot]
d6664d54b8 build(deps): bump @babel/traverse from 7.17.10 to 7.23.2 in /web (#2415)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.10 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 18:22:35 +02:00
dependabot[bot]
76459cc16f build(deps-dev): bump @typescript-eslint/eslint-plugin from 5.19.0 to 5.62.0 in /web (#2688)
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.19.0 to 5.62.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.62.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 18:21:44 +02:00
dependabot[bot]
73060011e3 build(deps): bump follow-redirects from 1.15.4 to 1.15.6 in /web (#2764)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...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-05-16 18:21:16 +02:00
dependabot[bot]
527a72914c build(deps): bump express from 4.17.3 to 4.19.2 in /web (#2799)
Bumps [express](https://github.com/expressjs/express) from 4.17.3 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.3...4.19.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 16:07:15 +02:00