1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Commit Graph

10897 Commits

Author SHA1 Message Date
Sunandadadi
ba2aa54d3f UI: Superuser user panel settings icon permissions fix (PROJQUAY-3905) (#1364) 2022-06-08 10:46:45 -04:00
Syed Mushtaq Ahmed
922a82a3d9 oauth: Add the code param to the oauthrize.html template (PROJQUAY-3648) (#1362)
Fixes an issue where the code param is not passed to the app redirect
URI if the user has not authorized the app before
2022-06-07 13:35:28 -04:00
Sunandadadi
c93661e9d5 UI: Show settings icon for super user under Superuser Users Panel (PROJQUAY-3905) (#1358)
* UI: Show settings icon for super user under Superuser Users Panel (PROJQUAY-3905)

* Showing only current super users settings icon
2022-06-06 11:12:23 -04:00
Kenny Lee Sin Cheong
e1745a9b13 init: fix bash path before appending certs (PROJQUAY-3881) (#1359) 2022-06-03 13:37:34 -04:00
Kenny Lee Sin Cheong
8786ef2efd init: ensure a newline is present before appending certs (PROJQUAY-3881) (#1356)
Make sure the script still works when mounting certs as a read-only fs.
2022-06-02 16:53:50 -04:00
Flavian Missi
f0f31e0b7a Dockerfile: use nodejs ubi8 image to build frontends (#1355)
Note that we're using ubi8/node-10, which is deprecated - but this is
the version previously installed (before the nodejs package disappeared
on us).
2022-06-02 16:53:19 -04:00
Brandon Caton
d11d45f208 builders: Send notifications on build completion (PROJQUAY-3614) (#1346)
Currently builds do not send notifications on success or failure. Adding calls to send out those notifications.
2022-06-02 09:49:19 -04:00
Kenny Lee Sin Cheong
16d9a2ce41 init: ensure a newline is present before appending certs (PROJQUAY-3881) (#1352) 2022-05-31 15:00:04 -04:00
Sunandadadi
f90e5e3dce Quota: Configuring Quota for user panel(PROJQUAY-3767) (#1334)
* Quota: Configuring Quota for user panel

* Added Quota Consumed column on Super users panel

* Fixing tests

* Fixing tests

* Adding tests for user quota operations

* Reverting org api changes + new endpoint for super user get method

* Reverting changes

* Added tests

* Fetching user namespace or organization
2022-05-31 11:22:37 -04:00
Kenny Lee Sin Cheong
5471d3cbcb secscan: deprecate support for Clair V2 (PROJQUAY-2837) (#951)
Removes read support for Clair V2, along with the need to package
jwtproxy with Quay.

TODO: Drop deprecate image api + image table, remove image data model.
2022-05-31 10:15:54 -04:00
Dave O'Connor
e6c6ecd47b Adds support for running on M1 macs (#1349) 2022-05-30 22:56:36 +02:00
Oleg Bulatov
521ff7a20c Create workflow for OCI Conformance (#1350) 2022-05-30 13:27:23 +02:00
kwestpharedhat
1e4871eca2 Quota: Add Cache To Tag Delete (PROJQUAY-3828) (#1345)
Add quota cache to delete tag
2022-05-27 10:04:21 -05:00
Oleg Bulatov
13f8e0c4b3 chore: Rebuild quay image if requirements.txt is changed (#1342) 2022-05-25 14:50:42 +02:00
Flavian Missi
d029a4652d pull-thru: bump expiration of all parent manifest lists on pull (#1336)
the previous code relied on manifests always having a single manifest
list as their parents, which is false.

fixes https://issues.redhat.com/browse/PROJQUAY-3818
2022-05-25 13:32:12 +02:00
Kenny Lee Sin Cheong
776dbd90d5 secscan: update https proxy scheme (#1340)
Update the https proxy scheme from "https" to "http". The scheme was
ignored prior to urllib3 1.26, which is why it was working.

https://github.com/psf/requests/issues/5943#issuecomment-926615360
https://github.com/quay/quay/pull/1250/files#diff-4d7c51b1efe9043e44439a949dfd92e5827321b34082903477fd04876edb7552R131
2022-05-24 18:45:05 -04:00
github-actions[bot]
e85372d005 chore: v3.7.0 changelog bump (https://issues.redhat.com/browse/PROJQUAY-2411) (#1337)
Signed-off-by: GitHub <noreply@github.com>

Co-authored-by: HammerMeetNail <HammerMeetNail@users.noreply.github.com>
2022-05-23 13:28:58 -04:00
Jonathan King
0fdf96a2d1 rhsso: Add checks for e-mail blocked in export screen (PROJQUAY-2056) (#1333)
- Check for additional error messages returned from export screen
2022-05-19 10:59:32 -04:00
Daniel J Walsh
e75397ddfe Add support for podman pull (#1331)
Examples should show how to do commands with Podman in addition to
Docker.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-05-18 15:22:53 +02:00
Brandon Caton
b2dbdcd798 schema1: Generate kid in the correct format (PROJQUAY-3486) (#1208)
Clients expect signed schema 1 manifests to contain a signature with the key ID in the correct format. We currently pass the automatically generated key ID which is just a hash of characters.
This causes errors in clients that try to pull signed schema 1 manifests that are generated by Quay - when creating tags through the UI or manifest conversions.
2022-05-17 13:20:09 -04:00
Brandon Caton
1d2e55b63d builders: Set imagePullPolicy to always (PROJQUAY-3507) (#1330)
Currently imagePullPolicy is set to IfNotPresent. This will ignore updates to the builder image.
2022-05-17 10:05:26 -04:00
Jonathan King
b21400b90d bump: Bump to redeploy Quay pods to reflect new endpoint (PROJQUAY-2056) (#1327)
- Bump vault version from 2 to 3
2022-05-13 17:58:40 -04:00
Kenny Lee Sin Cheong
e3b170ea3f buildman: fix type when getting ec2 ami (#1328) 2022-05-13 12:37:33 -04:00
Jonathan King
ca70a501c6 sso: Handle edge case for stage sso only users (PROJQUAY-2056) (#1326)
- Handle 400 status code gracefully as users in stage sso may not necessarily exist in compliance backend
2022-05-12 16:40:00 -04:00
Jonathan King
42f09298c4 sso: Fix debug statement (PROJQUAY-2056) (#1325)
- Fix debug statement to print stringified json
2022-05-12 14:57:51 -04:00
Jonathan King
f6e754b561 sso: Use trusted cert from extra_ca_certs directory (PROJQUAY-2056) (#1324)
- Do not pass certificate in verify parameter, instead load automatically from extra_ca_certs dir
2022-05-12 14:31:27 -04:00
Jonathan King
0826ac0e4e sso: Use requests client in screening call (PROJQUAY-2056) (#1321)
- Use requests client instead of built in client to prevent cert conflicts
2022-05-12 10:28:27 -04:00
Jonathan King
4e739d30bf sso: Update mount path for export compliance certificate (PROJQUAY-2056) (#1320)
- Change mount path from  to /stack
2022-05-11 17:31:32 -04:00
Jonathan King
2c3e26a322 sso: Add test for RHSSO OAuth service (PROJQUAY-2056) (#1317)
- Add test for RHSSOOAuthService class
2022-05-11 16:33:01 -04:00
Sunandadadi
59d586c4c6 Quota Management: Adding default quota check for image push (PROJQUAY-3789) (#1316)
* Quota Management: Adding default quota check for image push (PROJQUAY-3789)

* Removing redundant if else check

* Fixing formatting

* Setting default quota bytes to 0
2022-05-11 14:20:38 -04:00
Brandon Caton
fd9a6b2e60 v2auth: Check for user before creating org (PROJQUAY-3766) (#1315)
Currently when Quay is set to automatically create organizations it will check the user table for a matching username with organization set to true. This causes conflicts when a user already exists with the same username, where the check will fail and Quay will attempt to create an organization with the same name as the user. This change checks for only a matching username.
2022-05-11 13:28:34 -04:00
Sunandadadi
587cceb338 Quota UI: Adding Overall storage consumption for Super users panel page (PROJQUAY-3639) (#1307) 2022-05-10 14:47:51 -04:00
Flavian Missi
ac6a8d2f8b PROJQUAY-3750: support registries that do not return a digest header (#1310)
The distribution spec does not require the docker-content-digest header
to be set in response to a manifest GET/HEAD request.

This changes both the proxy client and the registry proxy model to
correctly check whether a manifest is up-to-date with the upstream
registry or not when no digest header is received.

NOTE: when checking staleness against registries that do not return the
docker-content-digest header, Quay will make a GET request to the
registry and calculate the digest from the manifest itself. GET requests
usually count towards rate-limiting.

This change also sets the accept-encoding header to 'identity'. The python
requests library seems to automatically set the accept-encoding header to
'gzip'. Dockerhub ignores that header when serving blobs, but some
registries don't (namely registry.access.redhat.com). When Quay receives a
gzipped config blob (have not tested non-config blobs) for some reason it
doesn't know how to handle it. I suspect it has to do wit the fact that in
this case the content-length header will differ from the actual size of
the response body, so when Quay tries to upload the blob it cannot
correctly calculate the actual blob size, so it does a partial upload to
its object storage, which then results in a digest mismatch error
(BlobDigestMismatchException).
2022-05-10 17:56:08 +02:00
Dave O'Connor
bd4b94a48c Remove legacy requirements-osbs (#1309)
Signed-off-by: Dave O'Connor <doconnor@redhat.com>
2022-05-10 09:10:47 -04:00
Kenny Lee Sin Cheong
9d8ff6b1c1 quota: address possible integrity exception if computing size concurrently (PROJQUAY-3752) (#1303) 2022-05-09 15:28:01 -04:00
Brandon Caton
3a63fd7187 builders: Add dnsPolicy option (PROJQUAY-3755) (#1305)
Some clusters use `dnsPolicy: ClusterFirst` while we have the field hardcoded to `Default`. This change allows the field to be configurable.
2022-05-09 11:15:31 -04:00
Jonathan King
ad4bb6f185 compliance: Move export screening to RHSSO class (PROJQUAY-2056) (#1302)
- Created a RHSSO class
- Put export compliance logic in class override
2022-05-04 16:30:44 -04:00
Syed Mushtaq Ahmed
6effd4cdec auth: Add state to the oauthorize redirect (PROJQUAY-3648) (#1301)
Fixes issue where state is not passed to the redirect in an Oauth App
2022-05-04 11:11:19 -04:00
Kenny Lee Sin Cheong
3acc55b96c secscan: split the recent manifest chunk of work into multiple batch (PROJQUAY-3501) (#1300)
Split the work of indexing the recent manifests iterator into multiple
batches. This can reduce how often duplicate work happens when
allowing multiple workers to work on the same chunk of the table.
2022-05-04 11:02:56 -04:00
Kenny Lee Sin Cheong
f3c3916bc7 secscan: add option to skip recent manifest batch lock (PROJQUAY-3501) (#1299)
Having only one worker index recent manifest doesn't keep up with the
rate new manifests being pushed, given the time it takes for an index
request to complete. Adding the option to bypass the global lock
allows for more workers, but also increase the chance of duplicate work.
2022-05-03 11:21:23 -04:00
Dave O'Connor
5d5b2b5514 Add support for QUAY_VERSION env variable (#1298)
Signed-off-by: Dave O'Connor <doconnor@redhat.com>
2022-05-02 11:32:32 -04:00
Sunandadadi
a983884e0f Quota API: Add super user permissions on Organization endpoints (PROJQUAY-3742) (#1296)
* Quota API: Add super user permissions on Organization endpoints (PROJQUAY-3742)

* Removing super user permissions form userquota endpoints

* Adding super user permission checks

* Moving super user scope decorator to class level
2022-05-02 10:36:02 -04:00
Brandon Caton
9557cb9abb builders: Set default kubernetesPodman image (PROJQUAY-3586) (#1245)
Update kubernetesPodman builders default image with the production image.
2022-05-02 10:34:46 -04:00
Brandon Caton
d8ae686f9b builders: Persist build pod when DEBUG is true (PROJQUAY-3710) (#1297)
In the previous kubernetes executor the build job was persisted in DEBUG mode due to the virtual machine in the pod never exiting. This kept the job alive for users to view the debug information. The `kubernetesPodman` executor does not run the VM so it will be cleaned up due to `ttlSecondsAfterFinished` being set on the job. This change prevents the `ttlSecondsAfterFinished` field from being set when DEBUG is true, allowing the pod to stay alive to retrieve the logs.
2022-04-29 16:24:03 -04:00
Kenny Lee Sin Cheong
c2ceda5a26 chore: various small changes to fix exceptions, remove unused code (#1295) 2022-04-29 15:11:15 -04:00
Sunandadadi
a57594cf01 Quota UI: Fix quota input value (PROJQUAY-3691) (#1293)
* Quota UI: Fix quota input value (PROJQUAY-3691)

* Setting White background color for input boxes
2022-04-28 16:16:13 -04:00
Syed Mushtaq Ahmed
edb4e72166 auth: Add state to the oauthorize page (PROJQUAY-3648) (#1292)
Add the `state` parameter to the oauth permissions page
that's rendered when asking user for permission.
2022-04-28 11:58:23 -04:00
kwestpharedhat
f4093b0db5 Quota: fix caching (PROJQUAY-3660) (#1291)
* fix caching

* fix caching race condition
2022-04-28 08:47:42 -05:00
Jonathan King
3140a62e01 Revert "Revert "quayio: Add export compliance service to Red Hat SSO (PROJQUAY-2056) (#1239)" (#1273)" (#1289)
This reverts commit 8324586e4c.
2022-04-27 13:16:53 -07:00
Sunandadadi
1e65bff9fc Quota: Raising exception when entered quota size is too big (PROJQUAY-3702) (#1290)
* Quota: Raising exception when entered quota size is too big (PROJQUAY-3702)

* fixing formatting

* Updated error message
2022-04-27 15:28:36 -04:00