Skip to content

CMR-11629: As a CMR operator I want the CMR to validate EDL JWTs with EDL when local verification is off - #2538

Open
daniel-zamora wants to merge 3 commits into
masterfrom
CMR-11629
Open

daniel-zamora wants to merge 3 commits into
masterfrom
CMR-11629

Conversation

@daniel-zamora

@daniel-zamora daniel-zamora commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Overview

What is the objective?

With CMR_LOCAL_EDL_VERIFICATION false, CMR sent EDL JWTs to the retired ECHO REST token endpoint, so every JWT was rejected. This validates JWTs with EDL when local verification is off.

What are the changes?

  • With local verification off, tokens/get-user-id validates JWTs with EDL token introspection (POST /oauth/introspect, Basic auth with CMR's EDL app credentials) instead of the legacy call.
  • The user comes from the introspection response's uid, username or sub; active: false is treated as an invalid token.
  • Results are cached per token in the Launchpad user cache, with the same error handling as Launchpad tokens. New CMR_EDL_TOKEN_CACHE_SECONDS, default 300.
  • The legacy ECHO REST request log line scrubs tokens and no longer logs connection settings.
  • No behavior change with CMR_LOCAL_EDL_VERIFICATION true, the default.

What areas of the application does this impact?

  • transmit-lib (token resolution in search, ingest and access-control)

Required Checklist

  • New and existing unit and int tests pass locally and remotely
  • clj-kondo has been run locally and all errors in changed files are corrected
  • I have commented my code, particularly in hard-to-understand areas
  • I have made changes to the documentation (if necessary)
  • My changes generate no new warnings

Additional Checklist

  • I have removed unnecessary/dead code and imports in files I have changed
  • I have cleaned up integration tests by doing one or more of the following:
    • migrated any are2 tests to are3 in files I have changed
    • de-duped, consolidated, removed dead int tests
    • transformed applicable int tests into unit tests
    • reduced number of system state resets by updating fixtures. Ex) (use-fixtures :each (ingest/reset-fixture {})) to be :once instead of :each

@daniel-zamora daniel-zamora changed the title Cmr 11629 CMR-11629: As a CMR operator I want the CMR to validate EDL JWTs with EDL when local verification is off Nov 14, 2026
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.

1 participant