Deprecation Cleanup for Major Release v13 #1319

Closed
opened 2026-01-22 21:38:34 +00:00 by mfenniak · 13 comments
Owner

When there's a good reason to bump runner's major release to v13, we should also cleanup any noted items here that have been deprecated for a long time and never finalized.

When there's a good reason to bump runner's major release to v13, we should also cleanup any noted items here that have been deprecated for a long time and never finalized.
Author
Owner

compatibleWithOldEnvs and NetworkMode

The tests do not cover compatibleWithOldEnvs() which has been deprecated for almost three years. NetworkMode is only tested lightly for the same reason. I'd prefer removing them instead of adding tests. When would be a good time for that?

#1312 (comment)

**compatibleWithOldEnvs** and **NetworkMode** > The tests do not cover compatibleWithOldEnvs() which has been deprecated for almost three years. NetworkMode is only tested lightly for the same reason. I'd prefer removing them instead of adding tests. When would be a good time for that? https://code.forgejo.org/forgejo/runner/pulls/1312#issuecomment-74675
Member

Remove the remains of the Gitea compatibility layer. See https://codeberg.org/forgejo/discussions/issues/439.

Remove the remains of the Gitea compatibility layer. See https://codeberg.org/forgejo/discussions/issues/439.
Member

Remove strings.ToLower() when parsing on.schedule: #1454 (comment)

Remove `strings.ToLower()` when parsing `on.schedule`: https://code.forgejo.org/forgejo/runner/pulls/1454#issuecomment-82689
Member
https://code.forgejo.org/forgejo/runner/issues/1417
Author
Owner

Remove InsecureSkipVerify: true on HTTP client:

if strings.HasPrefix(endpoint, "https://") && insecure {
transport.TLSClientConfig = &tls.Config{
InsecureSkipVerify: true,
}
}

Remove `InsecureSkipVerify: true` on HTTP client: https://code.forgejo.org/forgejo/runner/src/commit/b93a918a140065a66434db785734b375d54298f3/internal/pkg/client/http.go#L28-L32

Does .runner also qualify for this, or is it not deprecated yet?

Does `.runner` also qualify for this, or is it not deprecated yet?
Author
Owner

I expect we'll allow .runner to be used for a long time, and not removed in Runner v13. But it's good to note here as we can kick it forward in "Deprecation Cleanup for Major Release ..." until we feel it's the right time.

Objectively, I don't know what the right time will be. After Forgejo 15 is out with the new registration approach for a "long time" and any challenges are ironed out.

I expect we'll allow `.runner` to be used for a long time, and not removed in Runner v13. But it's good to note here as we can kick it forward in "Deprecation Cleanup for Major Release ..." until we feel it's the right time. Objectively, I don't know what the right time will be. After Forgejo 15 is out with the new registration approach for a "long time" and any challenges are ironed out.
Member

@mfenniak wrote in #1319 (comment):

Remove InsecureSkipVerify: true on HTTP client:

Why do you want to remove that? It's only activated if insecure is true, which is controlled by the runner configuration. Or do you want to remove insecure in general?

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/issues/1319#issuecomment-83993: > Remove `InsecureSkipVerify: true` on HTTP client: Why do you want to remove that? It's only activated if `insecure` is `true`, which is controlled by the runner configuration. Or do you want to remove `insecure` in general?
Author
Owner

@aahlenst wrote in #1319 (comment):

Why do you want to remove that? It's only activated if insecure is true, which is controlled by the runner configuration. Or do you want to remove insecure in general?

I must not have looked into this very deeply when I made that comment. It does seem to be config driven, so, no concerns. 👍 Apologies for wasting your time looking at it.

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/issues/1319#issuecomment-94295: > Why do you want to remove that? It's only activated if `insecure` is `true`, which is controlled by the runner configuration. Or do you want to remove `insecure` in general? I must not have looked into this very deeply when I made that comment. It does seem to be config driven, so, no concerns. 👍 Apologies for wasting your time looking at it.
Member

@mfenniak wrote in #1319 (comment):

Apologies for wasting your time looking at it.

No worries! Less for me to do ❤️

I think I've worked through all points listed here. Or is there anything left without an open PR?

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/issues/1319#issuecomment-94314: > Apologies for wasting your time looking at it. No worries! Less for me to do ❤️ I think I've worked through all points listed here. Or is there anything left without an open PR?
Author
Owner

@aahlenst wrote in #1319 (comment):

I think I've worked through all points listed here. Or is there anything left without an open PR?

Looks great to me. 👍

Closing. Thank you!

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/issues/1319#issuecomment-94330: > I think I've worked through all points listed here. Or is there anything left without an open PR? Looks great to me. 👍 Closing. Thank you!
Author
Owner

@aahlenst Ah, I did find one other. #1455 -- you removed support for add-path in #1616, but not for set-env. set-env has similar security risks in that if the environment variable is later used to run a command, and, set-env can be output by user-controlled data, it can be manipulated unexpectedly. If you have time to add this change as well, I think it'd be good to include.

@aahlenst Ah, I did find one other. https://code.forgejo.org/forgejo/runner/issues/1455 -- you removed support for `add-path` in https://code.forgejo.org/forgejo/runner/pulls/1616, but not for `set-env`. `set-env` has similar security risks in that if the environment variable is later used to run a command, and, `set-env` can be output by user-controlled data, it can be manipulated unexpectedly. If you have time to add this change as well, I think it'd be good to include.
Member

@mfenniak wrote in #1319 (comment):

If you have time to add this change as well, I think it'd be good to include.

That was my plan. I waited until the removal of add-path was merged.

@mfenniak wrote in https://code.forgejo.org/forgejo/runner/issues/1319#issuecomment-94748: > If you have time to add this change as well, I think it'd be good to include. That was my plan. I waited until the removal of `add-path` was merged.
Sign in to join this conversation.
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/runner#1319
No description provided.