Skip to content

Add authentik ldap outpost - #1147

Open
nsklikas wants to merge 1 commit into
canonical:mainfrom
nsklikas:IAM-2248
Open

Add authentik ldap outpost#1147
nsklikas wants to merge 1 commit into
canonical:mainfrom
nsklikas:IAM-2248

Conversation

@nsklikas

@nsklikas nsklikas commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Add Authentik LDAP outpost

Related issues

Closes #1146

@nsklikas

Copy link
Copy Markdown
Contributor Author

Updated ignore file

nsklikas added a commit to canonical/authentik-ldap-outpost-rock that referenced this pull request Aug 26, 2026
Fixes the two HIGH CVEs reported by the OCI Factory vulnerability scan
of the `ldap` binary:

| CVE | Package | Was | Now |
| --- | --- | --- | --- |
| CVE-2026-46600 | `golang.org/x/net` | v0.55.0 | v0.56.0 |
| CVE-2026-56852 | `golang.org/x/text` | v0.37.0 | v0.39.0 |

Verified by building `./cmd/ldap` from upstream `version/2026.5.3` with
these pins (`CGO_ENABLED=1 GOFIPS140=latest`):

- build succeeds, no `go.mod` conflicts
- `go version -m` shows `x/net v0.56.0`, `x/text v0.39.0`, `x/crypto
v0.53.0`
- `trivy rootfs --severity HIGH,CRITICAL --ignore-unfixed` on the
resulting binary: 0 findings (was 11)

Follow-up: repoint `oci/authentik-ldap-outpost/image.yaml` in
canonical/oci-factory#1147 at the merge commit; it currently pins
a9502f5, which predates this fix.
@nsklikas
nsklikas force-pushed the IAM-2248 branch 2 times, most recently from 03f5713 to ac48943 Compare August 26, 2026 08:29
@nsklikas

Copy link
Copy Markdown
Contributor Author

@alesancor1 the vulns have been fixed, can we unblock the PR?

@zhijie-yang

Copy link
Copy Markdown
Collaborator

Hey, thanks for the fix. The blocker currently comes from the unreplied email for the security monitoring. From the email record on 6th July, the email was never pinged back. Possibly due to sending to a wrong email (security (at) ubuntu.com v.s. security (at) canonical.com). Nonetheless, I've raised the PR in the security monitoring repo at https://github.com/canonical/seceng-notifications/pull/83.

zhijie-yang

This comment was marked as duplicate.

@zhijie-yang zhijie-yang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following inline comments are generated using the AGENTS.md in the feature branch in OpenCode with claude-opus-4.8. I affirm all the comments are legit. These anchor the three blockers from my earlier review to their exact lines.

Comment thread oci/authentik-ldap-outpost/.trivyignore Outdated
@@ -0,0 +1,5 @@
# CVE-2024-42490: False positive/unfixable because main module uses git pseudo-version, but we are building 2026.5.3 which is newer than fixed version 2024.6.4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[blocker] New .trivyignore files are not accepted — the file is deprecated (§2). Move both rules into an ignored-vulnerabilities: block on the upload[] item in image.yaml, keeping the existing "newer than fixed version…" justifications (and link an upstream advisory where available, since these are Go language-package CVEs). Once migrated, this build no longer uses .trivyignore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment thread oci/authentik-ldap-outpost/image.yaml Outdated
@@ -0,0 +1,13 @@
version: 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[blocker] ignored-vulnerabilities requires a version: 2 trigger (§2). Bump this as part of migrating the .trivyignore rules.

Suggested change
version: 1
version: 2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@@ -0,0 +1,13 @@
version: 1
upload:
- source: "canonical/authentik-ldap-outpost-rock"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[blocker] Source-recipe security manifest is wired non-standardly (§4). The pinned recipe (canonical/authentik-ldap-outpost-rock@bc0be6fc478afa164c85dcafcc367d1c7855915e) declares stage-packages (chisel slices libc6_libs, ca-certificates_data, …), so it MUST include the standardized security-manifest part sourced from https://github.com/canonical/rocks-security-manifest. Instead it hand-rolls a deb-security-manifest part with plugin: nil and a custom dpkg-query override-prime. Please switch to the exact part from that repo's README and re-pin commit:

  deb-security-manifest:
    plugin: make
    source: https://github.com/canonical/rocks-security-manifest
    source-type: git
    source-branch: main
    override-prime: gen_manifest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ONBOARDING] Authentik-ldap-outpost

3 participants