Skip to content

Allow setting SEQ_FIRSTRUN_ADMINPASSWORD and SEQ_FIRSTRUN_ADMINPASSWORDHASH from Kubernetes secret #64

@mloskot

Description

@mloskot

It would be useful if the chart supported injecting value for firstRunAdminPassword from Kubernetes Secret.

This would be useful for GitOps-managed Seq deployments, where Secret-s with passwords can be SOPS-encrypted or passwords can be imported into Secret resources from external key vaults e.g. using https://external-secrets.io

Example

Here is a Helm chart with an interesting template

https://github.com/gruntwork-io/helm-kubernetes-services/blob/099b7ceb735c60f799756ca8f8da2cb28bdc7ae1/charts/k8s-service/templates/_deployment_spec.tpl#L296-L306

which allows to specify this:

spec:
  values:
    secrets:
      seq-administrator-password:
        as: environment
        items:
          password:
            envVarName: SEQ_FIRSTRUN_ADMINPASSWORD

where seq-administrator-password is pre-existing Kubernetes secret in the same namespace where Seq will be deployed, with password data item.

I could try propose PR with such solution, if this of interest, I hope it is ;)

References

This feature request is related to #54 but it is a much simpler plain Kubernetes suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions