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

RAS Authentication Updates #1864

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ec88bb8
branch off of david's 3.11 changes with my redis changes
willronchetti Sep 29, 2023
4c4c394
update master
willronchetti Oct 17, 2023
b127d65
unit test /login to initiate ras workflow
willronchetti Oct 18, 2023
b56f325
Merge branch 'master' into py311_redis
utku-ozturk Oct 18, 2023
286a806
lock new snovault, update test to use GET
willronchetti Oct 19, 2023
333eaf8
Merge branch 'py311_redis' of https://github.com/4dn-dcic/fourfront i…
willronchetti Oct 19, 2023
09734b8
content security policy for RAS
utku-ozturk Oct 31, 2023
713c6e0
auth0 options initialization
utku-ozturk Oct 31, 2023
14a5f82
bump spc, snovault and dcicutils
utku-ozturk Oct 31, 2023
8c4b832
misc
utku-ozturk Oct 31, 2023
bc53426
authentication
utku-ozturk Oct 31, 2023
4796675
RAS public key support
utku-ozturk Nov 5, 2023
61d03f8
upgrade snovault
utku-ozturk Nov 6, 2023
1c8d258
update ini file to take auth0 domain
willronchetti Nov 6, 2023
a736e6a
test auth0 domain
utku-ozturk Nov 7, 2023
52aee6c
debug info for auth0 config
willronchetti Nov 7, 2023
b244d9c
Merge branch 'ras_integration' of https://github.com/4dn-dcic/fourfro…
willronchetti Nov 7, 2023
bae0020
bring utils fix
willronchetti Nov 7, 2023
5e75456
ras - new user registration
utku-ozturk Nov 7, 2023
7811c66
upgrade snovault
utku-ozturk Nov 7, 2023
2f28b2d
switch access key check from encoded to snovault
utku-ozturk Nov 8, 2023
e0cb704
Merge branch 'master' into ras_integration
utku-ozturk Nov 17, 2023
3b9ef90
snovault and dcicutils upgrade
utku-ozturk Nov 17, 2023
cc1b318
spc upgrade
utku-ozturk Nov 17, 2023
d092927
public key url
utku-ozturk Nov 18, 2023
9c1ac41
spc upgrade
utku-ozturk Nov 18, 2023
fd709ab
add filtered omitted type facet terms
utku-ozturk Nov 17, 2023
a0abe5e
fix typo
utku-ozturk Nov 16, 2023
c27d299
auth init
utku-ozturk Nov 20, 2023
b5c6168
remove unnecessary print statements
utku-ozturk Nov 20, 2023
ce2a53a
simplify auth options of RAS
utku-ozturk Nov 21, 2023
6ed0933
SPC upgrade
utku-ozturk Nov 21, 2023
592ee56
remove mostly duplicate auth content
utku-ozturk Nov 22, 2023
fd6a40e
remove debug statements
utku-ozturk Nov 22, 2023
2f57545
more docstring for jwk_to_pem
utku-ozturk Nov 22, 2023
e05efec
remove unused submit4dn package
utku-ozturk Nov 23, 2023
3a7428c
spc upgrade (0.1.72b6)
utku-ozturk Dec 14, 2023
174d510
return url and registration view updates
utku-ozturk Dec 14, 2023
83f9761
Merge branch 'master' into ras_integration
utku-ozturk Feb 12, 2024
5bb5cb0
poetry.lock
utku-ozturk Feb 12, 2024
0792437
missing prop href
utku-ozturk Feb 13, 2024
ad16c23
Merge branch 'master' into ras_integration
utku-ozturk May 1, 2024
684de66
poetry.lock update
utku-ozturk May 1, 2024
037491d
Merge branch 'master' into ras_integration
utku-ozturk Sep 15, 2024
fcfdab0
delete breaking insert field
utku-ozturk Sep 15, 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/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
node-version: ${{ matrix.node_version }}
check-latest: false

- name: Install/Link Postgres
- name: Install/Link Postgres and Redis
if: ${{ matrix.test_type == 'NPM' || matrix.test_type == 'UNIT' }}
run: |
sudo apt-get install curl ca-certificates gnupg
Expand All @@ -54,6 +54,9 @@ jobs:
sudo apt-get install postgresql-14 postgresql-client-14
echo "/usr/lib/postgresql/14/bin" >> $GITHUB_PATH
sudo ln -s /usr/lib/postgresql/14/bin/initdb /usr/local/bin/initdb
sudo apt install redis-server
sudo ln -s /usr/bin/redis-server /usr/local/bin/redis-server
sudo ln -s /usr/bin/redis-cli /usr/local/bin/redis-cli
- name: Install Deps
if: ${{ matrix.test_type == 'NPM' || matrix.test_type == 'UNIT' }}
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.coverage
coverage.xml
beanstalk.cfg
dump.rdb
/coverage
/.installed.cfg
/.mr.developer.cfg
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ kibana-stop:

kill: # kills back-end processes associated with the application. Use with care.
pkill -f postgres &
pkill -f elasticsearch &
pkill -f opensearch &
pkill -f moto_server &
pkill -f redis-server &

clean-python:
@echo -n "Are you sure? This will wipe all libraries installed on this virtualenv [y/N] " && read ans && [ $${ans:-N} = y ]
Expand Down
6 changes: 3 additions & 3 deletions base.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ multiauth.policy.remoteuser.use = encoded.authentication.NamespacedAuthenticatio
multiauth.policy.remoteuser.base = pyramid.authentication.RemoteUserAuthenticationPolicy

multiauth.policy.accesskey.namespace = accesskey
multiauth.policy.accesskey.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.accesskey.base = encoded.authentication.BasicAuthAuthenticationPolicy
multiauth.policy.accesskey.check = encoded.authentication.basic_auth_check
multiauth.policy.accesskey.use = snovault.authentication.NamespacedAuthenticationPolicy
multiauth.policy.accesskey.base = snovault.authentication.BasicAuthAuthenticationPolicy
multiauth.policy.accesskey.check = snovault.authentication.basic_auth_check

multiauth.policy.auth0.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.auth0.namespace = auth0
Expand Down
5 changes: 4 additions & 1 deletion deploy/docker/production/fourfront_any_alpha.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[app:app]
use = config:base.ini#app
session.secret = %(here)s/session-secret.b64
auth0.domain = ${AUTH0_DOMAIN}
auth0.client = ${AUTH0_CLIENT}
auth0.secret = ${AUTH0_SECRET}
file_upload_bucket = ${FILE_UPLOAD_BUCKET}
Expand All @@ -12,7 +13,6 @@ identity = ${IDENTITY}
tibanna_output_bucket = ${TIBANNA_OUTPUT_BUCKET}
application_bucket_prefix = ${APPLICATION_BUCKET_PREFIX}
foursight_bucket_prefix = ${FOURSIGHT_BUCKET_PREFIX}
# blob_store_profile_name = encoded-4dn-files
accession_factory = encoded.server_defaults.enc_accession
elasticsearch.server = ${ES_SERVER}
snovault.app_version = ask-pip
Expand All @@ -31,6 +31,9 @@ elasticsearch.aws_auth = true
production = true
load_test_data = snovault.loadxl:load_${DATA_SET}_data
sqlalchemy.url = postgresql://${RDS_USERNAME}:${RDS_PASSWORD}@${RDS_HOSTNAME}:${RDS_PORT}/${RDS_DB_NAME}
redis.server = ${REDIS_SERVER}
g.recaptcha.key = ${g.recaptcha.key}
g.recaptcha.secret = ${g.recaptcha.secret}

[composite:indexer]
use = config:base.ini#indexer
Expand Down
1 change: 1 addition & 0 deletions development.ini.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[app:app]
use = config:base.ini#app
sqlalchemy.url = postgresql://postgres@localhost:5441/postgres?host=/tmp/snovault/pgdata
redis.server = redis://localhost:6379
blob_bucket = encoded-4dn-blobs
metadata_bundles_bucket = metadata-bundles-fourfront-local-test
load_test_only = true
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Install or update dependencies::
$ brew install libevent libmagic libxml2 libxslt openssl postgresql graphviz nginx python3
$ brew install freetype libjpeg libtiff littlecms webp # Required by Pillow
$ brew cask install adoptopenjdk8
$ brew install opensearch node@16
$ brew install opensearch node@16 redis

NOTES:

Expand Down
Loading
Loading