-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from twistlock/environment_settings
Add doc.go, fix readme + UT for auditori
- Loading branch information
Showing
7 changed files
with
66 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,7 @@ install: | |
script: | ||
- make all | ||
services: | ||
- docker | ||
- docker | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
FROM alpine:3.3 | ||
MAINTAINER Liron Levin <[email protected]> | ||
|
||
# Indicates basic authorization is enforced | ||
ENV AUTHORIZER basic | ||
|
||
# Indicates basic auditor type is used (log to console) | ||
ENV AUDITOR basic | ||
|
||
VOLUME /var/lib/twistlock/policy.json | ||
VOLUME /run/docker/plugins/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// authz package consist of specific authorization and auditing implementations | ||
// supported mechanism: | ||
// basic authorization - basic policy evaluation based on JSON policy files | ||
// basic auditing - basic auditing to log file (JSON format) - only incoming request is audited | ||
package authz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// core packge consist of common authorization building block required for implementing | ||
// concrete authorization logic. For example, route parsing and plugin service interface. | ||
package core |