Skip to content

Commit 743d38c

Browse files
committed
Bumped v0.4.14
Signed-off-by: Vishal Rana <[email protected]>
1 parent 7ddf223 commit 743d38c

File tree

11 files changed

+377
-28
lines changed

11 files changed

+377
-28
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM alpine:3.7
1+
FROM alpine:3.9
22

33
# https://letsencrypt.org
44
RUN apk add --no-cache ca-certificates
55

6-
COPY dist/linux_amd64/armor /usr/local/bin
6+
COPY dist/armor_linux_amd64/armor /usr/local/bin
77

88
ENTRYPOINT ["armor"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/armor
2-
VERSION = 0.4.13
2+
VERSION = 0.4.14
33

44
run:
55
go run cmd/armor/main.go

_fixture/cert.pem

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIC+TCCAeGgAwIBAgIQfvDmeKi9wQ4ViW0BkXGF0zANBgkqhkiG9w0BAQsFADAS
3+
MRAwDgYDVQQKEwdBY21lIENvMB4XDTE5MDcxNDIwNTAyN1oXDTIwMDcxMzIwNTAy
4+
N1owEjEQMA4GA1UEChMHQWNtZSBDbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
5+
AQoCggEBAKMPdbQa0bC7wNXIGVX6s82OE8FCS/8N/q+Qnfl5PwiBOW0iOFNA637P
6+
B2GUg5VKO9aH9713Kd450tzQNltn+R4XvGYY/ee3Fmvy9D0YtHpvhk/sJE0zZL4S
7+
bqCIiLFGUIoYveo7HE0xduPJB26sTElLcdI+OroZA5mLY1ZIGu6KrjMjSfi1GwO9
8+
itlh1ksSXPj/tnDubB6JMYjOfJxrcHh2yYONaifOLppY2KbYpNkIRy3nGSv7tXGz
9+
7ilzgJiCqvrfdIICMh3F6aqvrLZBOOk3NfH8azKznLi9TAGSBf6otqemBsXnQKnx
10+
9fL+b1N35FscJ/1VadAltzRWk1RQwvsCAwEAAaNLMEkwDgYDVR0PAQH/BAQDAgWg
11+
MBMGA1UdJQQMMAoGCCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwFAYDVR0RBA0wC4IJ
12+
bG9jYWxob3N0MA0GCSqGSIb3DQEBCwUAA4IBAQBIqbGy228tZR/H2dbTL393MrF3
13+
J+64X9KvTwj0zVkiFwocBVSOCJg0N6olLawmWH+CJ65hEkFj3SNspkyUZO/UFNPO
14+
/1RNh1/z4azPEorcWV5K33jOZLUTM6EE+k9P82wAbYUevo34I8LmvB0fqnod5/Tq
15+
90xyIZsczMFMeOoFVGILIQfQvu6pC7warVsjyxqN1DIn1NYi9iIbJczip+Dl0oJC
16+
c50g58YkT+jLHJz+/Z8QE0rVsjWSAdbuuJg/J7czoS7NICMP4CxxeTRKSh8UVMxJ
17+
yPSLxQiMSXLD38QJnuO2vPukAqnH5Hnq9BeRePWWTqei3jusJtZHgA2x1tii
18+
-----END CERTIFICATE-----

_fixture/config/1.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
name: test
2-
address: :8080
1+
address: :7000
32
plugins:
43
- name: logger
5-
hosts:
6-
localhost:
7-
plugins:
8-
- name: proxy
9-
targets:
10-
- name: cloud
11-
url: http://localhost:9090
4+
- name: redirect
5+
from: /docs
6+
to: /docs/api/currency/convert
7+
code: 302
8+
- name: static
9+
root: /Users/vr/Projects/labstack/web/build
10+
html5: true

_fixture/config/bug51.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
address: ":8000"
2+
tls:
3+
address: ":4430"
4+
cert_file: _fixture/cert.pem
5+
key_file: _fixture/key.pem
6+
key_pinning: true
7+
hosts:
8+
localhost:
9+
plugins:
10+
- name: static
11+
html5: true
12+
browse: true
13+
root: "."

_fixture/key.pem

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-----BEGIN RSA PRIVATE KEY-----
2+
MIIEpAIBAAKCAQEAow91tBrRsLvA1cgZVfqzzY4TwUJL/w3+r5Cd+Xk/CIE5bSI4
3+
U0Drfs8HYZSDlUo71of3vXcp3jnS3NA2W2f5Hhe8Zhj957cWa/L0PRi0em+GT+wk
4+
TTNkvhJuoIiIsUZQihi96jscTTF248kHbqxMSUtx0j46uhkDmYtjVkga7oquMyNJ
5+
+LUbA72K2WHWSxJc+P+2cO5sHokxiM58nGtweHbJg41qJ84umljYptik2QhHLecZ
6+
K/u1cbPuKXOAmIKq+t90ggIyHcXpqq+stkE46Tc18fxrMrOcuL1MAZIF/qi2p6YG
7+
xedAqfH18v5vU3fkWxwn/VVp0CW3NFaTVFDC+wIDAQABAoIBAQCNXe/bz4yQPpa2
8+
QR7GDe4ofc7etA2S+J0ftK9hBB8DzpTs6sgOVbBVZkOt88YIfi1WltbP6ingQh1v
9+
1wvpP0EZN9bcZTpr062atS3Ocka2B05YqA/o5m+m4fALOZPYrW9R6pVsJwcoXYQH
10+
g9fvuW0B9midr9nWUa1vRws+WJEQ0MRjlkb1xjgUoE9aPJVYIWnywe8+dAVev+B2
11+
GJM4kFAbf1/ijfpr/Nd9iWwjsMDY+KBAK1hII2ShovcY6vVYbB9quJCj2V+tid81
12+
Q8Owtt1S8zdo3hIe050HxSyK01bnWld3rPBih1LtFJRAfZbyy/1k/0R/0fID9uHZ
13+
U0brCNFxAoGBAM2+fAP4LmnFZ7e8UTXtlMLK9GF79rj3YOQPoB4fXwszbetSj6X3
14+
LJWdULDr5o+yjAaAO6VleIMa7Ihz/JgL9WuiCgdO6Ctu/zliW87imokvoSNL2+ca
15+
Hv/oG6b1Hl5QKWBTEq6MfS1ceici/B4A3x0FFU4yepjSpfI81eeU4ig/AoGBAMrj
16+
5N8qaf4D7oUgvee9a7bxY+TrJg3rapfAx5lfKQe+M7N6fMsTH27JgGS7M/PIclEX
17+
4L4chGH1bGO8ZNSnr9w82poVKpKmaB8UWLE1w0wB7QnhcPa7mpZwEz90v47Mawf+
18+
5Ry8Ct1+p0zPzXE6yz2c7JOG5imI8+zLph7WeZZFAoGAdmnWiJZTaC7kddwdxXL6
19+
tm4G3wBwzJ4cFsZjelLF6fVsow6+fF/ZOjbzlRAAf93cN3WgXp4bESHy1soirAPd
20+
+Veme/RPLYhRvl48xsKm/KP8Ewt7AfSHuPOGzr2u/8sVNUo6q1lSRkQ+Tb4V6tLH
21+
lrUxQPNOmhxKxDN9TS7kRxMCgYEAuvP2AKGPm246ClgaRYDo0WFrQBRiM29bAEy2
22+
X6AtKaJc96QFfAa57xckBS3u+FMa65iKEgQrBCzm3JxLeRyvUsyMTnD0kr9dsE3K
23+
UDiPJemcZ39h3SkPkFHjmpRUsxuwAGUi7zBi/qhnNsNAtnaLstF3uZUTXvCAfBFH
24+
mKDe1tUCgYAbfMSgrTX4QuEyt9oe20HET4csHjEOeZoSNOeTdr1R7bXeNkxIzBzf
25+
kbKDJSr9NCn3VlnH1+Lru3ijKCuP5BGZNz5YnAT/eI6qXSM/is0ufErxx0LthsQo
26+
u9aOi6JOfGQ9/fTSyPBYx/fOcmfbRg1lIdJ3vnJHBWl8OMuR/TGrmQ==
27+
-----END RSA PRIVATE KEY-----

admin/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "armor",
3-
"version": "0.4.13",
3+
"version": "0.4.14",
44
"description": "Armor admin",
55
"author": "Vishal Rana <[email protected]>",
66
"private": true,

armor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type (
9999
)
100100

101101
const (
102-
Version = "0.4.13"
102+
Version = "0.4.14"
103103
Website = "https://armor.labstack.com"
104104
)
105105

@@ -114,6 +114,7 @@ var (
114114
plugin.PluginAddTrailingSlash: true,
115115
plugin.PluginRemoveTrailingSlash: true,
116116
plugin.PluginNonWWWRedirect: true,
117+
plugin.PluginRewrite: true,
117118
}
118119
)
119120

go.mod

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,71 @@ module github.com/labstack/armor
33
go 1.12
44

55
require (
6+
cloud.google.com/go v0.41.0 // indirect
67
github.com/Knetic/govaluate v3.0.0+incompatible
8+
github.com/Shyp/generate-tls-cert v0.0.0-20180217183001-cd913b339294 // indirect
9+
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 // indirect
10+
github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 // indirect
11+
github.com/armon/go-radix v1.0.0 // indirect
712
github.com/asdine/storm v2.1.2+incompatible
13+
github.com/coreos/bbolt v1.3.3 // indirect
14+
github.com/coreos/etcd v3.3.13+incompatible // indirect
15+
github.com/coreos/go-semver v0.3.0 // indirect
16+
github.com/coreos/go-systemd v0.0.0-20190620071333-e64a0ec8b42a // indirect
817
github.com/docker/libkv v0.2.1
918
github.com/ghodss/yaml v1.0.0
19+
github.com/go-kit/kit v0.9.0 // indirect
20+
github.com/go-sql-driver/mysql v1.4.1 // indirect
21+
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
22+
github.com/golang/protobuf v1.3.2 // indirect
23+
github.com/grpc-ecosystem/grpc-gateway v1.9.4 // indirect
1024
github.com/hashicorp/consul/api v1.1.0 // indirect
25+
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect
26+
github.com/hashicorp/go-msgpack v0.5.5 // indirect
27+
github.com/hashicorp/go-retryablehttp v0.5.4 // indirect
28+
github.com/hashicorp/go-rootcerts v1.0.1 // indirect
29+
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
1130
github.com/hashicorp/logutils v1.0.0
31+
github.com/hashicorp/mdns v1.0.1 // indirect
32+
github.com/hashicorp/memberlist v0.1.4 // indirect
1233
github.com/hashicorp/serf v0.8.3
1334
github.com/jmoiron/sqlx v1.2.0
35+
github.com/kisielk/errcheck v1.2.0 // indirect
36+
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
37+
github.com/kr/pty v1.1.8 // indirect
1438
github.com/labstack/echo v3.3.10+incompatible // indirect
1539
github.com/labstack/echo/v4 v4.1.6
1640
github.com/labstack/gommon v0.2.9
1741
github.com/labstack/tunnel-client v0.2.12
1842
github.com/lib/pq v1.1.1
43+
github.com/magiconair/properties v1.8.1 // indirect
44+
github.com/mattn/go-sqlite3 v1.10.0 // indirect
45+
github.com/miekg/dns v1.1.15 // indirect
1946
github.com/mitchellh/go-homedir v1.1.0
2047
github.com/mitchellh/mapstructure v1.1.2
48+
github.com/pelletier/go-toml v1.4.0 // indirect
49+
github.com/posener/complete v1.2.1 // indirect
50+
github.com/prometheus/common v0.6.0 // indirect
51+
github.com/prometheus/procfs v0.0.3 // indirect
52+
github.com/rogpeppe/fastuuid v1.2.0 // indirect
53+
github.com/russross/blackfriday v2.0.0+incompatible // indirect
2154
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec // indirect
55+
github.com/sirupsen/logrus v1.4.2 // indirect
56+
github.com/spf13/afero v1.2.2 // indirect
2257
github.com/spf13/cobra v0.0.5
58+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
59+
github.com/spf13/viper v1.4.0 // indirect
2360
github.com/stretchr/testify v1.3.0
61+
github.com/ugorji/go v1.1.7 // indirect
2462
github.com/valyala/fasttemplate v1.0.1
2563
go.etcd.io/bbolt v1.3.3 // indirect
26-
golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56
64+
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
65+
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f // indirect
66+
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9 // indirect
67+
golang.org/x/mobile v0.0.0-20190711165009-e47acb2ca7f9 // indirect
68+
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 // indirect
69+
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 // indirect
70+
golang.org/x/tools v0.0.0-20190712213246-8b927904ee0d // indirect
71+
google.golang.org/genproto v0.0.0-20190708153700-3bdd9d9f5532 // indirect
72+
google.golang.org/grpc v1.22.0 // indirect
2773
)

0 commit comments

Comments
 (0)