Skip to content

Commit

Permalink
Merge branch 'main' into ci-license-check-fix-2
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis authored Mar 15, 2024
2 parents 23022a3 + 4c734bb commit e67bca1
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

On macOS, these can be installed with [brew](https://docs.brew.sh/Installation)

`brew install buf grpcurl goose`
`brew install buf grpcurl goose softhsm`

### Run

Expand Down
2 changes: 2 additions & 0 deletions example-opentdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ logger:
# user: postgres
# password: changeme
services:
kas:
enabled: true
policy:
enabled: true
entitlements:
Expand Down
57 changes: 57 additions & 0 deletions no-kas-opentdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
logger:
level: debug
type: text
output: stdout
# DB and Server confgurations are defaulted for local development
# db:
# host: localhost
# port: 5432
# user: postgres
# password: changeme
services:
kas:
enabled: false
policy:
enabled: true
entitlements:
providers:
# - type: keycloak
# name: gcp
# keycloak:
# host: "https://keycloak.example.com/auth"
# realm: "test"
# clientId: "test"
# clientSecret:
# fromEnv: "KEYCLOAK_CLIENT_SECRET"

- type: ldap
name: ad-1
ldap:
baseDN: "dc=dev,dc=example,dc=com"
host: ""
port: 389
bindUsername: ""
bindPassword:
fromEnv: "LDAP_BIND_PASSWORD"
attributeFilters:
exclude:
- "objectSid"
- "objectGUID"
- "msExchMailboxGuid"
- "msExchMailboxSecurityDescriptor"
server:
auth:
enabled: false
audience: "http://localhost:9000"
issuer: http://localhost:8888/auth/realms/opentdf
clients:
- "opentdf"
grpc:
port: 9000
reflectionEnabled: true # Default is false
hsm:
enabled: false
http:
port: 8080
opa:
embedded: true # Only for local development
2 changes: 1 addition & 1 deletion services/kas/kas.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *KasService) initProvider() error {

func NewRegistration() serviceregistry.Registration {
return serviceregistry.Registration{
Namespace: "policy",
Namespace: "kas",
ServiceDesc: &kaspb.AccessService_ServiceDesc,
RegisterFunc: func(srp serviceregistry.RegistrationParams) (any, serviceregistry.HandlerServer) {
k := KasService{o: srp.OTDF}
Expand Down

0 comments on commit e67bca1

Please sign in to comment.