-
Notifications
You must be signed in to change notification settings - Fork 4
add fips release handlers; stop setting dest channel #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
eb07272
add fips release handlers
qrkourier 97c58ca
update py webhook action to use a channel-specific url; add debug
qrkourier e1ba752
stop pinning py sdk version so we can always test latest
qrkourier da83689
deprecate channel input because incoming webhooks are now locked to a…
qrkourier fcd76b0
print env and event
qrkourier 221bb78
aggressively debug inconsistent segfault
qrkourier fa26c23
add py requirements file
qrkourier 8d53649
don't raise bash exceptions while printing debug info
qrkourier 3bed87d
stop setting pipefail
qrkourier 8a5e828
also debug docker action
qrkourier f42d987
fiddle escapes
qrkourier ceee0ea
use env file
qrkourier 0ff991d
debug in bash container
qrkourier a2fe810
beef up backtrace script
qrkourier 2e2f14a
add interpreter to zhook.py
qrkourier aeaf3b8
interpolate vars in heredoc
qrkourier cc5bd89
test the script with valgrind in docker too
qrkourier 1470ce9
pass json as an encoding to avoid word-splitting errors
qrkourier e124233
add required vars to the docker env
qrkourier 2f496ba
tidy whitespace
qrkourier 81ff035
try zhook branch
qrkourier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 +1,13 @@ | ||
| FROM python:3-slim AS builder | ||
|
|
||
| RUN pip install --target=/app requests openziti | ||
| COPY requirements.txt /tmp/requirements.txt | ||
| RUN pip install --target=/app --requirement /tmp/requirements.txt | ||
|
|
||
| # https://github.com/GoogleContainerTools/distroless | ||
| FROM gcr.io/distroless/python3-debian12 | ||
| COPY --from=builder /app /app | ||
| COPY ./zhook.py /app/zhook.py | ||
| COPY --chmod=0755 ./zhook.py /app/zhook.py | ||
| WORKDIR /app | ||
| ENV PYTHONPATH=/app | ||
| ENV ZITI_LOG=6 | ||
| ENV TLSUV_DEBUG=6 | ||
|
|
||
| CMD ["/app/zhook.py"] |
This file contains hidden or 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 hidden or 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,30 +1,34 @@ | ||
| name: 'Ziti Mattermost Action - Python' | ||
| description: 'POST to Mattermost Webhook endpoint over a Ziti network' | ||
| name: Ziti Mattermost Action - Python | ||
| description: POST to Mattermost Webhook endpoint over a Ziti network | ||
| branding: | ||
| icon: 'zap' | ||
| color: 'red' | ||
| icon: zap | ||
| color: red | ||
| inputs: | ||
| zitiId: | ||
| description: 'Identity JSON for an enrolled Ziti endpoint' | ||
| description: Identity JSON for an enrolled Ziti endpoint | ||
| required: true | ||
| webhookUrl: | ||
| description: 'URL for posting the payload' | ||
| description: Mattermost-channel-specific URL for posting the event | ||
| required: true | ||
| eventJson: | ||
| description: 'GitHub event JSON (github.event)' | ||
| description: GitHub event JSON (github.event) | ||
| required: true | ||
| senderUsername: | ||
| description: 'Mattermost username' | ||
| description: Mattermost username | ||
| required: false | ||
| default: "GithubZ" | ||
| default: GithubZ | ||
| senderIconUrl: | ||
| description: 'Mattermost user icon URL' | ||
| description: Mattermost user icon URL | ||
| required: false | ||
| default: "https://github.com/fluidicon.png" | ||
| default: https://github.com/fluidicon.png | ||
| destChannel: | ||
| description: 'Mattermost channel' | ||
| description: Mattermost channel (ignored because incoming webhooks are locked to a channel) | ||
| required: false | ||
| default: "dev-notifications" | ||
| default: null | ||
| zitiLogLevel: | ||
| description: Ziti log level | ||
| required: false | ||
| default: 3 | ||
| runs: | ||
| using: "docker" | ||
| image: "Dockerfile" | ||
| using: docker | ||
| image: Dockerfile | ||
This file contains hidden or 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,7 @@ | ||
| FROM zhook-action AS distroless | ||
|
|
||
| FROM python:3-slim AS debug | ||
|
|
||
| COPY --from=distroless /app /app | ||
|
|
||
| RUN apt-get update && apt-get install -y valgrind |
This file contains hidden or 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,2 @@ | ||
| requests | ||
| openziti |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.