Skip to content

Commit

Permalink
Merge pull request #1 from ferhatys/feature/aws-auth-support
Browse files Browse the repository at this point in the history
aws auth support
  • Loading branch information
ferhatys authored Feb 4, 2025
2 parents 687d1d0 + 1569127 commit ccc2fa3
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 11 deletions.
45 changes: 45 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
autolabeler:
- label: 'chore'
files:
- '*.md'
branch:
- '/docs{0,1}\/.+/'
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature\/.+/'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Build connector definition
run: |
set -e pipefail
export DOCKER_IMAGE="ghcr.io/hasura/ndc-mongodb:$GITHUB_REF_NAME"
export DOCKER_IMAGE="ghcr.io/ferhatys/ndc-mongodb:$GITHUB_REF_NAME"
export CLI_VERSION=$GITHUB_REF_NAME
make build
working-directory: ./connector-definition
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v4

- name: Link Cachix 🔌
uses: cachix/cachix-action@v12
with:
name: '${{ vars.CACHIX_CACHE_NAME }}'
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}'
# - name: Link Cachix 🔌
# uses: cachix/cachix-action@v12
# with:
# name: '${{ vars.CACHIX_CACHE_NAME }}'
# authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}'

- name: run unit tests 🔨
run: nix build .#checks.x86_64-linux.test --print-build-logs
Expand Down
19 changes: 19 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ native-query-subcommand = ["dep:pretty", "dep:nom", "dep:textwrap"]
[dependencies]
configuration = { path = "../configuration" }
mongodb-agent-common = { path = "../mongodb-agent-common" }
mongodb = { workspace = true }
mongodb = { workspace = true, features = ["aws-auth"] }
mongodb-support = { path = "../mongodb-support" }

anyhow = "1.0.80"
Expand Down
2 changes: 1 addition & 1 deletion crates/configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ndc-query-plan = { path = "../ndc-query-plan" }
anyhow = "1"
futures = "^0.3"
itertools = { workspace = true }
mongodb = { workspace = true }
mongodb = { workspace = true, features = ["aws-auth"] }
ndc-models = { workspace = true }
ref-cast = { workspace = true }
schemars = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/mongodb-agent-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ indent = "^0.1"
itertools = { workspace = true }
lazy_static = "^1.4.0"
mockall = { version = "^0.13.1", optional = true }
mongodb = { workspace = true }
mongodb = { workspace = true, features = ["aws-auth"] }
ndc-models = { workspace = true }
nonempty = { workspace = true }
once_cell = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/mongodb-connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ futures = "^0.3"
http = "^0.2"
indexmap = { workspace = true }
itertools = { workspace = true }
mongodb = { workspace = true }
mongodb = { workspace = true, features = ["aws-auth"] }
ndc-sdk = { workspace = true }
prometheus = "*" # share version from ndc-sdk
serde = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/mongodb-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version.workspace = true
anyhow = "1"
enum-iterator = "^2.0.0"
indexmap = { workspace = true }
mongodb = { workspace = true }
mongodb = { workspace = true, features = ["aws-auth"] }
schemars = "^0.8.12"
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down

0 comments on commit ccc2fa3

Please sign in to comment.