You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior and actual behavior:
i use the latest Harbor docker images from bitnami.
additionally i have traefik in front as a proxy with a a little customized nginx config.
this works over a certain period of time without any problems. however, for some unknown reason,
i am either logged out during a session or cannot log in at all.
Often only a restart of the Harbor stack helps here.
Here is the error message:
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="8bb28dff-62ab-4feb-83dd-68925eff21bc" traceID="1a3279edf3fa6d01c5252ebaa2c8fda1"]: an unauthorized security context generated for request GET /api/v2.0/labels
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="f34ae086-7ac8-4193-849c-35fcfbc888a3" traceID="55609e1e372df527901c6239c1b6b379"]: an unauthorized security context generated for request GET /api/v2.0/registries
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="2fdd3c75-8117-4c2a-8957-4a39c11f6e24" traceID="2e1d58ef7b86e080afbfc4f59972dec8"]: an unauthorized security context generated for request GET /api/v2.0/jobservice/pools
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="301068b8-a526-406f-9140-762f2c7458dd" traceID="5585a8916986903fcef988174ca3154c"]: an unauthorized security context generated for request GET /api/v2.0/schedules/all/paused
2025-02-17T13:22:54Z [DEBUG] [/lib/http/error.go:62]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}
2025-02-17T13:22:54Z [DEBUG] [/lib/http/error.go:62]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}
2025-02-17T13:22:54Z [DEBUG] [/lib/http/error.go:62]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/log/log.go:31]: attach request id 4617751f-e3bf-4268-b3e9-c264485d9ac2 to the logger for the request GET /api/v2.0/replication/policies
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/artifactinfo/artifact_info.go:55]: In artifact info middleware, url: /api/v2.0/replication/policies?page_size=5&page=1
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="4617751f-e3bf-4268-b3e9-c264485d9ac2" traceID="64884e7cee97ac3b48a573996d003443"]: an unauthorized security context generated for request GET /api/v2.0/replication/policies
2025-02-17T13:22:54Z [DEBUG] [/lib/http/error.go:62]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/log/log.go:31]: attach request id 002eca63-bd4d-4388-a764-0b1f0355b14e to the logger for the request GET /api/v2.0/users/current
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/artifactinfo/artifact_info.go:55]: In artifact info middleware, url: /api/v2.0/users/current
2025-02-17T13:22:54Z [DEBUG] [/server/middleware/security/unauthorized.go:28][requestID="002eca63-bd4d-4388-a764-0b1f0355b14e" traceID="f693499a7b3837717338340d57ab1fca"]: an unauthorized security context generated for request GET /api/v2.0/users/current
2025-02-17T13:22:54Z [DEBUG] [/lib/http/error.go:62]: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]}
2025-02-17T13:23:10Z [DEBUG] [/pkg/task/dao/execution.go:498]: skip to refresh, no outdate execution status found
worker_processes auto;
error_log "/opt/bitnami/nginx/logs/error.log";
pid "/opt/bitnami/nginx/tmp/nginx.pid";
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
tcp_nodelay on;
# this is necessary for us to be able to disable request buffering in all cases
proxy_http_version 1.1;
upstream core {
server core:8080;
}
upstream portal {
server portal:8080;
}
log_format timed_combined '$remote_addr - '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'$request_time $upstream_response_time $pipe';
client_body_temp_path "/opt/bitnami/nginx/tmp/client_body" 1 2;
proxy_temp_path "/opt/bitnami/nginx/tmp/proxy" 1 2;
fastcgi_temp_path "/opt/bitnami/nginx/tmp/fastcgi" 1 2;
scgi_temp_path "/opt/bitnami/nginx/tmp/scgi" 1 2;
uwsgi_temp_path "/opt/bitnami/nginx/tmp/uwsgi" 1 2;
server {
listen 8080;
server_tokens off;
# disable any limits to avoid HTTP 413 for large image uploads
client_max_body_size 0;
# costumized location config file can place to /opt/bitnami/nginx/conf with prefix harbor.http. and suffix .conf
include /opt/bitnami/conf/nginx/conf.d/harbor.http.*.conf;
location / {
proxy_pass http://portal/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /c/ {
proxy_pass http://core/c/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /api/ {
proxy_pass http://core/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /chartrepo/ {
proxy_pass http://core/chartrepo/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /v1/ {
return 404;
}
location /v2/ {
proxy_pass http://core/v2/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /service/ {
proxy_pass http://core/service/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings.
#proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_request_buffering off;
}
location /service/notifications {
return 404;
}
}
}
Any idea what the problem could be?
Thanks for any help
Versions:
Please specify the versions of following systems.
harbor version: latest
The text was updated successfully, but these errors were encountered:
Expected behavior and actual behavior:
i use the latest Harbor docker images from bitnami.
additionally i have traefik in front as a proxy with a a little customized nginx config.
this works over a certain period of time without any problems. however, for some unknown reason,
i am either logged out during a session or cannot log in at all.
Often only a restart of the Harbor stack helps here.
Here is the error message:
docker compose / stack file:
nginx,conf
Any idea what the problem could be?
Thanks for any help
Versions:
Please specify the versions of following systems.
The text was updated successfully, but these errors were encountered: