Skip to content

[ENG-6835] [ENG-8059] [ENG-8289] VRL Project PR - GV#308

Merged
cslzchen merged 136 commits into
developfrom
feature/verified-resource-linking
Jul 7, 2025
Merged

[ENG-6835] [ENG-8059] [ENG-8289] VRL Project PR - GV#308
cslzchen merged 136 commits into
developfrom
feature/verified-resource-linking

Conversation

@cslzchen

@cslzchen cslzchen commented Jun 26, 2025

Copy link
Copy Markdown
Collaborator

Ticket

Purpose

Verified Resource Linking - GV Part

Changes

VRL

  • A new add-on type LINK
  • A new LINK add-on implementation: Dataverse
  • GV admin support for configure this new type of add-on and implementations
  • GV-OSF communication via shared message queue: GV Part
  • Implement node logs for verified links
  • GV informs OSF for both SHARE and Datacite metadata update whenever a linked service is configured and/or updated
  • New GV endpoint for BE (osf.io) to retrieve all verified links for a given node
  • Updated local setup command to create verified link
  • Unit tests

Bonus

  • GV session optimization: GV directly accesses existing OSF session in Redis when available
  • Fix existing auth / token issues in GV
  • Implement node logs for storage and citation add-ons
  • PR Template

Side Effects

N/A

API Documentation

WIP: Swagger API

QE Notes

See project QA plan and tickets

CE Notes

WIP: Release playbook

opaduchak and others added 30 commits March 28, 2025 15:30
Co-authored-by: Yuhuai Liu <yuhuai@cos.io>
[ENG-7568][ENG-7569][ENG-7570][ENG-7571] Added external_service, configured_addon, authorized_account
[ENG-7757][ENG-7310] 3.2.3 GV: Enable GV->OSF messaging - (GV part)
@cslzchen
cslzchen marked this pull request as ready for review June 27, 2025 02:30
@cslzchen
cslzchen requested a review from brianjgeiger June 27, 2025 02:54

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, let's make sure we updated settings for all servers

  • Production (during prod release)
  • Test (during test server deployment)
  • Staging 1 partial update (after PR merge)
  • Staging 2 (after PR merge)
  • Staging 3 (after PR merge)
  • Staging 4 (after PR merge)
  • Staging 5 (after PR merge)

Second, we need to manually run DB migrations (prod only)

Third, we need to set-up Dataverse (LINK type) for at least test and prod after respective deployment.

Comment thread app/settings.py
SESSION_COOKIE_HTTPONLY = env.SESSION_COOKIE_HTTPONLY
SESSION_COOKIE_SAMESITE = env.SESSION_COOKIE_SAMESITE
OSF_AUTH_COOKIE_SECRET = env.OSF_AUTH_COOKIE_SECRET
REDIS_HOST = env.REDIS_HOST

@cslzchen cslzchen Jul 7, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GV Deployment notes: REDIS_HOST should be the same as what OSF uses for REDIS_HOST. This maybe different for each server.

Comment thread app/settings.py
Comment on lines +65 to +75
OSF_AUTH_COOKIE_NAME = env.OSF_AUTH_COOKIE_NAME
OSF_BASE_URL = env.OSF_BASE_URL.rstrip("/")
OSF_API_BASE_URL = env.OSF_API_BASE_URL.rstrip("/")
ALLOWED_RESOURCE_URI_PREFIXES = {OSF_BASE_URL}
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
SESSION_COOKIE_NAME = env.OSF_AUTH_COOKIE_NAME
SESSION_COOKIE_DOMAIN = env.SESSION_COOKIE_DOMAIN
SESSION_COOKIE_SECURE = env.SESSION_COOKIE_SECURE
SESSION_COOKIE_HTTPONLY = env.SESSION_COOKIE_HTTPONLY
SESSION_COOKIE_SAMESITE = env.SESSION_COOKIE_SAMESITE
OSF_AUTH_COOKIE_SECRET = env.OSF_AUTH_COOKIE_SECRET

@cslzchen cslzchen Jul 7, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GV Deployment notes: cookie settings should be the same as their OSF settings for each server, which might be different for different servers.

  • OSF_AUTH_COOKIE_NAME: set to osf.io's value for COOKIE_NAME
  • SESSION_COOKIE_DOMAIN: set to osf.io's value for OSF_COOKIE_DOMAIN`
  • SESSION_COOKIE_SECURE: set to osf.io's value for SESSION_COOKIE_SECURE
  • SESSION_COOKIE_HTTPONLY: set to osf.io's value for SESSION_COOKIE_HTTPONLY
  • SESSION_COOKIE_SAMESITE: set to osf.io's value for SESSION_COOKIE_SAMESITE
  • OSF_AUTH_COOKIE_SECRET: set to osf.io's value for SECRET_KEY

@cslzchen
cslzchen merged commit d010e48 into develop Jul 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants