Skip to content

Conversation

@jessebot
Copy link
Collaborator

@jessebot jessebot commented Jan 23, 2025

Changes

  • move renovate.json to the root dir and allow ignoring tests for merging GHA patch/minor updates only

  • switch the appVersion in Chart.yaml to a -specific sha tag- that should actually work, until pixelfed does another official release. UPDATE: can't use sha because we get:

    Deployment.apps "pixelfed-w49e3rc6mr" is invalid: [metadata.labels: Invalid value: "sha256-ea7cbbfe5ba933a934b47cd1029fb5dbc19d437d0aa3f1a309cb5c82226795e8.sig": must be no more than 63 characters, spec.template.labels: Invalid value: "sha256-ea7cbbfe5ba933a934b47cd1029fb5dbc19d437d0aa3f1a309cb5c82226795e8.sig": must be no more than 63 characters]
    

    UPDATE 2: we've updated image.repository=mattlqx/docker-pixelfed@sha256 and set a sha for appVersion again

  • set the securityContext and podSecurityContext to run as user 33, which is www-data to solve security root escalation issue

  • creates a values file for testing the chart in ci

  • make a note that pixelfed.app.domain is required

  • set service.targetPort to 8080 as per the suggestion in invalid number of arguments in "server_name" directive mattlqx/docker-pixelfed#5 (comment) :)

@jessebot jessebot self-assigned this Jan 23, 2025
@jessebot jessebot changed the title chores around renovate, security context, and appVersion chores around renovate, security context, appVersion, and attempting to fix ci Jan 23, 2025
@jessebot jessebot mentioned this pull request Jan 23, 2025
@holysoles
Copy link
Contributor

@jessebot regarding unable to use a image digest, the following works for me based on the template logic, albeit clunky. It could probably be handled more gracefully with some string parsing logic in the template though

image:
  repository: mattlqx/docker-pixelfed@sha256
  tag: 7d1d62c8552683225456c2a552ba8ca36afb24b32f706e425310de5bf84aeab1 

move renovate.json to the root dir and allow ignoring tests for merging GHA patch/minor updates only

switch the appVersion in Chart.yaml to a specific sha tag that should actually work, until pixelfed does another official release

set the securityContext and podSecurityContext to run as user 33, which is www-data to solve security root escalation issue

Signed-off-by: jessebot <[email protected]>
otherwise we get Deployment.apps pixelfed-w49e3rc6mr is invalid: [metadata.labels: Invalid value: sha256-ea7cbbfe5ba933a934b47cd1029fb5dbc19d437d0aa3f1a309cb5c82226795e8.sig: must be no more than 63 characters, spec.template.labels: Invalid value: sha256-ea7cbbfe5ba933a934b47cd1029fb5dbc19d437d0aa3f1a309cb5c82226795e8.sig: must be no more than 63 characters]
@jessebot jessebot force-pushed the chore/update-image-tag-renovate-and-security-context branch from bcdf18a to bec985e Compare January 23, 2025 20:40
@jessebot jessebot changed the title chores around renovate, security context, appVersion, and attempting to fix ci chores around renovate, security context, appVersion, and fix ci testing Jan 23, 2025
@jessebot
Copy link
Collaborator Author

@holysoles thank you! I did that to keep everyone stable for now and also now the ci tests finally work, so we can know that we haven't broken anything going forward :)

@jessebot jessebot merged commit e518311 into main Jan 23, 2025
4 checks passed
@jessebot jessebot deleted the chore/update-image-tag-renovate-and-security-context branch January 23, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants