\r\n\n\n### Steps to reproduce\n\n.\n\n### Expected behavior\n\n_No response_\n\n### System Info\n\n```shell\n\"next-d126cf9e35\"\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [X] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]",[3020,3023],{"name":3021,"color":3022},"bug","d73a4a",{"name":3024,"color":3025},"ui","46DEA2",4677,"woodpecker-ci","woodpecker","open","`tag` pipelines are missing avatar and commit title","2025-01-12T06:19:42Z","https://github.com/woodpecker-ci/woodpecker/issues/4677",0.7308699,{"description":3035,"labels":3036,"number":3041,"owner":3027,"repository":3028,"state":3029,"title":3042,"updated_at":3043,"url":3044,"score":3045},"### Component\n\nserver\n\n### Describe the bug\n\nError when enabling Gitea repository in Woodpecker CI:\n\n`could not create/update repo in store. error=\"pq: duplicate key value violates unique constraint \\\"UQE_repos_name\\\"\"`\n\nThere are no records with forge_id 0 in orgs table where we had similar problems\n\n### Steps to reproduce\n\n1. Press \"Enable\" in repository list\n2. Webhook is created\n3. Record in database can not be updated (possible tries to insert new one instead of updating?)\n\n### Expected behavior\n\n_No response_\n\n### System Info\n\n```shell\n{\"source\":\"https://github.com/woodpecker-ci/woodpecker\",\"version\":\"3.3.0\"}\n```\n\n### Additional context\n\nPostgreSQL database, Gitea forge integration\n\n### Validations\n\n- [x] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [x] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) that reports the same bug to avoid creating a duplicate.\n- [x] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/versions]",[3037,3038],{"name":3021,"color":3022},{"name":3039,"color":3040},"server","5D7A92",4935,"Activating repository error that failed to activate becauce of UQE_repos_name constraint","2025-03-11T14:11:01Z","https://github.com/woodpecker-ci/woodpecker/issues/4935",0.7453539,{"description":3047,"labels":3048,"number":3055,"owner":3027,"repository":3028,"state":3029,"title":3056,"updated_at":3057,"url":3058,"score":3059},"I think we should have a look at https://nextcloud.com/contribute/ and chery-pick some ideas from that",[3049,3052],{"name":3050,"color":3051},"documentation","7D625D",{"name":3053,"color":3054},"enhancement","7E1FE4",4113,"Improve docs about starting to contribute","2024-09-15T09:47:05Z","https://github.com/woodpecker-ci/woodpecker/issues/4113",0.74611235,{"description":3061,"labels":3062,"number":3066,"owner":3027,"repository":3028,"state":3029,"title":3067,"updated_at":3068,"url":3069,"score":3070},"we should create a dedicated module who handle the shutdown context logic ...\r\n\r\nand make it so we dont have to switch out an global context but rather influence it ...\r\n\r\nbased on #3895 and #3896 pre-work",[3063],{"name":3064,"color":3065},"refactor","4f8cc9",3907,"Refactor note: move shutdown context creation into own module","2024-07-14T00:27:20Z","https://github.com/woodpecker-ci/woodpecker/issues/3907",0.74929273,{"description":3072,"labels":3073,"number":3078,"owner":3027,"repository":3028,"state":3029,"title":3079,"updated_at":3080,"url":3081,"score":3082},"we currently don't have a concept how to translate/interpreter the services into \"local backend\" and just ignore them.\r\n\r\nwe should have it that way so it works very similar to what the user know with docker or kube backend.",[3074,3075],{"name":3053,"color":3054},{"name":3076,"color":3077},"backend/local","bfdadc",3095,"Implement services for local backend","2025-02-10T13:40:24Z","https://github.com/woodpecker-ci/woodpecker/issues/3095",0.757306,{"description":3084,"labels":3085,"number":3087,"owner":3027,"repository":3028,"state":3029,"title":3088,"updated_at":3089,"url":3090,"score":3091},"https://github.com/rs/zerolog#contextcontext-integration\r\n\r\nthis allow us to have \"stacktrace\" like logs where we can append log prefixes and pass down",[3086],{"name":3064,"color":3065},2116,"Refactor: use zerolog with context if posible ","2024-06-23T05:42:09Z","https://github.com/woodpecker-ci/woodpecker/issues/2116",0.77044517,{"description":3093,"labels":3094,"number":3096,"owner":3027,"repository":3028,"state":3097,"title":3098,"updated_at":3099,"url":3100,"score":3101},"### Component\r\n\r\nserver, web-ui\r\n\r\n### Describe the bug\r\n\r\nHi, I have problem with my woodpecker instance. I'm using Github to provide OAuth2 Authorization. But the problem I cannot log in to the app. When I clicking \"Log in\" button, it returns to the same screen. Sometimes when I do many clicks in small amount time I need reatuhorize it in Github.\r\n\r\nInstance is hidden with ngnix proxy manager. \r\n\r\nMy docker compose looks like this:\r\n```\r\nservices:\r\n woodpecker-server:\r\n image: woodpeckerci/woodpecker-server:latest\r\n expose:\r\n - 8000\r\n - 9000\r\n volumes:\r\n - ./woodpecker-server-data:/var/lib/woodpecker/\r\n environment:\r\n - WOODPECKER_OPEN=false\r\n - WOODPECKER_HOST=${WOODPECKER_HOST}\r\n - WOODPECKER_GITHUB=true\r\n - WOODPECKER_GITHUB_CLIENT=${WOODPECKER_GITHUB_CLIENT}\r\n - WOODPECKER_GITHUB_SECRET=${WOODPECKER_GITHUB_SECRET}\r\n - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}\r\n - WOODPECKER_ADMIN=${WOODPECKER_ADMIN}\r\n - WOODPECKER_REPO_OWNERS=${WOODPECKER_REPO_OWNERS}\r\n networks:\r\n - ngnix-internal\r\n - composehook-internal\r\n woodpecker-agent:\r\n image: woodpeckerci/woodpecker-agent:latest\r\n command: agent\r\n restart: always\r\n depends_on:\r\n - woodpecker-server\r\n volumes:\r\n - ./woodpecker-agent-config:/etc/woodpecker\r\n - /var/run/docker.sock:/var/run/docker.sock\r\n environment:\r\n - WOODPECKER_SERVER=woodpecker-server:9000\r\n - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}\r\n - WOODPECKER_BACKEND_DOCKER_NETWORK=composehook-internal\r\n networks:\r\n - ngnix-internal\r\n - composehook-internal\r\nnetworks:\r\n ngnix-internal:\r\n external: true\r\n name: ngnix-internal\r\n composehook-internal:\r\n external: true\r\n name: composehook-internal\r\n```\r\n\r\nIn logs I haven't see something weird or wrong.\r\n\r\n\r\n### System Info\r\n\r\n```shell\r\n{\"source\":\"https://github.com/woodpecker-ci/woodpecker\",\"version\":\"2.4.1\"}\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\r\n- [X] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]",[3095],{"name":3021,"color":3022},3689,"closed","Stuck on login screen. ","2024-06-21T08:20:32Z","https://github.com/woodpecker-ci/woodpecker/issues/3689",0.69989765,{"description":3103,"labels":3104,"number":3106,"owner":3027,"repository":3028,"state":3097,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Component\r\n\r\nagent\r\n\r\n### Describe the bug\r\n\r\nWhen having a backend error in the config, i.e. a malformed env var, the step and build are marked as successful even though they should be marked as \"failed\". \r\n\r\n\r\n\r\n\r\nk8s backend\r\n\r\n\r\n### System Info\r\n\r\n```shell\r\n{\"source\":\"https://github.com/woodpecker-ci/woodpecker\",\"version\":\"next-6ab9f802\"}\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/master/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\r\n- [X] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]\r\n- [X] Check that this is a concrete bug. For Q&A join our [Discord Chat Server](https://discord.gg/fcMQqSMXJy) or the [Matrix room](https://matrix.to/#/#woodpecker:matrix.org).",[3105],{"name":3021,"color":3022},1871,"Build is marked as \"successful\" although a backend error occurred","2025-01-10T21:25:48Z","https://github.com/woodpecker-ci/woodpecker/issues/1871",0.72631866,{"description":3112,"labels":3113,"number":3117,"owner":3027,"repository":3028,"state":3097,"title":3118,"updated_at":3119,"url":3120,"score":3121},"### Clear and concise description of the problem\r\n\r\nI'm trying to run a container image build step in my pipeline that uses [buildah](https://quay.io/repository/buildah/stable?tab=info). I'm running into a lot of permission errors like this:\r\n\r\n```\r\ntime=\"2023-10-07T19:59:26Z\" level=error msg=\"writing \\\"0 0 4294967295\\\\n\\\" to /proc/17/uid_map: write /proc/17/uid_map: operation not permitted\"\r\ntime=\"2023-10-07T19:59:26Z\" level=error msg=\"(Unable to determine exit status)\"\r\n```\r\n\r\nAfter some experimentation with podman and buildah containers on my cluster, I have determined that I need to configure a few different settings at the Pod level for this to work:\r\n\r\n- `metadata.annotations`: I need to be able to set `container.apparmor.security.beta.kubernetes.io/\u003Ccontainer_name>` to use a custom apparmor profile for my buildah container. I would like to use the `WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS` env variable, but since the container names are randomly generated I'm not sure how to make this work.\r\n- `spec.securityContext`: The only way I have found to make buildah work is to run it as non-root. This means that I need to set `runAsUser`, `runAsGroup`, and `fsGroup` on the Pod level `securityContext` (not the container level).\r\n\r\n### Suggested solution\r\n\r\nAdding support for `securityContext` seems like it should be fairly straightforward. We could just follow that same approach that is currently used for `resources`, `nodeSelector`, etc. [documented here](https://woodpecker-ci.org/docs/next/administration/backends/kubernetes#resources).\r\n\r\nThe AppArmor profile is trickier since the container name needs to be included in the annotation key. I'm imagining a configuration like `backend_options.kubernetes.appArmorProfile` that could take all of the possible values for the annotation [documented here](https://kubernetes.io/docs/tutorials/security/apparmor/). Then, the pod generation logic would just look for this configuration and add the appropriate annotation if it's found.\r\n\r\n### Alternative\r\n\r\nI could disable AppArmor entirely, but that's not really advisable for a production environment. I could also try to find a way to get the buildah container running as root (it should be possible), but again, that's not ideal from a security perspective.\r\n\r\n### Additional context\r\n\r\nThis is somewhat of a follow up from #2510. I'm trying to get Woodpecker to run on my kubeadm/CRI-O based cluster running on Debian which I believe makes me some kind of leprechaun/unicorn/lochness monster. There definitely aren't many of us out there.\r\n\r\n### Validations\r\n\r\n- [X] Checked that the feature isn't part of the `next` version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]\r\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\r\n- [X] Check that there isn't already an [issue](https://github.com/woodpecker-ci/woodpecker/issues) that request the same feature to avoid creating a duplicate.",[3114,3115],{"name":3053,"color":3054},{"name":3116,"color":3077},"backend/kubernetes",2545,"Support AppArmor annotations and securityContext in kubernetes backend","2024-01-12T22:32:26Z","https://github.com/woodpecker-ci/woodpecker/issues/2545",0.7374021,{"description":3123,"labels":3124,"number":3126,"owner":3027,"repository":3028,"state":3097,"title":3127,"updated_at":3128,"url":3129,"score":3130},"### Component\n\nserver\n\n### Describe the bug\n\nI have various repo's with cron jobs set.\nThese cron jobs now fail to start but running the pipelines manually works.\n\nLast working version is `next-8e99551d18`.\n\n\n### Steps to reproduce\n\n\n### Expected behavior\n\n_No response_\n\n### System Info\n\n```shell\nVersion: next-00aa968afa\n```\n\n### Additional context\n\n```\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:369\",\"message\":\"queue: pending right now: 3334\"}\n{\"level\":\"debug\",\"time\":\"2025-01-31T14:17:57Z\",\"caller\":\"/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/queue/fifo.go:336\",\"message\":\"queue: trying to assign task: 3334 with deps []\"}\n```\n\n### Validations\n\n- [x] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [x] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) that reports the same bug to avoid creating a duplicate.\n- [x] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]",[3125],{"name":3021,"color":3022},4797,"Cron fail to start but manual run works in latest version.","2025-01-31T14:47:29Z","https://github.com/woodpecker-ci/woodpecker/issues/4797",0.7533231,["Reactive",3132],{},["Set"],["ShallowReactive",3135],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fwjylwlIH11O0nFT0zKHqodoeGGhY_it1a4_THWTNhaU":-1},"/woodpecker-ci/woodpecker/4939"]