Skip to content

Commit

Permalink
🔧 sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Nov 13, 2024
1 parent af3de23 commit 66b027b
Show file tree
Hide file tree
Showing 110 changed files with 18,705 additions and 11 deletions.
109 changes: 109 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,112 @@ vendor/
*.key
*.crt
.env
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# gatsby files
.cache/

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

lib
.idea
.bin

pnpm-lock.yaml

.vscode

# Ignore the elements repository that gets cloned in on npm install
elements/
.bin/
5 changes: 3 additions & 2 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ github.com/apache/arrow/go/v15 v15.0.2/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+ye
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
Expand Down Expand Up @@ -564,7 +565,7 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
Expand Down Expand Up @@ -704,7 +705,7 @@ golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk=
golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY=
Expand Down
2 changes: 1 addition & 1 deletion k8s/eventrunner-api/base/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: eventrunner
annotations:
cert-manager.io/cluster-issuer: threadr-issuer
nginx.ingress.kubernetes.io/auth-url: "http://oathkeeper-proxy.oathkeeper.svc.cluster.local:4455/decisions"
nginx.ingress.kubernetes.io/auth-url: "http://oathkeeper-proxy.auth.svc.cluster.local:4455/decisions"
nginx.ingress.kubernetes.io/auth-response-headers: "X-User-ID"
nginx.ingress.kubernetes.io/configuration-snippet: |
auth_request_set $auth_user_id $upstream_http_x_user_id;
Expand Down
6 changes: 3 additions & 3 deletions k8s/hydra/hydra-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ingress:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: eventrunner-api-tls
- secretName: auth-services-tls
hosts:
- hydra.tunnel.threadr.ai

Expand Down Expand Up @@ -146,7 +146,7 @@ hydra:
disable_for_health: true
secrets:
system:
- IBRJP2olr4FQj8U+v86GSyOD02MkuzW8a5h/vltrl5E=
- CHANGEME

urls:
self:
Expand All @@ -157,7 +157,7 @@ hydra:
logout: https://kratos.tunnel.threadr.ai/logout
identity_provider:
url: https://kratos.tunnel.threadr.ai/app
dsn: postgres://hydra:KHga8rk5LXNJszZ2TvV4Fc@cluster-pg-rw.cnpg-system:5432/hydra
dsn: postgres://hydra:CHANGEME@cluster-pg-rw.cnpg-system:5432/hydra

strategies:
access_token: jwt
Expand Down
84 changes: 84 additions & 0 deletions k8s/kratos-ui/.circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
version: 2.1
jobs:
test:
docker:
- image: circleci/node:16.13.1
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- kratos-selfservice-ui-node-{{ checksum "package-lock.json" }}
- run: npm ci --legacy-peer-deps
- save_cache:
paths:
- node_modules
key: kratos-selfservice-ui-node-{{ checksum "package-lock.json" }}
- run: npm test

build:
docker:
- image: circleci/node:16.13.1
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- kratos-selfservice-ui-node-{{ checksum "package-lock.json" }}
- run: npm ci --legacy-peer-deps
- save_cache:
paths:
- node_modules
key: kratos-selfservice-ui-node-{{ checksum "package-lock.json" }}
- run: npm run build

release:
docker:
- image: cimg/base:stable
environment:
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
BUILDX_PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
working_directory: ~/app
steps:
- checkout
- run:
command: |
echo 'export DOCKER_FULL_TAG=$(echo $CIRCLE_TAG | tr '+' '_')' >> $BASH_ENV
echo 'export DOCKER_SHORT_TAG=$(echo $CIRCLE_TAG | cut -d '+' -f1)' >> $BASH_ENV
./.circleci/release_name.bash
source $BASH_ENV
- setup_remote_docker
- run:
name: Set up Docker Buildx
command: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch-builder --use
- run:
docker login --username "$DOCKER_USERNAME" --password
"$DOCKER_PASSWORD"
- run:
docker buildx build --platform $BUILDX_PLATFORMS -t
oryd/kratos-selfservice-ui-node:latest -t
oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG --push .

workflows:
tbr:
jobs:
- test:
filters:
tags:
only: /.*/
- build:
filters:
tags:
only: /.*/
- release:
requires:
- test
- build
filters:
tags:
only: /.*/
branches:
ignore: /.*/
13 changes: 13 additions & 0 deletions k8s/kratos-ui/.circleci/release_name.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

release=$(curl -s "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/releases")
tag=$(echo ${release} | jq -r ".[0].tag_name")
tag_name=$(echo ${release} | jq -r ".[0].name")

if [[ -n "$tag_name" ]]; then
echo "export RELEASE_NAME=$tag_name" >> $BASH_ENV
elif [[ -n "$tag" ]]; then
echo "export RELEASE_NAME=$tag" >> $BASH_ENV
else
echo "export RELEASE_NAME=$CIRCLE_SHA1" >> $BASH_ENV
fi
3 changes: 3 additions & 0 deletions k8s/kratos-ui/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
lib/
.git
1 change: 1 addition & 0 deletions k8s/kratos-ui/.github/CODEOWNER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ory/maintainers
8 changes: 8 additions & 0 deletions k8s/kratos-ui/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# AUTO-GENERATED, DO NOT EDIT!
# Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/FUNDING.yml

# These are supported funding model platforms

# github:
patreon: _ory
open_collective: ory
Loading

0 comments on commit 66b027b

Please sign in to comment.