Skip to content

feat: add M2M auth flow to stitch-client and ensure appropriate API handling#86

Draft
mbarlow12 wants to merge 8 commits into
mainfrom
feat/add-m2m-to-client
Draft

feat: add M2M auth flow to stitch-client and ensure appropriate API handling#86
mbarlow12 wants to merge 8 commits into
mainfrom
feat/add-m2m-to-client

Conversation

@mbarlow12

Copy link
Copy Markdown
Contributor

Note

Merge #80 before this PR.

Adds a minimal auth token flow to the stitch-client package. Package users/consumers (seed, entity_linkage, llm) can be given credentials for client_id (Auth0 "Application") and client_secret, allowing them to make a call to the RMI Auth0 tenant. Posting to /oauth/token will return the access_token that can be used to make authenticated calls to our API.

  • stitch-api treats all callers as "users" without distinguishing between a machine/service and a human user
  • stitch-client can still be used with user pass-through credentials so a service like entity_linkage can operate on a user's behalf

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

CD summary 3845bb7

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Warnings

  • seed: Seed ran without auth
Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (2)
job image postgres_db api_url
db-init ghcr.io/rmi/stitch-api:pr86@sha256:37bc8800f2820831c95f0e39d0671a235e26464d26d733cc9b10a67c37dfa70d pr_86
seed ghcr.io/rmi/stitch-seed:pr86@sha256:b2f0bcf7cb2b5e324cc21c1ddfe32c2a78ff739108102653543a233aa1713d6a https://pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io/api/v1
Images (4)
build_time commit_time git_sha image image_digest
2026-05-08T19:53:43Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:37bc8800f2820831c95f0e39d0671a235e26464d26d733cc9b10a67c37dfa70d
2026-05-08T19:53:50Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:ef1198a26a23140c09a707584345a68109e6ae34e38bcff75b43fd1e27d65dab
2026-05-08T19:53:49Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:b2f0bcf7cb2b5e324cc21c1ddfe32c2a78ff739108102653543a233aa1713d6a
2026-05-08T19:53:45Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:18dfb9fbf65124212eb2483bc8632af6f3894cc820b1357cd79ec49a4643c26b

@github-actions

Copy link
Copy Markdown

CD summary 031df52

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:bce9f64a8f6e8e2707b0ad6ceab794c5a66b343f733962b6f16cc90c8084075a pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-14T18:34:25Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:bce9f64a8f6e8e2707b0ad6ceab794c5a66b343f733962b6f16cc90c8084075a
2026-05-14T18:34:20Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:1e945635500a9c10ff88809247c773ee28ce4db18d238e1a226906c45d5e7e8c
2026-05-14T18:34:25Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:f5ff39386adac2a4cd4d1ea179f050b76dfa50e2b4924c105f76227bf63e7c1a
2026-05-14T18:34:32Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:00bc3ccb292a976a843e91ddb1ea544cfcf9e1e26d39bfd094c627d4f177a219

@github-actions

Copy link
Copy Markdown

CD summary d5eb425

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:e648e2f091a04a31cb74a05df12b6f4a2ad8c720b5fb6a4645eaaf7077a2374d pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-14T18:35:22Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:e648e2f091a04a31cb74a05df12b6f4a2ad8c720b5fb6a4645eaaf7077a2374d
2026-05-14T18:35:23Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:231f68c0e280d78e0e65486da19f1e65bb39441f2ca7d2a0db316eea54647714
2026-05-14T18:35:19Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:2febcf3d709213b939d73e961145d7b92c26eb7cee1f50b6d772bdd49ff94f7b
2026-05-14T18:35:20Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:03179ef3c1bd9593232a4b30b11e12c91cd335b5012897561dbc8a6660b3b4fa

@github-actions

Copy link
Copy Markdown

CD summary 8257872

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:be3395b8db7aeb4c3e745c12ca57a025b9f1e463ed435ec97dbca88ee5659c3a pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-15T14:38:11Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:be3395b8db7aeb4c3e745c12ca57a025b9f1e463ed435ec97dbca88ee5659c3a
2026-05-15T14:38:13Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:c0a224d3858d4a1d113ddbc2e2c849cd73bd4fbe186ab7bf5de5dc1b8feb9551
2026-05-15T14:38:15Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:b1ed2545e8f0b79a32f1b880beb3e9d05a6b219031d510bf5d985be0b681771b
2026-05-15T14:38:10Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:c77b5df4b6e394383e52bb13e8b84254c84d166193a31129f373cf9b6e94663a

@mbarlow12 mbarlow12 marked this pull request as ready for review May 15, 2026 15:06
@jdhoffa

jdhoffa commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@mbarlow12 is this ready for review? @AlexAxthelm dyou wanna give it a go at reviewing so we can merge if appropriate.

@mbarlow12

Copy link
Copy Markdown
Contributor Author

@jdhoffa I'll go over it when I sit down today.

@github-actions

Copy link
Copy Markdown

CD summary 2565bfe

Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-06-18T13:56:18Z 2026-06-18T13:55:58Z 35241af ghcr.io/rmi/stitch-api:pr-86 ghcr.io/rmi/stitch-api:pr-86@sha256:927b18f2bdaa7b132d66ebecb8d05fad704aaff76167d91917067df4ae63e7b8
2026-06-18T13:56:16Z 2026-06-18T13:55:58Z 35241af ghcr.io/rmi/stitch-entity-linkage:pr-86 ghcr.io/rmi/stitch-entity-linkage:pr-86@sha256:6ba4e6cc03ba1e0852e75cabf64cb192badf5ef264935775793f00e11ed098ec
2026-06-18T13:56:16Z 2026-06-18T13:55:58Z 35241af ghcr.io/rmi/stitch-seed:pr-86 ghcr.io/rmi/stitch-seed:pr-86@sha256:c519df96c7d2b2d2324694ed7f80a897cef9a459f772f5dc6346ba2ab1486de1
2026-06-18T13:56:16Z 2026-06-18T13:55:58Z 35241af ghcr.io/rmi/stitch-stitch-llm:pr-86 ghcr.io/rmi/stitch-stitch-llm:pr-86@sha256:4e78c4e079ff453fd656eb6ce21e875de4e8a68a3bd03eca29a63280dcd2fa57

@AlexAxthelm

Copy link
Copy Markdown
Collaborator

@mbarlow12 I merged in main, and then closed and re-opened the PR to reset the DB now that Alembic is in.

@github-actions

Copy link
Copy Markdown

CD summary 2565bfe

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr-86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr-86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr-86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (2)
job image postgres_db api_url auth_mode
db-migrations ghcr.io/rmi/stitch-api:pr-86@sha256:06fe081e6e69f017c3c715e16071f9817e1c7e6ca1e724727a47b7c312edc2bf pr_86
seed ghcr.io/rmi/stitch-seed:pr-86@sha256:8b9019f35dbfd4ca11e2639d5ed5dede8958d473cb3fbc8f91cf6030d10caa53 https://pr-86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io/api/v1 stitch-client-bearer-token
Images (4)
build_time commit_time git_sha image image_digest
2026-06-18T14:35:45Z 2026-06-18T14:35:25Z ee0a20f ghcr.io/rmi/stitch-api:pr-86 ghcr.io/rmi/stitch-api:pr-86@sha256:06fe081e6e69f017c3c715e16071f9817e1c7e6ca1e724727a47b7c312edc2bf
2026-06-18T14:35:46Z 2026-06-18T14:35:25Z ee0a20f ghcr.io/rmi/stitch-entity-linkage:pr-86 ghcr.io/rmi/stitch-entity-linkage:pr-86@sha256:32bb35f1cd5c07bede2c411f5ca5157a9cd919ea511e272f05202efd647abd26
2026-06-18T14:35:44Z 2026-06-18T14:35:25Z ee0a20f ghcr.io/rmi/stitch-seed:pr-86 ghcr.io/rmi/stitch-seed:pr-86@sha256:8b9019f35dbfd4ca11e2639d5ed5dede8958d473cb3fbc8f91cf6030d10caa53
2026-06-18T14:35:44Z 2026-06-18T14:35:25Z ee0a20f ghcr.io/rmi/stitch-stitch-llm:pr-86 ghcr.io/rmi/stitch-stitch-llm:pr-86@sha256:d9f7807f5368469644220a54834e6a814e2fae25f803ff630e428b284aec1dd7

@mbarlow12 mbarlow12 marked this pull request as draft June 18, 2026 16:26
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

CD summary 6a41e2d

Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-07-02T02:03:11Z 2026-07-02T02:02:55Z 32a979d ghcr.io/rmi/stitch-api:pr-86 ghcr.io/rmi/stitch-api:pr-86@sha256:6c2ff7b7edc8e127c983f113a0f21be87371ae367797b1ea65da4ade9753c362
2026-07-02T02:03:12Z 2026-07-02T02:02:55Z 32a979d ghcr.io/rmi/stitch-entity-linkage:pr-86 ghcr.io/rmi/stitch-entity-linkage:pr-86@sha256:f950b9a4955d6d7eab73e6ea4d2f389c7982c261fcc79c801acabac97eb9088e
2026-07-02T02:03:10Z 2026-07-02T02:02:55Z 32a979d ghcr.io/rmi/stitch-seed:pr-86 ghcr.io/rmi/stitch-seed:pr-86@sha256:3897f75e6bcbfd5aeb326dc2d321619b417a79d5115736d3913443ca9374ee1f
2026-07-02T02:03:10Z 2026-07-02T02:02:55Z 32a979d ghcr.io/rmi/stitch-stitch-llm:pr-86 ghcr.io/rmi/stitch-stitch-llm:pr-86@sha256:4382ea411f1ffa087f43eefad85464c5e5354d3153f0ba818d7e730da070b8c7

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.

3 participants