forked from bitnami-labs/sealed-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added trigger go code and executable
This is a trigger activation implementation that is added to the container for in container key-gen activation. This is intended to replace the key-gen endpoint for access restriction to the trigger. Change involves adding a second port opened by server.go that should not be opened to the outside world. Also a new trigger file is added to the makefile and copied into the controller image.
- Loading branch information
Showing
6 changed files
with
54 additions
and
3 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
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,17 @@ | ||
package main | ||
|
||
import ( | ||
"net" | ||
"net/rpc" | ||
) | ||
|
||
func main() { | ||
conn, err := net.Dial("tcp", ":8081") | ||
if err != nil { | ||
panic(err) | ||
} | ||
client := rpc.NewClient(conn) | ||
if err = client.Call("trigger.Trigger", struct{}{}, &struct{}{}); err != nil { | ||
panic(err) | ||
} | ||
} |
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,8 @@ | ||
FROM alpine | ||
MAINTAINER Angus Lees <gus@inodes.org> | ||
COPY controller /usr/local/bin/ | ||
COPY trigger /usr/local/bin/ | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8081 | ||
ENTRYPOINT ["controller"] |
Binary file not shown.