Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
56a5e37
feat: Proof-of-concept authentication in workflows with Authoirizatio…
davehadley Dec 19, 2025
0745071
feat(backend): add logout function and routes
Jan 28, 2026
d412913
feat(backend): fixed oidc-bff devcontainer
TBThomas56 Feb 18, 2026
270a32b
fix(backend): removed duplicate code
TBThomas56 Mar 12, 2026
08d1032
fix(charts): remove secret duplication
davehadley Feb 2, 2026
3d80d32
feat(backend): auth-core scaffolding
TBThomas56 Mar 30, 2026
08ff8c8
feat(backend): auth-core oidc helpers
TBThomas56 Mar 30, 2026
0afc2b5
feat(backend): common database module
TBThomas56 Mar 30, 2026
50ca1ef
feat(backend): auth-core request helpers
TBThomas56 Mar 31, 2026
1f9a127
feat(backend): auth-core middleware creation
TBThomas56 Mar 31, 2026
0abe653
fix(backend): modify oidc-bff to use auth-core
TBThomas56 Apr 10, 2026
932b1ec
fix(backend): export libraries from auth-core to dependants
TBThomas56 Apr 10, 2026
d11636c
fix(backend): modified auth-core inject token logic
TBThomas56 Apr 10, 2026
5840062
fix(backend): modify auth-daemon to use auth-core logic
Apr 13, 2026
422afc4
fix: updated workspace Cargo.lock
Apr 13, 2026
1bcc2ac
feat: add auth-core components to Dockerfiles
Apr 13, 2026
aced09c
feat(backend): updated Cargo.toml files
TBThomas56 Apr 14, 2026
d2861d3
feat(charts): updated chart versions
TBThomas56 Apr 14, 2026
85b9202
fix(charts): moved secret to secrets folder in workflows-cluster
TBThomas56 Apr 15, 2026
773d22f
fix(backend): updated lockfile
TBThomas56 Apr 15, 2026
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
70 changes: 70 additions & 0 deletions .github/workflows/_oidc_bff_code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: OIDC BFF Code

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v5

- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
with:
cache: false
components: clippy,rustfmt

- name: Cache Rust Build
uses: Swatinem/rust-cache@v2.8.1
with:
shared-key: backend/oidc-bff
workspaces: backend

- name: Check Formatting
working-directory: backend/oidc-bff
run: >
cargo fmt
--check

- name: Lint with Clippy
working-directory: backend/oidc-bff
run: >
cargo clippy
--all-targets
--all-features
--no-deps
--
--deny warnings

- name: Check Dependencies with Cargo Deny
uses: EmbarkStudios/cargo-deny-action@v2.0.13
with:
command: check licenses ban
manifest-path: backend/Cargo.toml

test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v5

- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
with:
cache: false
components: rustfmt

- name: Cache Rust Build
uses: Swatinem/rust-cache@v2.8.1
with:
shared-key: backend/oidc-bff
workspaces: backend

- name: Run Tests
working-directory: backend/oidc-bff
run: >
cargo test
--all-targets
--all-features
53 changes: 53 additions & 0 deletions .github/workflows/_oidc_bff_container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: OIDC BFF Container
on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Generate Image Name
run: echo IMAGE_REPOSITORY=ghcr.io/$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]' | tr '[_]' '[\-]')-oidc-bff >> $GITHUB_ENV

- name: Log in to GitHub Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Version from Tag
id: tags
run: echo version=$(echo "${{ github.ref }}" | awk -F '[@v]' '{print $3}') >> $GITHUB_OUTPUT

- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5.9.0
with:
images: ${{ env.IMAGE_REPOSITORY }}
tags: |
type=raw,value=${{ steps.tags.outputs.version }}
type=raw,value=latest

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.11.1

- name: Build Image
uses: docker/build-push-action@v6.18.0
with:
context: backend
file: backend/Dockerfile.oidc-bff
target: deploy
push: true
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/oidc-bff@')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ jobs:
contents: read
packages: write

oidc_bff_code:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/_oidc_bff_code.yaml

oidc_bff_container:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
needs: oidc_bff_code
uses: ./.github/workflows/_oidc_bff_container.yaml
permissions:
contents: read
packages: write

supergraph_update:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
Expand Down
Loading
Loading