Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
681804c5e4 | ||
|
|
50a6071eec
|
||
|
|
c7ceee0a14 | ||
|
|
09f0769a3e | ||
|
|
ae9ac8b449 | ||
|
|
7f251668b2 | ||
|
|
114883aef4 | ||
|
|
6c0dbaf903 | ||
|
|
b0a1757e38
|
||
|
|
d6736b0187 | ||
|
|
668e0dacfb | ||
|
|
1c2e98a973 | ||
|
|
026fe0ab3f | ||
|
|
6b15aac9f3 | ||
|
|
001f23eab5 | ||
|
|
e3c303b162 | ||
|
|
61204541a4 | ||
|
|
fbd579a4f6 | ||
|
|
7a1a0b5941 | ||
|
|
d6db4b664c | ||
|
|
44a711baa1 | ||
|
|
63ae255179 | ||
|
|
24f3184ccc | ||
|
|
b6f20b7ae0
|
||
|
|
c009f3d87c | ||
|
|
e197f2c7da | ||
|
|
2655fcb211 | ||
|
|
9fcbdd259b | ||
|
|
ba73d36b91 | ||
|
|
739440046b | ||
|
|
2243597853 | ||
|
|
e9e684949c | ||
|
|
a6426f5973 | ||
|
|
e29f5b331b | ||
|
|
e1b2e5a5c1 | ||
|
|
7371d54831 | ||
|
|
badfe89281 | ||
|
|
17dd541cc6 | ||
|
|
4ad0fb4f86 | ||
|
|
a53df01028 | ||
|
|
622179a6b1 | ||
|
|
b6b3084ae7 | ||
|
|
f6a0f478c0 | ||
|
|
5cce412515 | ||
|
|
f9f881614b | ||
|
|
a76276787f
|
||
|
|
619bccdcf0 | ||
|
|
919589a397 | ||
|
|
bcf67ea71e | ||
|
|
674117e8ff | ||
|
|
1307fcd993 | ||
|
|
aeb92016c8 | ||
|
|
53ddd9413a | ||
|
|
791703e632 | ||
|
|
abec3883c7 | ||
|
|
c78e07cdca | ||
|
|
0b8ef99e8b | ||
|
|
82505437e1 | ||
|
|
510790dab3 | ||
|
|
3bbab5a037 | ||
|
|
53fbe8d8b1 | ||
|
|
660a58a94c | ||
|
|
0a4c0c7920 | ||
|
|
511fce32e1 | ||
|
|
7477dd929e
|
||
|
|
3b2528e447 | ||
|
|
628d5f68d3 | ||
|
|
b810402cea | ||
|
|
c18735eb92 | ||
|
|
b362af8bbe | ||
|
|
2ad082150d | ||
|
|
a2a06a49c9 | ||
|
|
c7765a7838 | ||
|
|
e37c082d0b | ||
|
|
fb4f0ebe44 | ||
|
|
adc0dbed67 | ||
|
|
43ef782b72 | ||
|
|
7c485ad14d | ||
|
|
70e6001c4a |
No files matched your search
+4
-16
@@ -2,27 +2,15 @@ include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Release.gitlab-ci.yml
|
||||
- project: unboundsoftware/ci-templates
|
||||
file: Pre-Commit-Go.gitlab-ci.yml
|
||||
|
||||
image: golang:1.23.2
|
||||
image: amd64/golang:1.24.2@sha256:aebb7dfe0e8da97fd4e22f95d2162cc6948f772fa947a00659634ece26cadb5a
|
||||
|
||||
stages:
|
||||
- deps
|
||||
- test
|
||||
|
||||
run-pre-commit:
|
||||
stage: .pre
|
||||
image: unbound/pre-commit
|
||||
variables:
|
||||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||
cache:
|
||||
- key:
|
||||
files:
|
||||
- .pre-commit-config.yaml
|
||||
paths:
|
||||
- ${PRE_COMMIT_HOME}
|
||||
script:
|
||||
- pre-commit run --all-files
|
||||
|
||||
deps:
|
||||
stage: deps
|
||||
script:
|
||||
@@ -42,7 +30,7 @@ test:
|
||||
|
||||
vulnerabilities:
|
||||
stage: test
|
||||
image: golang:1.23.2
|
||||
image: amd64/golang:1.24.2@sha256:aebb7dfe0e8da97fd4e22f95d2162cc6948f772fa947a00659634ece26cadb5a
|
||||
script:
|
||||
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
- govulncheck ./...
|
||||
@@ -1,2 +1,22 @@
|
||||
version: "2"
|
||||
run:
|
||||
allow-parallel-runners: true
|
||||
linters:
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
formatters:
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
@@ -2,7 +2,7 @@
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
@@ -18,7 +18,7 @@ repos:
|
||||
- --project
|
||||
- unboundsoftware/shiny/authz_client
|
||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||
rev: v9.18.0
|
||||
rev: v9.22.0
|
||||
hooks:
|
||||
- id: commitlint
|
||||
stages: [ commit-msg ]
|
||||
@@ -37,10 +37,10 @@ repos:
|
||||
- id: go-test
|
||||
- id: gofumpt
|
||||
- repo: https://github.com/golangci/golangci-lint
|
||||
rev: v1.61.0
|
||||
rev: v2.0.2
|
||||
hooks:
|
||||
- id: golangci-lint-full
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.20.0
|
||||
rev: v8.24.3
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
+48
-31
@@ -2,6 +2,23 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.2.0] - 2025-04-11
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- Add timeout configuration to golangci-lint
|
||||
- Add setup method for privilege event consumers
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(deps)* Update module github.com/stretchr/testify to v1.10.0
|
||||
- *(ci)* Update go image to amd64 architecture version
|
||||
- *(deps)* Update module github.com/sparetimecoders/goamqp to v0.3.2
|
||||
|
||||
### 🚜 Refactor
|
||||
|
||||
- *(ci)* Remove pre-commit job and add new template
|
||||
|
||||
## [0.1.4] - 2024-10-05
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
@@ -9,6 +26,10 @@ All notable changes to this project will be documented in this file.
|
||||
- *(deps)* Update module github.com/stretchr/testify to v1.9.0
|
||||
- *(deps)* Update module github.com/sparetimecoders/goamqp to v0.3.1
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.2.1 to 0.3.0
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update to Go 1.21.6
|
||||
@@ -18,16 +39,18 @@ All notable changes to this project will be documented in this file.
|
||||
- Add release flow
|
||||
- Remove old release job
|
||||
|
||||
### Build
|
||||
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.2.1 to 0.3.0
|
||||
|
||||
## [0.1.3] - 2023-12-26
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Prohibit concurrent read/write
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.4 to 0.1.5
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.5 to 0.2.0
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.2.0 to 0.2.1
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update Go version
|
||||
@@ -40,30 +63,32 @@ All notable changes to this project will be documented in this file.
|
||||
- Update to go 1.21.3 and remove patch level
|
||||
- Update version of Go
|
||||
|
||||
### Build
|
||||
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.4 to 0.1.5
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.5 to 0.2.0
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.2.0 to 0.2.1
|
||||
|
||||
## [0.1.2] - 2023-06-04
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.3 to 1.8.4
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update pre-commit and fix golangci-lint
|
||||
- Update golangci-lint
|
||||
|
||||
### Build
|
||||
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.3 to 1.8.4
|
||||
|
||||
## [0.1.1] - 2023-05-11
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Run builds with Go 1.19.2 to fix vulnerabilities
|
||||
|
||||
### 💼 Other
|
||||
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.1 to 0.1.2
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.2 to 0.1.3
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.3 to 0.1.4
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Add vulnerability-check
|
||||
@@ -78,28 +103,13 @@ All notable changes to this project will be documented in this file.
|
||||
- Update to Go 1.20.3
|
||||
- Update Go version and fix gitlabci lint
|
||||
|
||||
### Build
|
||||
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.1 to 0.1.2
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.2 to 0.1.3
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
|
||||
- *(deps)* Bump github.com/sparetimecoders/goamqp from 0.1.3 to 0.1.4
|
||||
|
||||
## [0.1.0] - 2022-07-20
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- Pipeline
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Add dependabot config
|
||||
- Remove dependabot-standalone
|
||||
- Change to codecov binary instead of bash uploader
|
||||
- Switch to moved goamqp
|
||||
|
||||
### Build
|
||||
### 💼 Other
|
||||
|
||||
- Add params to codecov
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
|
||||
@@ -109,6 +119,13 @@ All notable changes to this project will be documented in this file.
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
|
||||
- *(deps)* Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- Add dependabot config
|
||||
- Remove dependabot-standalone
|
||||
- Change to codecov binary instead of bash uploader
|
||||
- Switch to moved goamqp
|
||||
|
||||
## [0.0.8] - 2021-05-15
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
@@ -75,6 +75,15 @@ func (h *PrivilegeHandler) Fetch() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (h *PrivilegeHandler) Setup() []goamqp.Setup {
|
||||
return []goamqp.Setup{
|
||||
goamqp.TransientEventStreamConsumer("User.Added", h.Process, UserAdded{}),
|
||||
goamqp.TransientEventStreamConsumer("User.Removed", h.Process, UserRemoved{}),
|
||||
goamqp.TransientEventStreamConsumer("Privilege.Added", h.Process, PrivilegeAdded{}),
|
||||
goamqp.TransientEventStreamConsumer("Privilege.Removed", h.Process, PrivilegeRemoved{}),
|
||||
}
|
||||
}
|
||||
|
||||
// Process privilege-related events and update the internal state
|
||||
func (h *PrivilegeHandler) Process(msg interface{}, _ goamqp.Headers) (interface{}, error) {
|
||||
switch ev := msg.(type) {
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
module gitlab.com/unboundsoftware/shiny/authz_client
|
||||
|
||||
go 1.21
|
||||
go 1.22.12
|
||||
|
||||
toolchain go1.24.2
|
||||
|
||||
require (
|
||||
github.com/sparetimecoders/goamqp v0.3.1
|
||||
github.com/stretchr/testify v1.9.0
|
||||
github.com/sparetimecoders/goamqp v0.3.2
|
||||
github.com/stretchr/testify v1.10.0
|
||||
)
|
||||
|
||||
require (
|
||||
|
||||
@@ -8,10 +8,10 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/rabbitmq/amqp091-go v1.10.0 h1:STpn5XsHlHGcecLmMFCtg7mqq0RnD+zFr4uzukfVhBw=
|
||||
github.com/rabbitmq/amqp091-go v1.10.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o=
|
||||
github.com/sparetimecoders/goamqp v0.3.1 h1:NCzdyAz84G679HlO+ivhyoI1aMgXEe3qfqpn4EChu1s=
|
||||
github.com/sparetimecoders/goamqp v0.3.1/go.mod h1:PjkgrmsuMVgRbiQDTLs0pCWYrcQgqcUee38JjCDZdlk=
|
||||
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
|
||||
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/sparetimecoders/goamqp v0.3.2 h1:XdlyUBAJS5RcURw+SnnPjPJJuofddZwQsjAf05VPXvI=
|
||||
github.com/sparetimecoders/goamqp v0.3.2/go.mod h1:W9NRCpWLE+Vruv2dcRSbszNil2O826d2Nv6kAkETW5o=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
|
||||
Reference in new issue
Block a user