-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git Move to go module and add ingress-proxy-addr option
- Loading branch information
Showing
54 changed files
with
116 additions
and
7,465 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install curl | ||
run: sudo apt-get update && sudo apt-get install -y libcurl4 libcurl4-openssl-dev | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,6 @@ | ||
builds: | ||
- id: "squid-auth-healthcheck" | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
.PHONY: build | ||
|
||
build: | ||
go build -o squid-auth-healthcheck |
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 |
---|---|---|
|
@@ -16,21 +16,28 @@ The user name must be entered in the UPN(User principal name) format. The domain | |
|
||
``` | ||
squid-auth-healthcheck --proxy-addr 127.0.0.1 --proxy-username [email protected] --proxy-password test --url https://google.com --strict-url --strict-auth --auth-type ntlm --auth-type kerberos --verbose | ||
``` | ||
|
||
You can also check the availability of a resource on the Internet by accessing a separate node of the proxy server cluster using the address of the proxy server cluster | ||
|
||
``` | ||
squid-auth-healthcheck --cluster-check --ingress-proxy-addr proxy.contoso.com --proxy-addr proxy-node01.contoso.com --proxy-username [email protected] --proxy-password test --url https://google.com --strict-url --strict-auth --auth-type ntlm --auth-type kerberos --verbose | ||
``` | ||
|
||
## Parameters | ||
|
||
``` | ||
Application Options: | ||
-u, --url= url to check for availability (required) | ||
--auth-type= type of used proxy authentication mechanism. [ntlm, kerberos, no, all] (required) | ||
--proxy-addr= proxy server address (required) | ||
--proxy-port= proxy server port (default: 3128) (default: 3128) | ||
--proxy-username= proxy user login | ||
--proxy-password= proxy user password | ||
--timeout= healthcheck connection timeout in seconds (default: 2) (default: 2) | ||
--strict-url the check returns a positive result only if all URLs are available | ||
--strict-auth the check returns a positive result only if url are available with all auth method | ||
-v, --verbose output verbose healthcheck information | ||
``` | ||
-u, --url= url to check for availability (required) | ||
--auth-type= type of used proxy authentication mechanism. [ntlm, kerberos, no, all] (required) | ||
--proxy-addr= proxy server address (required) | ||
--proxy-port= proxy server port (default: 3128) | ||
--proxy-username= proxy user login | ||
--proxy-password= proxy user password | ||
--timeout= healthcheck connection timeout in seconds (default: 2) | ||
--strict-url the check returns a positive result only if all URLs are available | ||
--strict-auth the check returns a positive result only if url are available with all auth method | ||
--cluster-check check through proxy cluster node instead standalone proxy server | ||
--ingress-proxy-addr= ingress proxy address. It will be used for kerberos verification. This FQDN will be used when forming the request, but the IP address of the node of the proxy server cluster will be used as the IP address | ||
-v, --verbose output verbose healthcheck information | ||
``` |
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,10 @@ | ||
module github.com/verdel/squid-auth-healthcheck | ||
|
||
go 1.18 | ||
|
||
require ( | ||
github.com/andelf/go-curl v0.0.0-20200630032108-fd49ff24ed97 | ||
github.com/jessevdk/go-flags v1.5.0 | ||
) | ||
|
||
require golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 // 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
github.com/andelf/go-curl v0.0.0-20200630032108-fd49ff24ed97 h1:Nyfs+rh56aORy2tGMI9GCYEqTfePwL1v47qOzebfv/o= | ||
github.com/andelf/go-curl v0.0.0-20200630032108-fd49ff24ed97/go.mod h1:WO1d2m1QDzkoPcgn9lgHVMi7qQR5j3jxYjIIvMTHpC0= | ||
github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= | ||
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= | ||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 h1:EZ2mChiOa8udjfp6rRmswTbtZN/QzUQp4ptM4rnjHvc= | ||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.