Skip to content

Commit eda0731

Browse files
committed
init: Initial commit of the kong-authz-openfga plugin
0 parents  commit eda0731

34 files changed

+2453
-0
lines changed

.busted

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
return {
2+
_all = {
3+
verbose = false,
4+
coverage = false,
5+
output = "gtest",
6+
},
7+
ci = {
8+
["exclude-tags"] = "postgres",
9+
},
10+
}

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This file is the top-most EditorConfig file
2+
root = true
3+
4+
# All Files
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 2
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Markdown Files
14+
[*.{md,mdx}]
15+
trim_trailing_whitespace = false
16+
17+
# Batch Files
18+
[*.{cmd,bat}]
19+
end_of_line = crlf
20+
21+
# Tab indentation (no size specified)
22+
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
23+
indent_style = tab
24+
25+
# see https://github.com/CppCXY/EmmyLuaCodeStyle
26+
[*.lua]
27+
align_continuous_assign_statement = false

.env.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file will be read by Docker/kustomize. Please don't encapsulate the values with double quotes.
2+
SMOKE_TEST_REQUEST_BODY=smoke test request body

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
# Custom patterns
2+
kong-license.json
3+
# servroot typically is the Kong working directory for tests
4+
servroot
5+
# exclude generated packed rocks
6+
*.rock
7+
# exclude LuaCov statistics file
8+
luacov.stats.out
9+
# exclude LuaCov report
10+
luacov.report.out
11+
# Exclude all rockspec files except the main one
12+
/*.rockspec
13+
!/kong-plugin.rockspec
14+
# curl netrc
15+
/.netrc
16+
# Temporary ubi.repo
17+
/_build/images/kong-tooling/ubi.repo
18+
# Kong files for Lua language server
19+
/.luals/
20+
21+
# Luarocks
22+
/luarocks.bat
23+
/lua.bat
24+
/lua_modules/
25+
/.luarocks
26+
27+
/.docker/
28+
29+
# Local folder for scratch files
30+
/tmp/
31+
32+
# Local folder for scratch files
33+
/spec/stub/openfga.sqlite-shm
34+
/spec/stub/openfga.sqlite-wal
35+
36+
# -------------
37+
# Created by https://www.toptal.com/developers/gitignore/api/git,lua,visualstudiocode,intellij,sublimetext,windows,macos,linux,dotenv,direnv
38+
# Edit at https://www.toptal.com/developers/gitignore?templates=git,lua,visualstudiocode,intellij,sublimetext,windows,macos,linux,dotenv,direnv
39+
40+
### direnv ###
41+
.direnv
42+
.envrc
43+
44+
### dotenv ###
45+
.env
46+
47+
### Git ###
48+
# Created by git for backups. To disable backups in Git:
49+
# $ git config --global mergetool.keepBackup false
50+
*.orig
51+
52+
# Created by git when using merge tools for conflicts
53+
*.BACKUP.*
54+
*.BASE.*
55+
*.LOCAL.*
56+
*.REMOTE.*
57+
*_BACKUP_*.txt
58+
*_BASE_*.txt
59+
*_LOCAL_*.txt
60+
*_REMOTE_*.txt
61+
62+
### Intellij ###
63+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
64+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
65+
66+
# User-specific stuff
67+
.idea/**/workspace.xml
68+
.idea/**/tasks.xml
69+
.idea/**/usage.statistics.xml
70+
.idea/**/dictionaries
71+
.idea/**/shelf
72+
73+
# AWS User-specific
74+
.idea/**/aws.xml
75+
76+
# Generated files
77+
.idea/**/contentModel.xml
78+
79+
# Sensitive or high-churn files
80+
.idea/**/dataSources/
81+
.idea/**/dataSources.ids
82+
.idea/**/dataSources.local.xml
83+
.idea/**/sqlDataSources.xml
84+
.idea/**/dynamic.xml
85+
.idea/**/uiDesigner.xml
86+
.idea/**/dbnavigator.xml
87+
88+
# Gradle
89+
.idea/**/gradle.xml
90+
.idea/**/libraries
91+
92+
# Gradle and Maven with auto-import
93+
# When using Gradle or Maven with auto-import, you should exclude module files,
94+
# since they will be recreated, and may cause churn. Uncomment if using
95+
# auto-import.
96+
# .idea/artifacts
97+
# .idea/compiler.xml
98+
# .idea/jarRepositories.xml
99+
# .idea/modules.xml
100+
# .idea/*.iml
101+
# .idea/modules
102+
# *.iml
103+
# *.ipr
104+
105+
# CMake
106+
cmake-build-*/
107+
108+
# Mongo Explorer plugin
109+
.idea/**/mongoSettings.xml
110+
111+
# File-based project format
112+
*.iws
113+
114+
# IntelliJ
115+
out/
116+
117+
# mpeltonen/sbt-idea plugin
118+
.idea_modules/
119+
120+
# JIRA plugin
121+
atlassian-ide-plugin.xml
122+
123+
# Cursive Clojure plugin
124+
.idea/replstate.xml
125+
126+
# SonarLint plugin
127+
.idea/sonarlint/
128+
129+
# Crashlytics plugin (for Android Studio and IntelliJ)
130+
com_crashlytics_export_strings.xml
131+
crashlytics.properties
132+
crashlytics-build.properties
133+
fabric.properties
134+
135+
# Editor-based Rest Client
136+
.idea/httpRequests
137+
138+
# Android studio 3.1+ serialized cache file
139+
.idea/caches/build_file_checksums.ser
140+
141+
### Intellij Patch ###
142+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
143+
144+
# *.iml
145+
# modules.xml
146+
# .idea/misc.xml
147+
# *.ipr
148+
149+
# Sonarlint plugin
150+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
151+
.idea/**/sonarlint/
152+
153+
# SonarQube Plugin
154+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
155+
.idea/**/sonarIssues.xml
156+
157+
# Markdown Navigator plugin
158+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
159+
.idea/**/markdown-navigator.xml
160+
.idea/**/markdown-navigator-enh.xml
161+
.idea/**/markdown-navigator/
162+
163+
# Cache file creation bug
164+
# See https://youtrack.jetbrains.com/issue/JBR-2257
165+
.idea/$CACHE_FILE$
166+
167+
# CodeStream plugin
168+
# https://plugins.jetbrains.com/plugin/12206-codestream
169+
.idea/codestream.xml
170+
171+
# Azure Toolkit for IntelliJ plugin
172+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
173+
.idea/**/azureSettings.xml
174+
175+
### Linux ###
176+
*~
177+
178+
# temporary files which can be created if a process still has a handle open of a deleted file
179+
.fuse_hidden*
180+
181+
# KDE directory preferences
182+
.directory
183+
184+
# Linux trash folder which might appear on any partition or disk
185+
.Trash-*
186+
187+
# .nfs files are created when an open file is removed but is still being accessed
188+
.nfs*
189+
190+
### Lua ###
191+
# Compiled Lua sources
192+
luac.out
193+
194+
# luarocks build files
195+
*.zip
196+
*.tar.gz
197+
198+
# Object files
199+
*.o
200+
*.os
201+
*.ko
202+
*.obj
203+
*.elf
204+
205+
# Precompiled Headers
206+
*.gch
207+
*.pch
208+
209+
# Libraries
210+
*.lib
211+
*.a
212+
*.la
213+
*.lo
214+
*.def
215+
*.exp
216+
217+
# Shared objects (inc. Windows DLLs)
218+
*.dll
219+
*.so
220+
*.so.*
221+
*.dylib
222+
223+
# Executables
224+
*.exe
225+
*.out
226+
*.app
227+
*.i*86
228+
*.x86_64
229+
*.hex
230+
231+
### macOS ###
232+
# General
233+
.DS_Store
234+
.AppleDouble
235+
.LSOverride
236+
237+
# Icon must end with two \r
238+
Icon
239+
240+
# Thumbnails
241+
._*
242+
243+
# Files that might appear in the root of a volume
244+
.DocumentRevisions-V100
245+
.fseventsd
246+
.Spotlight-V100
247+
.TemporaryItems
248+
.Trashes
249+
.VolumeIcon.icns
250+
.com.apple.timemachine.donotpresent
251+
252+
# Directories potentially created on remote AFP share
253+
.AppleDB
254+
.AppleDesktop
255+
Network Trash Folder
256+
Temporary Items
257+
.apdisk
258+
259+
### macOS Patch ###
260+
# iCloud generated files
261+
*.icloud
262+
263+
### SublimeText ###
264+
# Cache files for Sublime Text
265+
*.tmlanguage.cache
266+
*.tmPreferences.cache
267+
*.stTheme.cache
268+
269+
# Workspace files are user-specific
270+
*.sublime-workspace
271+
272+
# Project files should be checked into the repository, unless a significant
273+
# proportion of contributors will probably not be using Sublime Text
274+
# *.sublime-project
275+
276+
# SFTP configuration file
277+
sftp-config.json
278+
sftp-config-alt*.json
279+
280+
# Package control specific files
281+
Package Control.last-run
282+
Package Control.ca-list
283+
Package Control.ca-bundle
284+
Package Control.system-ca-bundle
285+
Package Control.cache/
286+
Package Control.ca-certs/
287+
Package Control.merged-ca-bundle
288+
Package Control.user-ca-bundle
289+
oscrypto-ca-bundle.crt
290+
bh_unicode_properties.cache
291+
292+
# Sublime-github package stores a github token in this file
293+
# https://packagecontrol.io/packages/sublime-github
294+
GitHub.sublime-settings
295+
296+
### VisualStudioCode ###
297+
.vscode/*
298+
!.vscode/settings.json
299+
!.vscode/tasks.json
300+
!.vscode/launch.json
301+
!.vscode/extensions.json
302+
!.vscode/*.code-snippets
303+
304+
# Local History for Visual Studio Code
305+
.history/
306+
307+
# Built Visual Studio Code Extensions
308+
*.vsix
309+
310+
### VisualStudioCode Patch ###
311+
# Ignore all local history of files
312+
.history
313+
.ionide
314+
315+
### Windows ###
316+
# Windows thumbnail cache files
317+
Thumbs.db
318+
Thumbs.db:encryptable
319+
ehthumbs.db
320+
ehthumbs_vista.db
321+
322+
# Dump file
323+
*.stackdump
324+
325+
# Folder config file
326+
[Dd]esktop.ini
327+
328+
# Recycle Bin used on file shares
329+
$RECYCLE.BIN/
330+
331+
# Windows Installer files
332+
*.cab
333+
*.msi
334+
*.msix
335+
*.msm
336+
*.msp
337+
338+
# Windows shortcuts
339+
*.lnk
340+
341+
# End of https://www.toptal.com/developers/gitignore/api/git,lua,visualstudiocode,intellij,sublimetext,windows,macos,linux,dotenv,direnv
342+
343+
/luarocks
344+
/lua
345+
346+
# Allow bundling of packages
347+
!/_build/images/*/packages/**

0 commit comments

Comments
 (0)