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

FEAT: Apollo Router Instrumentation #37

Merged
merged 21 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
957a9bb
feat: adding auth package empty
ericzorn93 Jan 5, 2025
b0f842e
feat: adding auth
ericzorn93 Jan 6, 2025
3aa3214
fix: use constants
ericzorn93 Jan 6, 2025
6650d30
Merge branch 'main' of https://github.com/ericzorn93/career-cue into …
ericzorn93 Jan 6, 2025
10e3791
fix: access token being sent for all resolvers
ericzorn93 Jan 6, 2025
4a84579
fix: abstract request
ericzorn93 Jan 6, 2025
03c8a49
fix: scale the accounts api and apollo router to 2 machines
ericzorn93 Jan 6, 2025
0dd53d6
Merge branch 'main' of https://github.com/ericzorn93/career-cue into …
ericzorn93 Jan 6, 2025
dcd14b7
feat: adding auth middleware to the GraphQL template
ericzorn93 Jan 6, 2025
67f8327
fix: validation for accounts resolver
ericzorn93 Jan 6, 2025
df0aee0
fix: accounts graphql resolver to fetch account
ericzorn93 Jan 6, 2025
985615d
fix: further validation
ericzorn93 Jan 6, 2025
4a44e03
fix: further email validation
ericzorn93 Jan 6, 2025
cb509e7
feat: change auth package to http-auth
ericzorn93 Jan 6, 2025
c604fbe
feat: updating the auth package name to httpauth
ericzorn93 Jan 6, 2025
3bf3019
feat: adding support for httpauth package
ericzorn93 Jan 6, 2025
1b0818b
feat: adding telemetry to apollo router in dev and prod
ericzorn93 Jan 6, 2025
7dff03c
feat: adding environment variables to apollo router
ericzorn93 Jan 6, 2025
10b2225
fix: docker compose
ericzorn93 Jan 6, 2025
ef7bb02
Merge branch 'main' of https://github.com/ericzorn93/career-cue into …
ericzorn93 Jan 6, 2025
adc5c9f
fix: router config
ericzorn93 Jan 6, 2025
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
Prev Previous commit
Next Next commit
feat: change auth package to http-auth
  • Loading branch information
ericzorn93 committed Jan 6, 2025
commit cb509e731478e78f4d978668ce7e4089e6b9bbb5
2 changes: 1 addition & 1 deletion apps/services/accounts-api/cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

connectrpcadapter "apps/services/accounts-api/internal/adapters/connectrpc"
"apps/services/accounts-api/internal/adapters/database/repositories"
"libs/backend/auth"
"libs/backend/boot"
auth "libs/backend/http-auth"
"libs/backend/proto-gen/go/accounts/accountsapi/v1/accountsapiv1connect"
)

Expand Down
2 changes: 1 addition & 1 deletion apps/services/accounts-graphql/cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"apps/services/accounts-graphql/internal/graph/resolvers"
"context"
"errors"
"libs/backend/auth"
"libs/backend/boot"
"libs/backend/cache"
auth "libs/backend/http-auth"
"log"
"log/slog"
"os"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use (
./apps/services/accounts-graphql
./apps/services/accounts-worker
./apps/services/inbound-webhooks-api
./libs/backend/auth
./libs/backend/http-auth
./libs/backend/boot
./libs/backend/cache
./libs/backend/domain/user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import "context"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

const (
// Used for headers to be sent and recieved via HTTP and ConnectRPC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import "errors"

Expand Down
2 changes: 1 addition & 1 deletion libs/backend/auth/go.mod → libs/backend/http-auth/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module libs/backend/auth
module libs/backend/http-auth

go 1.23

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion libs/backend/auth/jwt.go → libs/backend/http-auth/jwt.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package auth
package httpauth

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "auth",
"name": "http-auth",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/backend/auth",
"sourceRoot": "libs/backend/http-auth",
"tags": ["services", "api", "authentication"],
"targets": {
"test": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"

"libs/backend/auth"
"libs/backend/boot"
"libs/backend/cache"
auth "libs/backend/http-auth"
)

// serviceName is the name of the microservice
Expand Down