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

upgrade catalog-next to ckan core 2.10.5 #1451

Merged
merged 75 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
311a047
bump to 29
robert-bryson Jun 28, 2024
72343c2
extended the snyk exception date
Jin-Sun-tts Jul 2, 2024
46601eb
Merge pull request #1387 from GSA/update-snyk-exception-date
jbrown-xentity Jul 3, 2024
7647baa
Merge branch 'main' into bump_4743
robert-bryson Jul 3, 2024
afb31f1
Merge pull request #1389 from GSA/bump_4743
jbrown-xentity Jul 3, 2024
75e30ad
Update Pip Requirements
datagov-bot Jul 7, 2024
e6b43b3
Merge pull request #1386 from GSA/requirement-patches
rshewitt Jul 8, 2024
cf2a687
Update Pip Requirements
datagov-bot Jul 8, 2024
d7afedb
bump
rshewitt Jul 8, 2024
ed07908
Bump datagov theme to 0.2.30
tdlowden Jul 8, 2024
d3ebd80
Merge pull request #1394 from GSA/tdlowden-patch-1
btylerburton Jul 8, 2024
e791531
downgrade to previous
rshewitt Jul 8, 2024
13bb253
Merge pull request #1392 from GSA/requirement-patches
rshewitt Jul 8, 2024
912809f
fix: tools/harvest_source_import/dev-requirements.txt to reduce vulne…
snyk-bot Jul 10, 2024
0e6d860
fix: tools/harvest_source_import/requirements.txt to reduce vulnerabi…
snyk-bot Jul 10, 2024
4d44788
Merge pull request #1396 from GSA/snyk-fix-990c98e566c2de78a6ce200f2c…
rshewitt Jul 10, 2024
f6e665e
fix: tools/harvest_source_import/dev-requirements.txt to reduce vulne…
snyk-bot Jul 10, 2024
9357ba1
Update requirements.txt
jbrown-xentity Jul 15, 2024
ff86b1b
Merge pull request #1401 from GSA/theme-bump
robert-bryson Jul 15, 2024
5946fa6
setuptools>=70.0.0
FuhuXia Jul 16, 2024
4779017
snyk test in PR
FuhuXia Jul 18, 2024
5d7d06f
Merge pull request #1403 from GSA/snyk-test
FuhuXia Jul 18, 2024
4d25692
Merge branch 'main' into setuptools-70
FuhuXia Jul 18, 2024
2497112
Trigger Build
FuhuXia Jul 18, 2024
29a7f3b
Merge branch 'main' into snyk-fix-990c98e566c2de78a6ce200f2c51590c
FuhuXia Jul 18, 2024
93a349d
try dcat
FuhuXia Jul 18, 2024
57bd8f6
Merge pull request #1402 from GSA/setuptools-70
btylerburton Jul 18, 2024
bacbbac
ping ckanext-dcat to v1.7.0
FuhuXia Jul 18, 2024
dd5961f
Merge pull request #1405 from GSA/dcat-v1-7-0
jbrown-xentity Jul 18, 2024
36d28fd
Merge branch 'main' into snyk-fix-6a94735f5ceb5104409ffaf618cd8806
FuhuXia Jul 19, 2024
bf62db7
Merge pull request #1397 from GSA/snyk-fix-6a94735f5ceb5104409ffaf618…
FuhuXia Jul 19, 2024
e0f6f31
fix: tools/harvest_source_import/requirements.txt to reduce vulnerabi…
snyk-bot Jul 20, 2024
d8cf499
Merge pull request #1410 from GSA/snyk-fix-6a94735f5ceb5104409ffaf618…
FuhuXia Jul 22, 2024
32d77cc
Merge branch 'main' into snyk-fix-990c98e566c2de78a6ce200f2c51590c
FuhuXia Jul 22, 2024
03d334b
Merge pull request #1398 from GSA/snyk-fix-990c98e566c2de78a6ce200f2c…
FuhuXia Jul 22, 2024
8db0f8d
bump ckanext-datagovtheme
FuhuXia Jul 24, 2024
79b04c7
Merge branch 'main' into bump-theme
FuhuXia Jul 24, 2024
e0053a1
Merge pull request #1416 from GSA/bump-theme
Jin-Sun-tts Jul 24, 2024
6c3791e
Update ckan.ini
jbrown-xentity Jul 30, 2024
250d004
update element query
rshewitt Jul 30, 2024
4edc9f9
Revert "update element query"
btylerburton Jul 30, 2024
ae9eb29
find modal by class
btylerburton Jul 30, 2024
d536444
Merge pull request #1417 from GSA/feature/secure-cookie
jbrown-xentity Jul 31, 2024
ca48f80
Change cookie to lax
jbrown-xentity Jul 31, 2024
0165e2d
Merge pull request #1418 from GSA/cookie-sec-bug
btylerburton Jul 31, 2024
7485cf9
extended the date for some ignored issues
Jin-Sun-tts Aug 5, 2024
8f7d268
Merge pull request #1422 from GSA/snyk-fix-08-05
jbrown-xentity Aug 5, 2024
239754c
use spatial fork for iis folder fix
FuhuXia Aug 9, 2024
f8dae7d
Merge pull request #1425 from GSA/spatial-iis-fork
FuhuXia Aug 9, 2024
31c9c0d
bump version of datagovtheme
btylerburton Aug 12, 2024
28f75af
Merge pull request #1427 from GSA/bump-datagovtheme
btylerburton Aug 12, 2024
2b876e6
bump ckanext-spatial
FuhuXia Aug 13, 2024
a861732
Merge pull request #1428 from GSA/waf-iis
FuhuXia Aug 15, 2024
e39a801
add snyk exceptions for ckan 2.10.5
FuhuXia Aug 26, 2024
a11518f
fix cypress test
FuhuXia Aug 26, 2024
ca16b2c
Merge pull request #1435 from GSA/snyk-exception
FuhuXia Aug 26, 2024
7020bff
temporarily disable staging restart for debugging
FuhuXia Aug 27, 2024
8fc629d
Merge branch 'main' into stop-restart-for-debug
FuhuXia Aug 27, 2024
e63530a
instance 1 for gather and fetch staging
FuhuXia Aug 27, 2024
0fc2342
Merge pull request #1437 from GSA/stop-restart-for-debug
FuhuXia Aug 27, 2024
16860b1
Merge branch 'main' into debug
FuhuXia Aug 27, 2024
f80485e
Merge pull request #1439 from GSA/debug
btylerburton Aug 27, 2024
a89e1f8
Revert "temporarily disable staging restart for debugging"
FuhuXia Aug 28, 2024
20ae094
Merge pull request #1442 from GSA/revert-debug
FuhuXia Aug 28, 2024
c24efa9
use ckan core with solr fix
FuhuXia Aug 28, 2024
2ef354a
Merge pull request #1444 from GSA/solr-200
btylerburton Aug 28, 2024
d6e250b
update ckan core for solr 200 fix
FuhuXia Aug 30, 2024
7786ee9
anchor to button, now back to anchor
FuhuXia Aug 30, 2024
ee327e8
Merge pull request #1447 from GSA/solr-200
btylerburton Aug 30, 2024
d626499
ckan 2.10.5
FuhuXia Sep 3, 2024
61dafe0
update requirements
FuhuXia Sep 3, 2024
2a7a3c8
snyk cleanup
FuhuXia Sep 3, 2024
04abf66
freeze setuptools to 71
FuhuXia Sep 4, 2024
b40a1fb
Merge pull request #1449 from GSA/ckan-2-10-5
FuhuXia Sep 5, 2024
08178af
Merge branch 'main' into catalog-next
FuhuXia Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: Check for Snyk Vulnerabilities

on:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 12 * * *' # every day at 12pm UTC
Expand Down Expand Up @@ -56,7 +59,7 @@ jobs:
# Fail so that PR is created
exit 1
- name: Create Pull Request
if: ${{ failure() }}
if: ${{ failure() && github.event_name == 'schedule' }}
id: scpr
uses: peter-evans/create-pull-request@v5
with:
Expand Down
36 changes: 9 additions & 27 deletions ckan/.snyk
Original file line number Diff line number Diff line change
Expand Up @@ -7,77 +7,59 @@ ignore:
reason: >-
No remediation available yet; Not affecting us since the storage is
not accessible to any other client
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2022-12-08T16:20:58.023Z
SNYK-PYTHON-WERKZEUG-6035177:
- '*':
reason: >-
Upgrade path is complex, Issue tracked in github:
https://github.com/GSA/data.gov/issues/4217
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2023-10-30T16:50:58.023Z
SNYK-PYTHON-WERKZEUG-3319936:
- '*':
reason: >-
Upgrade path is complex, Issue tracked in github:
https://github.com/GSA/data.gov/issues/4217
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2023-02-15T16:20:58.023Z
SNYK-PYTHON-WERKZEUG-3319935:
- '*':
reason: >-
Upgrade path is complex, Issue tracked in github:
https://github.com/GSA/data.gov/issues/4217
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2023-02-15T16:20:58.023Z
SNYK-PYTHON-FLASK-5490129:
- '*':
reason: >-
Upgrade path is complex, Issue tracked in github:
https://github.com/GSA/data.gov/issues/4303
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2023-05-08T16:20:58.023Z
SNYK-PYTHON-PYOPENSSL-6149520:
- '*':
reason: >-
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4532
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2024-01-08T00:00:00.000Z
SNYK-PYTHON-PYOPENSSL-6157250:
- '*':
reason: >-
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4591
expires: 2024-07-31T19:29:54.032Z
expires: 2024-11-30T19:29:54.032Z
created: 2024-01-14T00:00:00.000Z
SNYK-PYTHON-CRYPTOGRAPHY-6592767:
- '*':
reason: >-
No remediation available yet; Low severity.
expires: 2024-10-24T17:21:30.083Z
created: 2024-04-24T17:21:30.089Z
SNYK-PYTHON-PYOPENSSL-6592766:
- '*':
reason: >-
No remediation available yet; Low severity.
expires: 2024-10-24T17:24:47.251Z
expires: 2024-11-30T17:24:47.251Z
created: 2024-04-24T17:24:47.257Z
SNYK-PYTHON-WERKZEUG-6808933:
- '*':
reason: >-
Not affecting us since no debugger is enabled in cloud.gov apps
expires: 2024-06-31T16:20:58.017Z
SNYK-PYTHON-CRYPTOGRAPHY-7161587:
- '*':
reason: >-
No remediation available yet. Issue tracked in github:
https://github.com/GSA/data.gov/issues/4781
expires: 2024-06-31T16:20:58.017Z
SNYK-PYTHON-PYOPENSSL-7161590:
- '*':
reason: >-
No remediation available yet. Issue tracked in github:
https://github.com/GSA/data.gov/issues/4782
expires: 2024-06-31T16:20:58.017Z
expires: 2024-11-30T16:20:58.017Z
patch: {}
20 changes: 12 additions & 8 deletions ckan/requirements.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CKAN requirements and extensions
git+https://github.com/GSA/ckan.git@ckan-2-10-4-fork#egg=ckan
git+https://github.com/ckan/ckanext-dcat@master#egg=ckanext-dcat
git+https://github.com/GSA/ckan.git@ckan-2-10-5-fork#egg=ckan
git+https://github.com/ckan/ckanext-dcat@v1.7.0#egg=ckanext-dcat
-e git+https://github.com/GSA/ckanext-harvest.git@release-v1-5-6#egg=ckanext-harvest
-e git+https://github.com/ckan/ckanext-spatial.git@v2.1.1#egg=ckanext-spatial
-e git+https://github.com/GSA/ckanext-spatial.git@iis-dir#egg=ckanext-spatial
git+https://github.com/GSA/ckanext-saml2auth.git@datagov#egg=ckanext-saml2auth
# -e git+https://github.com/ckan/ckanext-qa.git@master#egg=ckanext-qa
-e git+https://github.com/ckan/ckanext-archiver.git@master#egg=ckanext-archiver
Expand Down Expand Up @@ -77,11 +77,12 @@ Flask-WTF==1.0.1
flask-multistatic==1.0
greenlet==2.0.2
#Jinja2==3.1.2
PyJWT==2.4.0
Markdown==3.4.1
packaging==24.1
passlib==1.7.4
polib==1.1.1
psycopg2==2.9.3
PyJWT==2.4.0
python-magic==0.4.27
pysolr==3.9.0
python-dateutil==2.8.2
Expand Down Expand Up @@ -112,14 +113,13 @@ gunicorn

# New Relic
newrelic
certifi>=2022.12.7
redis>=4.5.4
requests~=2.32.2
requests~=2.32.3

# avoid ImportError error https://github.com/GSA/data.gov/issues/4396
importlib-resources<6.0
gevent>=23.9.0
jinja2>=3.1.3
jinja2>=3.1.4
cryptography>=42.0.4

# lxml beyond 5.1.0 show error module 'lxml.etree' has no attribute '_ElementStringResult'
Expand All @@ -131,4 +131,8 @@ lxml==5.1.0
Werkzeug==2.0.3

# pin numpy as 2.x causes array import issues w/ shapely
numpy==1.26.4
numpy==1.26.4
certifi>=2024.7.4

# snyk finding
setuptools~=71.0.3
40 changes: 20 additions & 20 deletions ckan/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ Babel==2.10.3
Beaker==1.11.0
bleach==5.0.1
blinker==1.5
boto3==1.34.128
botocore==1.34.128
certifi==2024.6.2
cffi==1.16.0
boto3==1.35.12
botocore==1.35.12
certifi==2024.8.30
cffi==1.17.0
chardet==5.2.0
charset-normalizer==3.3.2
ckan @ git+https://github.com/GSA/ckan.git@7159a872ba740069b768fcd2a43cde81a57ee492
ckan @ git+https://github.com/GSA/ckan.git@8c4a517efeac80db098cc6ba144cb742bbeca194
-e git+https://github.com/ckan/ckanext-archiver.git@cbfadf9fbf10405958fdef9f77a7faedc05aa20b#egg=ckanext_archiver
-e git+https://github.com/GSA/ckanext-datagovcatalog.git@harvest-next#egg=ckanext_datagovcatalog
-e git+https://github.com/GSA/ckanext-datagovtheme.git@harvest-next#egg=ckanext_datagovtheme
ckanext-datajson==0.1.25
ckanext-dcat @ git+https://github.com/ckan/ckanext-dcat@83495ba99cba17398ba8feb1bc0da486f3798584
ckanext-dcat @ git+https://github.com/ckan/ckanext-dcat@b8ebf24004cd3f3edb7f9d01c87c20259c102093
ckanext-envvars==0.0.3
ckanext-geodatagov==0.2.9
-e git+https://github.com/GSA/ckanext-harvest.git@9039e7a5d563a40177d62487758b366ab77434b6#egg=ckanext_harvest
ckanext-metrics-dashboard==0.1.6
-e git+https://github.com/ckan/ckanext-report.git@3588577f46d17e5f6ef163bb984d0e7016daef71#egg=ckanext_report
ckanext-saml2auth @ git+https://github.com/GSA/ckanext-saml2auth.git@387cfc1c6a7619f670bf387384f2634516de5844
-e git+https://github.com/ckan/ckanext-spatial.git@938308469892e4bcf7389cb4adee5ccdd5a0ccca#egg=ckanext_spatial
-e git+https://github.com/GSA/ckanext-spatial.git@3d0a375fe98edc70a0d12efd2f4ac54f0e05b597#egg=ckanext_spatial
ckantoolkit==0.0.7
click==8.1.3
cryptography==42.0.8
cryptography==43.0.1
defusedxml==0.7.1
dominate==2.7.0
elementpath==4.4.0
Expand All @@ -41,9 +41,9 @@ geojson==3.0.1
geomet==1.1.0
gevent==24.2.1
greenlet==2.0.2
gunicorn==22.0.0
gunicorn==23.0.0
html5lib==1.1
idna==3.7
idna==3.8
importlib-resources==5.13.0
isodate==0.6.1
itsdangerous==2.2.0
Expand All @@ -56,25 +56,25 @@ Mako==1.3.5
Markdown==3.4.1
MarkupSafe==2.1.5
messytables==0.15.2
mypy==1.10.0
mypy==1.10.1
mypy-extensions==1.0.0
newrelic==9.11.0
newrelic==9.13.0
nose==1.3.7
numpy==1.26.4
OWSLib==0.31.0
packaging==24.1
passlib==1.7.4
pika==1.2.1
pip==24.0
pip==24.1
ply==3.11
polib==1.1.1
progressbar==2.5
progressbar2==3.53.3
psycopg2==2.9.3
pycparser==2.22
PyJWT==2.4.0
pyOpenSSL==24.1.0
pyparsing==3.1.2
pyOpenSSL==24.2.1
pyparsing==3.1.4
pyproj==3.4.1
pysaml2==7.0.1
pysolr==3.9.0
Expand All @@ -87,13 +87,13 @@ PyUtilib==6.0.0
PyYAML==6.0.1
PyZ3950 @ git+https://github.com/danizen/PyZ3950@6d44a4ab85c8bda3a7542c2c9efdfad46c830219
rdflib==6.1.1
redis==5.0.6
redis==5.0.8
requests==2.32.3
rfc3987==1.3.8
rq==1.11.0
s3transfer==0.10.1
s3transfer==0.10.2
sansjson==0.3.0
setuptools==67.1.0
setuptools==71.0.4
shapely==2.0.1
simplejson==3.18.0
six==1.16.0
Expand All @@ -105,13 +105,13 @@ typing_extensions==4.3.0
tzdata==2024.1
tzlocal==4.2
urllib3==2.2.2
watchdog==4.0.1
watchdog==5.0.2
webassets==2.0
webencodings==0.5.1
Werkzeug==2.0.3
wheel==0.42.0
WTForms==3.1.2
xlrd==2.0.1
xmlschema==3.3.1
xmlschema==3.3.2
zope.event==5.0
zope.interface==5.4.0
2 changes: 2 additions & 0 deletions ckan/setup/ckan.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ beaker.session.secret = TShFJxS41xNdVJAxQsoIEm5zu
beaker.session.type=ext:database
#beaker.session.url=postgresql://ckan:ckan@db/ckan
beaker.session.cookie_expires=true
beaker.session.secure = True
beaker.session.samesite = Lax
beaker.session.url = $CKAN___BEAKER__SESSION__URL
beaker.session.timeout=900

Expand Down
2 changes: 1 addition & 1 deletion e2e/cypress/integration/ckan_extensions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('CKAN Extensions', () => {
it('Uses CKAN 2.10', () => {
cy.request('/api/action/status_show').should((response) => {
expect(response.body).to.have.property('success', true);
expect(response.body.result).to.have.property('ckan_version', '2.10.4');
expect(response.body.result).to.have.property('ckan_version', '2.10.5');
});
});

Expand Down
2 changes: 1 addition & 1 deletion proxy/public/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" > <!--<![endif]-->
<head>
<meta name="generator" content="ckan 2.10.4" />
<meta name="generator" content="ckan 2.10.5" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>500 Web server unavailable</title>

Expand Down
2 changes: 1 addition & 1 deletion proxy/public/maintenance.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" > <!--<![endif]-->
<head>
<meta name="generator" content="ckan 2.10.4" />
<meta name="generator" content="ckan 2.10.5" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>503 Site under maintenance</title>

Expand Down
2 changes: 1 addition & 1 deletion proxy/public/sitedown.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" > <!--<![endif]-->
<head>
<meta name="generator" content="ckan 2.10.4" />
<meta name="generator" content="ckan 2.10.5" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>503 Site Temporarily Down</title>

Expand Down
2 changes: 1 addition & 1 deletion proxy/public/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" > <!--<![endif]-->
<head>
<meta name="generator" content="ckan 2.10.4" />
<meta name="generator" content="ckan 2.10.5" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error 404 - Catalog</title>

Expand Down
5 changes: 5 additions & 0 deletions tools/harvest_source_import/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-r requirements.txt
pytest>=5.4.2
pytest-vcr>=1.0.2
flake8>=3.8.1
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
4 changes: 4 additions & 0 deletions tools/harvest_source_import/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
requests>=2.32.0
pytest>=5.4.2
pytest-vcr>=1.0.2
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
Loading