Compare commits
No commits in common. "f9e0465ae6a29645f851f56ab34ddead5c85355c" and "aa5b414af226c84e046c08c6dde4b7b43d75a3cf" have entirely different histories.
f9e0465ae6
...
aa5b414af2
4 changed files with 4 additions and 7 deletions
|
@ -4,8 +4,8 @@ name: basic-web-app
|
||||||
PullName: basic-app-puller
|
PullName: basic-app-puller
|
||||||
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
||||||
type: application
|
type: application
|
||||||
version: 2.2.3
|
version: 2.2.2
|
||||||
appVersion: "2.2.3"
|
appVersion: "2.2.2"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
podman build -t glvx/web-updater .
|
podman build -t glvx/web-updater .
|
||||||
podman push glvx/web-updater docker://docker.io/glvx/web-updater:241208-0
|
podman push glvx/web-updater docker://docker.io/glvx/web-updater:241204-2
|
||||||
|
|
|
@ -165,7 +165,6 @@ def require_basic_auth(f):
|
||||||
try:
|
try:
|
||||||
auth_type, auth_string = auth_header.split(' ', 1)
|
auth_type, auth_string = auth_header.split(' ', 1)
|
||||||
if auth_type.lower() != 'basic':
|
if auth_type.lower() != 'basic':
|
||||||
logger.info("Invalid authentication header '{auth_type}'")
|
|
||||||
return authenticate()
|
return authenticate()
|
||||||
|
|
||||||
# Decode base64 credentials
|
# Decode base64 credentials
|
||||||
|
@ -173,11 +172,9 @@ def require_basic_auth(f):
|
||||||
username, password = credentials.split(':', 1)
|
username, password = credentials.split(':', 1)
|
||||||
|
|
||||||
if not (username == API_USERNAME and password == API_PASSWORD):
|
if not (username == API_USERNAME and password == API_PASSWORD):
|
||||||
logger.info(f"Invalid authentication with username='{username}' and password='{password}'")
|
|
||||||
return authenticate()
|
return authenticate()
|
||||||
|
|
||||||
except (ValueError, base64.binascii.Error):
|
except (ValueError, base64.binascii.Error):
|
||||||
logger.info("Invalid authentication encoding")
|
|
||||||
return authenticate()
|
return authenticate()
|
||||||
|
|
||||||
return f(*args, **kwargs)
|
return f(*args, **kwargs)
|
||||||
|
|
|
@ -20,7 +20,7 @@ updater:
|
||||||
image:
|
image:
|
||||||
repository: glvx/web-updater
|
repository: glvx/web-updater
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "241208-0"
|
tag: "241204-2"
|
||||||
url: "https://git.aquila-consortium.org/guilhem_lavaux/gl-website-deployer"
|
url: "https://git.aquila-consortium.org/guilhem_lavaux/gl-website-deployer"
|
||||||
ssh:
|
ssh:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue