-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to support V2 of Slack OAUTH 2.0 and aws-sdk-go-v2 (#16)
These are updates to support Slack's new OAUTH model as well as to migrate to aws-sdk-go-v2. - We no longer need to use or store user or bot tokens - Updated to use aws-sdk-go-v2 calls for dynamodb - Migrated to use more builtins from slack-go/slack - Cleaned up some error handling and logging - Changed Docker build to support shelling into container and added in example for pre-run script support
- Loading branch information
Showing
12 changed files
with
290 additions
and
300 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM alpine:latest as alpine | ||
|
||
RUN apk add -U --no-cache ca-certificates | ||
RUN apk add -U --no-cache bash ca-certificates jq | ||
|
||
FROM scratch | ||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
ADD main / | ||
CMD ["/main"] | ||
COPY build/run.sh / | ||
|
||
CMD ["/run.sh"] | ||
EXPOSE 8080 |
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,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# pre-run.sh is intended to include environment specific | ||
# setup such as env var injection of secrets. | ||
if [ -f /usr/jitsi/pre-run.sh ]; then | ||
. /usr/jitsi/pre-run.sh | ||
fi | ||
|
||
exec /main |
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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
module github.com/jitsi/jitsi-slack | ||
|
||
go 1.15 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.15.6 | ||
github.com/aws/aws-sdk-go-v2 v1.2.0 | ||
github.com/aws/aws-sdk-go-v2/config v1.1.1 | ||
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.0.2 | ||
github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression v1.0.2 | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.1.1 | ||
github.com/caarlos0/env v3.3.0+incompatible | ||
github.com/dgrijalva/jwt-go v3.2.0+incompatible | ||
github.com/go-ini/ini v1.38.1 // indirect | ||
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect | ||
github.com/jtolds/gls v4.2.1+incompatible // indirect | ||
github.com/justinas/alice v0.0.0-20171023064455-03f45bd4b7da | ||
github.com/mitchellh/mapstructure v1.1.2 | ||
github.com/rs/xid v1.2.0 // indirect | ||
github.com/rs/zerolog v1.8.0 | ||
github.com/slack-go/slack v0.8.0 | ||
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect | ||
github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c // indirect | ||
github.com/stretchr/testify v1.3.0 // indirect | ||
github.com/vincent-petithory/dataurl v0.0.0-20160330182126-9a301d65acbb | ||
github.com/vincent-petithory/dataurl v0.0.0-20191104211930-d1553a71de50 | ||
github.com/zenazn/goji v0.0.0-20160507202103-64eb34159fe5 // indirect | ||
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 // indirect | ||
golang.org/x/sys v0.0.0-20180808154034-904bdc257025 // indirect | ||
golang.org/x/text v0.3.0 // indirect | ||
gopkg.in/ini.v1 v1.41.0 // indirect | ||
golang.org/x/sys v0.0.0-20210226181700-f36f78243c0c // indirect | ||
) |
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
Oops, something went wrong.