Skip to content

Commit ccb8905

Browse files
authored
Merge 0c24020 into 864cbd1
2 parents 864cbd1 + 0c24020 commit ccb8905

File tree

473 files changed

+166360
-5699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

473 files changed

+166360
-5699
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See GitHub's documentation for more information on this file:
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
- package-ecosystem: "gomod"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"

.github/workflows/go_tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Go Test Workflow
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
name: Run tests
10+
runs-on: kf-go-client-sdk-runner-set
11+
strategy:
12+
matrix:
13+
environment: [ "KFC_10_5_0", "KFC_12_3_0_KC"]
14+
environment: ${{ matrix.environment }}
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v3
21+
with:
22+
go-version: 1.22
23+
24+
- name: Get Public IP
25+
run: curl -s https://api.ipify.org
26+
27+
- name: Run tests
28+
run: |
29+
if [ -n "${{ secrets.KEYFACTOR_AUTH_CONFIG_B64 }}" ]; then
30+
mkdir -p ~/.keyfactor
31+
echo "${{ secrets.KEYFACTOR_AUTH_CONFIG_B64 }}" | base64 --decode > ~/.keyfactor/command_config.json
32+
fi
33+
go test -v -cover ./auth_providers/...
34+
env:
35+
KEYFACTOR_PASSWORD: ${{ secrets.KEYFACTOR_PASSWORD }}
36+
KEYFACTOR_USERNAME: ${{ secrets.KEYFACTOR_USERNAME }}
37+
KEYFACTOR_AUTH_CONFIG_B64: ${{ secrets.KEYFACTOR_AUTH_CONFIG_B64 }}
38+
KEYFACTOR_AUTH_CLIENT_ID: ${{ secrets.KEYFACTOR_AUTH_CLIENT_ID }}
39+
KEYFACTOR_AUTH_CLIENT_SECRET: ${{ secrets.KEYFACTOR_AUTH_CLIENT_SECRET }}
40+
KEYFACTOR_AUTH_TOKEN_URL: ${{ vars.KEYFACTOR_AUTH_TOKEN_URL }}
41+
KEYFACTOR_HOSTNAME: ${{ vars.KEYFACTOR_HOSTNAME }}
42+
KEYFACTOR_AUTH_HOSTNAME: ${{ vars.KEYFACTOR_AUTH_HOSTNAME }}
43+
KEYFACTOR_SKIP_VERIFY: ${{ vars.KEYFACTOR_SKIP_VERIFY }}
44+
TEST_KEYFACTOR_AD_AUTH: ${{ vars.TEST_KEYFACTOR_AD_AUTH }}
45+
TEST_KEYFACTOR_KC_AUTH: ${{ vars.TEST_KEYFACTOR_KC_AUTH }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Keyfactor Bootstrap Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [ opened, closed, synchronize, edited, reopened ]
7+
push:
8+
create:
9+
branches:
10+
- 'release-*.*'
11+
12+
jobs:
13+
call-starter-workflow:
14+
uses: keyfactor/actions/.github/workflows/starter.yml@v3
15+
secrets:
16+
token: ${{ secrets.V2BUILDTOKEN}}
17+
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
18+
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
19+
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}
20+
scan_token: ${{ secrets.SAST_TOKEN }}

.gitignore

Lines changed: 149 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,152 @@ _testmain.go
2626
.idea
2727
.openapi-generator
2828
.DS_Store
29-
*.yaml
29+
*.yaml
30+
31+
### JetBrains template
32+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
33+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
34+
35+
# User-specific stuff
36+
.idea/**/workspace.xml
37+
.idea/**/tasks.xml
38+
.idea/**/usage.statistics.xml
39+
.idea/**/dictionaries
40+
.idea/**/shelf
41+
42+
# AWS User-specific
43+
.idea/**/aws.xml
44+
45+
# Generated files
46+
.idea/**/contentModel.xml
47+
48+
# Sensitive or high-churn files
49+
.idea/**/dataSources/
50+
.idea/**/dataSources.ids
51+
.idea/**/dataSources.local.xml
52+
.idea/**/sqlDataSources.xml
53+
.idea/**/dynamic.xml
54+
.idea/**/uiDesigner.xml
55+
.idea/**/dbnavigator.xml
56+
57+
# Gradle
58+
.idea/**/gradle.xml
59+
.idea/**/libraries
60+
61+
# Gradle and Maven with auto-import
62+
# When using Gradle or Maven with auto-import, you should exclude module files,
63+
# since they will be recreated, and may cause churn. Uncomment if using
64+
# auto-import.
65+
# .idea/artifacts
66+
# .idea/compiler.xml
67+
# .idea/jarRepositories.xml
68+
# .idea/modules.xml
69+
# .idea/*.iml
70+
# .idea/modules
71+
# *.iml
72+
# *.ipr
73+
74+
# CMake
75+
cmake-build-*/
76+
77+
# Mongo Explorer plugin
78+
.idea/**/mongoSettings.xml
79+
80+
# File-based project format
81+
*.iws
82+
83+
# IntelliJ
84+
out/
85+
86+
# mpeltonen/sbt-idea plugin
87+
.idea_modules/
88+
89+
# JIRA plugin
90+
atlassian-ide-plugin.xml
91+
92+
# Cursive Clojure plugin
93+
.idea/replstate.xml
94+
95+
# SonarLint plugin
96+
.idea/sonarlint/
97+
98+
# Crashlytics plugin (for Android Studio and IntelliJ)
99+
com_crashlytics_export_strings.xml
100+
crashlytics.properties
101+
crashlytics-build.properties
102+
fabric.properties
103+
104+
# Editor-based Rest Client
105+
.idea/httpRequests
106+
107+
# Android studio 3.1+ serialized cache file
108+
.idea/caches/build_file_checksums.ser
109+
110+
### Terraform template
111+
# Local .terraform directories
112+
**/.terraform/*
113+
114+
# .tfstate files
115+
*.tfstate
116+
*.tfstate.*
117+
118+
# Crash log files
119+
crash.log
120+
crash.*.log
121+
122+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
123+
# password, private keys, and other secrets. These should not be part of version
124+
# control as they are data points which are potentially sensitive and subject
125+
# to change depending on the environment.
126+
*.tfvars
127+
*.tfvars.json
128+
129+
# Ignore override files as they are usually used to override resources locally and so
130+
# are not checked in
131+
override.tf
132+
override.tf.json
133+
*_override.tf
134+
*_override.tf.json
135+
136+
# Include override files you do wish to add to version control using negated pattern
137+
# !example_override.tf
138+
139+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
140+
# example: *tfplan*
141+
142+
# Ignore CLI configuration files
143+
.terraformrc
144+
terraform.rc
145+
146+
### Go template
147+
# If you prefer the allow list template instead of the deny list, see community template:
148+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
149+
#
150+
# Binaries for programs and plugins
151+
.idea
152+
*.exe
153+
*.exe~
154+
*.dll
155+
*.so
156+
*.dylib
157+
158+
# Test binary, built with `go test -c`
159+
*.test
160+
161+
# Output of the go coverage tool, specifically when used with LiteIDE
162+
*.out
163+
164+
# Dependency directories (remove the comment below to include it)
165+
vendor/
166+
167+
.env*
168+
169+
*.csv
170+
/.vs/**/*
171+
/.vscode/**/*
172+
.DS_Store
173+
.auto.tfvars
174+
175+
*.cnf
176+
*.pem
177+
*command_config.json

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# v1.2.0
2+
3+
## Features
4+
- Support for `OAuth2` client config
5+
- Added support for Keyfactor client config file with `OAuth2` client config(s)
6+
7+
# v1.1.0
8+
- skipped
9+
10+
# v1.0.0
11+
- Initial release

0 commit comments

Comments
 (0)