main
25055
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
122f791f1d |
enterprise/endpoints/connectors/microsoft_intune: init (#23947)
* enterprise/endpoints/connectors/microsoft_intune: init Signed-off-by: Jens Langhammer <[email protected]> * gen Signed-off-by: Jens Langhammer <[email protected]> * fix InMemoryBackingStore error Signed-off-by: Jens Langhammer <[email protected]> * gen * fix os family missing Signed-off-by: Jens Langhammer <[email protected]> * gen Signed-off-by: Jens Langhammer <[email protected]> * add tests, fix disk encryption, fix backing_store exclusion Signed-off-by: Jens Langhammer <[email protected]> * add stage & cert config Signed-off-by: Jens Langhammer <[email protected]> * add ui Signed-off-by: Jens Langhammer <[email protected]> * Potential fix for pull request finding 'Empty except' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Jens L. <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]> Signed-off-by: Jens L. <[email protected]> Co-authored-by: Dewi Roberts <[email protected]> Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> |
||
|
|
95764ad896 |
web/admin: provide bookmarks and bookmark controller (#27358)
* . * . * web/element: Move the SidebarVersion out of Elements. # What This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`. # Why SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project. # Details SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout. `aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place. The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed. The hover styling has been moved into SidebarVersion explicitly. VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`. `@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it. The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈 Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter. * Replace aria wayfinders used for testing with Open UI Automation identifiers. * web/element: remove license & capabilities requirements from SidebarItem # What This commit moves the “isLicensed” and “canEnterprise” checks in SidebarItem and instead decorates the SidebarEntries collection with additional flags and values to support holding the information entirely within the Admin UI. # How SidebarItem takes two additional attributes: `notice`, which is where the “Enterprise Only” message goes, and `pathoverride`, which will override the default path if provided. This is hardly an elegant way to go around it, but it preserves the original `entries` tree, producing a new tree and not mutating the original. With this, SidebarItem (and Sidebar itself!) is completely generic and no longer needs to know anything at all about licensing or enterprise capability. The CSS for SidebarItem has been modified: it’s just `notice` not `enterprise-ntice` now. Fit for any purpose under the sun. A new function, `resolveSidebarEntries`, completely centralizes the logic for “do we even show Enterprise features” and “if the user isn’t licensed, decorate them with ‘enterprise only’ markers”; it contains the logic dictating, for each element in the SidebarEntries tree, if the instance isLicensed and canEnterprise; it filters out entries that are enterprise-only when the instance does not support enterprise features, then generates the new tree, decorating the `attributes` field with the “Enterprise only” message and path override as required. These generic features are passed to SidebarItem. `ak-interface-admin` then needed only to <s>rip out</s> modify the navigationEntries method to use the `resolveSidebarEntries` function, and remove the redundant check for enterprise-only features in the palette-generator, since those features will not be present after the resolver does its magic. Also: A couple of tests. * Unneeded debugging information. * Progress has been made. * web/admin: Simplify sidebar entries handling This commit streamlines how sidebar entries are generated and validated. The `entries` field was only being used as a signal to `requestUpdate()`; the actual entries were being generated on the fly in `get navigateEntries()`. We already had functions to generate the base entries and the enterprise entries, and putting the “just base or base + enterprise” function into the `sidebar.ts` file reduced the `navigateEntries` to two lines, and separates the “canEnterprise” from “what does that mean for sidebar” nicely. @GirlBossRush, there’s a `validateRoutes` function in `./src/admin/navigation/sidebar.ts` that I tried to make into a unit test, but I could not get to run under Vitest, mostly because `Routes.ts` has exactly one side-effect import and Vitest cannot handle that. I didn’t want to make it a browser test, however. Any suggestions? * That side effect infected downstream tests. Darnit. * Formatter opinions. * Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible. Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move. * The test exists and passes. * Fix some merge issues. \# What \# Why \# How \# Designs \# Test Steps \# Other Notes * It almost works. It renders, it doesn't fail, but the CSS is still borked. * . * web/admin: Simplify sidebar entries handling This commit streamlines how sidebar entries are generated and validated. The `entries` field was only being used as a signal to `requestUpdate()`; the actual entries were being generated on the fly in `get navigateEntries()`. We already had functions to generate the base entries and the enterprise entries, and putting the “just base or base + enterprise” function into the `sidebar.ts` file reduced the `navigateEntries` to two lines, and separates the “canEnterprise” from “what does that mean for sidebar” nicely. @GirlBossRush, there’s a `validateRoutes` function in `./src/admin/navigation/sidebar.ts` that I tried to make into a unit test, but I could not get to run under Vitest, mostly because `Routes.ts` has exactly one side-effect import and Vitest cannot handle that. I didn’t want to make it a browser test, however. Any suggestions? * That side effect infected downstream tests. Darnit. * Formatter opinions. * Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible. Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move. * The test exists and passes. * . * . * web/element: Move the SidebarVersion out of Elements. # What This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`. # Why SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project. # Details SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout. `aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place. The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed. The hover styling has been moved into SidebarVersion explicitly. VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`. `@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it. The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈 Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter. * Replace aria wayfinders used for testing with Open UI Automation identifiers. * Expansion tests updated. * . * web/admin: Make Sidebar a wholly coherent and independent entity This commit revises how Sidebar works. I introduce a new type that the Sidebar understands: `SidebarItem`: ``` javascript export interface SidebarItem { label: string; key: string; expanded?: boolean; path?: string | null; notice?: string | TemplateResult | null; children?: SidebarItem[]; } ``` ## Sidebar changes This type is meant to drive the Sidebar alone, independent of the needs of any client code (although it is, obviously, good enough to support ak-interface-admin). I revise `Sidebar` to be the whole component; no SidebarItem renderer, no slots. The container into which it is rendered is the client code’s responsibility. There are two levels of rendering: the Groups and the Items, and right now they’re only distinguished by “Does it have children?” There were four renderers in SidebarItem, and two of them are gone since they were unused. I have deliberately left room to revise this again so that a second-level can support a path *and* children. I have an idea for what to do with it. The CSS has entirely been brought in to handle a single sidebar. ## Sidebar Session Persistence This is entirely in a controller now; it only needs to be included to do its magic, and it works quite well. I have also revised the very long function names in `expansion.ts` and treat the entire file as a single namespace. The names are shorter and more readable, and can be imported with the `* as SidebarExpansion` syntax to support the full namespace. This makes Sidebar Session Persistence swappable with a Sidebar Device Persistence (using `localStorage`), should we so desire. Functions in `expansion` that no one was using have been deleted. YAGNI forever. ## Navigation *`sidebarEntries.ts`* The navigation folder is split: the `Entries` file was always meant to be an easy-to-find collection of all the *Entries*, and nothing more, the Entries themselves were meant to be easily editable and fit within a visually informative table. All the tooling cluttered that. With one exception, all tooling has been mooved to the `Tools` file. That exception is a tool, *here*, that will either hand you a “plain” SidebarEntries, or a “can enterprise” SidebarEntries, based on a flag. That logic does not belong in the Interface file. *`sidebarTools.ts`* Contains two separate units: one converts the `SidebarEntries` collection into a `SidebarItems` collection fit for sending to the Sidebar. The others (a) assists the Interface in finding the right key to send to the Sidebar for the current path, and (b) assists the header in filling out the page title. Due to some of the needs in the Interface, `resolveSidebarItems` is an `ExtendedSidebarItem`; it has extra fields to help the CommandPalette. The shape passed to Sidebar is an unchanged `SidebarItem`. ## Interface The palette code is revised to understand the new `ExtendedSidebarItem` format. The `ak-page-navbar` and `ak-sidebar` calls have been revised to take the new format. The values are derived at the beginning of the `render()` function to avoid multiple calls to the resolvers. * I didn't think I'd fat finger while writing the commit message, but what do I know? * Added the requirement that every item passed to the sidebar must have a path or children (or both; both is good too) * Almost there. * Almost there. * web/admin: Put icons in the sidebar. ## Description This commit updates the Sidebar to have icons next to top-level headers. ## What 1. Add icons to `AdminSidebarEntries`. The type of `SidebarItem` and `SidebarEntry` have been updated to support this change. 2. Add a unit test to Admin to validate that every SidebarItem we generate has a path or children. This is not an exclusive-or; it allows for both. I’m leaving room for another feature. 😈 3. Bring the entirety of the sidebar into a new namespace, `ak-c-sidebar`. It is now vendored. Anything we weren’t using, I’ve thrown overboard. 4. Each row is now a grid with very solid definitions for the width of the icon and the toggle; the label is given the rest of the horizontal space. This lets us define both the icon and the “rail” (movement/reassurance indicator) and position them perfectly without having to invoke pixels at our end. 5. Update the renderers to produce three different kinds of navigation rows: links, toggles, and toggle-plus-link. * Recommendation from automated review. * Revised naming code to track certain features. * Adding the Breadcrumbs visual component. * web/admin: Add a Breadcrumb context manager to the navigation suite ## Description This commit introduces a Breadcrumb component (patterned on the [Patternfly 5 Breadcrumb Component](https://v5-archive.patternfly.org/components/breadcrumb/html)) and introduces a BreadcrumbController that tracks changes in our navigation to provide information in the format the Breadcrumb component expects. ## What ### First, a little maintenance: `findCurrentSidebarKey` and `findSidebarSectionByRoute` are the *same function*, it’s just that one returns the key used by the code, the other returns the label used by humans. (Also, they took their arguments in different order). I’ve renamed the latter to `findCurrentSidebarSectionLabel`, made the argument sequences the same, and extracted the common functionality. The function `findSidebarEntries` now returns a list of sidebar entries. Most functions are only interested in the last one (the tip of the route is the page or page/tab combo you’ve navigated to) but having that information is useful. ### Breadcrumb Context Controller The Breadcrumb controller is a standard parasitic context manager: it attaches to an object and monitors that object’s behavior, translating changes in that object into messages for other services to use. To enable it, you need only add exactly one line to an Interface, creating an instance of the controller. It does everything else. The controller has no additional external dependencies, and it creates no new external obligations. Because of our split navigation (Routes for collections, Tabs for objects), the controller listens for both events, identifies the current full path according to the SidebarEntries, and records each step along the way. It publishes this information as an active context object. And that’s pretty much all it does. ### Breadcrumb Component (`ak-breadcrumb`) The Breadcrumb Component takes a property argument, `.entries`, that is a list of `{ label, path? }` pairs; if the path is present and is *not* the page you’re currently looking at, the label will be wrapped in an anchor for easy navigation up the hierarchy. The Breadcrumb Component is API-free. ### Breadcrumb UI Component (`ak-ui-breadcrumb`) The Breadcrumb UI Component inherits and extends the Breadcrumb component by plugging into the Breadcrumb Context and pushing the context changes into the the `.entries` field before rendering. This avoids both API entanglement with the Breadcrumb renderer, having to remember how to use it as a slotted controller, or some other shenaningans to get `ak-breadcrumb` into the right position. ### Miscellaneous Jens thought shortening “Enterprise Only” to “Enterprise” and floating it to the right looked nice. * The updated format for crumbs required an update to the unit tests. * Sidebar in progress. * web/admin: Add a Bookmark context manager to the navigation suite ## Description This commit introduces a Bookmark component. ### The Controller The BookmarkController is a context provider that does two things: 1. It reads and writes the user’s collection of bookmarks to storage. Right now, the only storage being used is localStorage. This storage is on a per-device (note: *not* per user) basis, and does not travel if the user logs into authentik from different devices. It provides this collection as a context for interested client code to use. 2. It provides a method that can be used by the host component to intercept the SidebarItem\[\] collection and add its own third-tier `children` collection, providing paths and names for bookmarked items. ### The Component The Bookmark (`ak-bookmark`) monitors the BreadcrumbContext and decides whether or not it should show a Bookmark tab or not. The Bookmark component should be placed someplace where bookmarking would make sense, such as next to the page header `#page-navbar-heading`. The Bookmark component also consumes the BookmarkContext to decide *which* bookmark icon to show: the hollow version or the filled version. ## Status The Bookmark component’s API-aware extension is now slotted when appropriate; the navbar has been extended to include it. The navbar has also been extended to include a breadcrumb slot if there is no description, creating a consistent view of all verticals across all pages. * Added comments and details. * I should keep my promises: bookmarks go into localStorage. * Revised naming code to track certain features. * Adding the Breadcrumbs visual component. * web/admin: Add a Breadcrumb context manager to the navigation suite ## Description This commit introduces a Breadcrumb component (patterned on the [Patternfly 5 Breadcrumb Component](https://v5-archive.patternfly.org/components/breadcrumb/html)) and introduces a BreadcrumbController that tracks changes in our navigation to provide information in the format the Breadcrumb component expects. ## What ### First, a little maintenance: `findCurrentSidebarKey` and `findSidebarSectionByRoute` are the *same function*, it’s just that one returns the key used by the code, the other returns the label used by humans. (Also, they took their arguments in different order). I’ve renamed the latter to `findCurrentSidebarSectionLabel`, made the argument sequences the same, and extracted the common functionality. The function `findSidebarEntries` now returns a list of sidebar entries. Most functions are only interested in the last one (the tip of the route is the page or page/tab combo you’ve navigated to) but having that information is useful. ### Breadcrumb Context Controller The Breadcrumb controller is a standard parasitic context manager: it attaches to an object and monitors that object’s behavior, translating changes in that object into messages for other services to use. To enable it, you need only add exactly one line to an Interface, creating an instance of the controller. It does everything else. The controller has no additional external dependencies, and it creates no new external obligations. Because of our split navigation (Routes for collections, Tabs for objects), the controller listens for both events, identifies the current full path according to the SidebarEntries, and records each step along the way. It publishes this information as an active context object. And that’s pretty much all it does. ### Breadcrumb Component (`ak-breadcrumb`) The Breadcrumb Component takes a property argument, `.entries`, that is a list of `{ label, path? }` pairs; if the path is present and is *not* the page you’re currently looking at, the label will be wrapped in an anchor for easy navigation up the hierarchy. The Breadcrumb Component is API-free. ### Breadcrumb UI Component (`ak-ui-breadcrumb`) The Breadcrumb UI Component inherits and extends the Breadcrumb component by plugging into the Breadcrumb Context and pushing the context changes into the the `.entries` field before rendering. This avoids both API entanglement with the Breadcrumb renderer, having to remember how to use it as a slotted controller, or some other shenaningans to get `ak-breadcrumb` into the right position. ### Miscellaneous Jens thought shortening “Enterprise Only” to “Enterprise” and floating it to the right looked nice. * The updated format for crumbs required an update to the unit tests. * Sidebar in progress. * web/admin: Add a Bookmark context manager to the navigation suite This commit introduces a Bookmark component. The BookmarkController is a context provider that does two things: 1. It reads and writes the user’s collection of bookmarks to storage. Right now, the only storage being used is localStorage. This storage is on a per-device (note: *not* per user) basis, and does not travel if the user logs into authentik from different devices. It provides this collection as a context for interested client code to use. 2. It provides a method that can be used by the host component to intercept the SidebarItem\[\] collection and add its own third-tier `children` collection, providing paths and names for bookmarked items. The Bookmark (`ak-bookmark`) monitors the BreadcrumbContext and decides whether or not it should show a Bookmark tab or not. The Bookmark component should be placed someplace where bookmarking would make sense, such as next to the page header `#page-navbar-heading`. The Bookmark component also consumes the BookmarkContext to decide *which* bookmark icon to show: the hollow version or the filled version. The Bookmark component’s API-aware extension is now slotted when appropriate; the navbar has been extended to include it. The navbar has also been extended to include a breadcrumb slot if there is no description, creating a consistent view of all verticals across all pages. * Added comments and details. * I should keep my promises: bookmarks go into localStorage. * web/admin: make the bookmark a toggle button and drop the breadcrumb heading wrapper * Changes requested by reviewer (@GirlBossRush). * Formatters. Feh! --------- Co-authored-by: Teffen Ellis <[email protected]> |
||
|
|
e26d206e61 |
website/docs: dry run: move :ak-version to header (#27678)
* website/docs: dry run: move :ak-version to header Signed-off-by: Dominic Roy <[email protected]> * website/docs: keep dry-run anchor Signed-off-by: Dominic R <[email protected]> --------- Signed-off-by: Dominic Roy <[email protected]> Signed-off-by: Dominic R <[email protected]> |
||
|
|
b95a1ed4e2 |
web: policy dry run UI (#26621)
* initial attempt at web changes * policies: surface dry-run results in events * web: support static binding dry runs and fix result links * web: leave translation extraction to automation * web/policies: align dry-run action with binding controls * web/policies: address dry-run UI review feedback * web/policies: address dry-run UI review feedback - Move renderDryRunHelp from #common/policies/utils to #admin/policies/renderDryRunHelp, since only the admin app uses it. - Render the policy raw result in <pre> so indented JSON keeps its whitespace, and hide the row when there is no raw result (non-expression policies). - Build the dry-run events AKQL query as a single string. |
||
|
|
8494bf9729 |
providers/oauth2: fix max_age=0 not forcing reauth (#27518)
* fix max_age=0 not forcing re-authentication * Apply suggestion from @BeryJu Signed-off-by: Jens L. <[email protected]> * Update authentik/providers/oauth2/views/authorize.py Co-authored-by: Jens L. <[email protected]> Signed-off-by: Dewi Roberts <[email protected]> * Update test --------- Signed-off-by: Jens L. <[email protected]> Signed-off-by: Dewi Roberts <[email protected]> Co-authored-by: Jens L. <[email protected]> |
||
|
|
f4447ee6bd |
ci: bump pnpm/action-setup from 6.1.0 to 6.1.1 (#27666)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.1.0 to 6.1.1. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 6.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
70f9d00ad0 |
core: bump oauthlib from 4.0.0 to 4.0.1 (#27658)
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/oauthlib/oauthlib/releases) - [Changelog](https://github.com/oauthlib/oauthlib/blob/v4.0.1/CHANGELOG.rst) - [Commits](https://github.com/oauthlib/oauthlib/compare/v4.0.0...v4.0.1) --- updated-dependencies: - dependency-name: oauthlib dependency-version: 4.0.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
0c0a057022 |
core: bump psycopg[c,pool] from 3.3.6 to 3.3.7 (#27672)
Bumps [psycopg[c,pool]](https://github.com/psycopg/psycopg) from 3.3.6 to 3.3.7. - [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst) - [Commits](https://github.com/psycopg/psycopg/compare/3.3.6...3.3.7) --- updated-dependencies: - dependency-name: psycopg[c,pool] dependency-version: 3.3.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
e6692302b9 |
core: bump selenium from 4.51.0 to 4.52.0 (#27670)
Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.51.0 to 4.52.0. - [Release notes](https://github.com/SeleniumHQ/Selenium/releases) - [Commits](https://github.com/SeleniumHQ/Selenium/compare/selenium-4.51.0...selenium-4.52.0) --- updated-dependencies: - dependency-name: selenium dependency-version: 4.52.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
3d72fa3297 |
ci: bump helm/kind-action from 1.15.1 to 1.15.2 (#27667)
Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.15.1 to 1.15.2. - [Release notes](https://github.com/helm/kind-action/releases) - [Commits](https://github.com/helm/kind-action/compare/1544676c07bb3570fcb70166beaa07c4528fd4aa...ea822c7bf1874f08e5a491df991c228edffc3376) --- updated-dependencies: - dependency-name: helm/kind-action dependency-version: 1.15.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
cb45203446 |
ci: bump pnpm/action-setup from 6.1.0 to 6.1.1 in /.github/actions/setup (#27668)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.1.0 to 6.1.1. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 6.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
c79ab08f3a |
ci: bump the codeql group across 1 directory with 3 updates (#27665)
Bumps the codeql group with 3 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/autobuild](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action). Updates `github/codeql-action/init` from 4.39.1 to 4.39.2 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...1fc58d04a4d4374f921bdac573c3811c240f9c26) Updates `github/codeql-action/autobuild` from 4.39.1 to 4.39.2 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...1fc58d04a4d4374f921bdac573c3811c240f9c26) Updates `github/codeql-action/analyze` from 4.39.1 to 4.39.2 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...1fc58d04a4d4374f921bdac573c3811c240f9c26) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.39.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql - dependency-name: github/codeql-action/autobuild dependency-version: 4.39.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql - dependency-name: github/codeql-action/analyze dependency-version: 4.39.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: codeql ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
f01fecf58c |
ci: bump taiki-e/install-action from 2.89.1 to 2.90.0 in /.github/actions/setup (#27669)
ci: bump taiki-e/install-action in /.github/actions/setup Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.89.1 to 2.90.0. - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/install-action/compare/682ce6c3c696a4cd5168a05f98e51aa02b877941...b80e2bb2635f28eb98b9fce1e2f0887e1535c6b2) --- updated-dependencies: - dependency-name: taiki-e/install-action dependency-version: 2.90.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
408e894a4c |
core: bump goauthentik/fips-python from 69e7058 to b203e83 in /lifecycle/container (#27664)
core: bump goauthentik/fips-python in /lifecycle/container Bumps goauthentik/fips-python from `69e7058` to `b203e83`. --- updated-dependencies: - dependency-name: goauthentik/fips-python dependency-version: 3.14.10-p1-slim-trixie-fips dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
ef82f4b64e |
core: bump openapitools/openapi-generator-cli from v7.26.0 to v7.27.0 in /packages/client-go (#27661)
core: bump openapitools/openapi-generator-cli in /packages/client-go Bumps openapitools/openapi-generator-cli from v7.26.0 to v7.27.0. --- updated-dependencies: - dependency-name: openapitools/openapi-generator-cli dependency-version: v7.27.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
eb3832a818 |
stages/authenticator_validate: prevent WebAuthn challenge races (#26291)
* stages/authenticator_validate: keep the pending WebAuthn challenge until it's answered Rendering the stage again, from another tab or a selection request, replaced the challenge an in-progress assertion was signed for. Reuse it instead, and remove it once validated, skipped, enrolled, or passed by identification. Co-authored-by: Jens Langhammer <[email protected]> * web/flow: only notify the server of SMS and email challenge selections Selecting any other device has no effect on the server, but the request still re-renders the stage and races the actual response. * verify tab B reuses challenge and tab A’s original assertion succeeds. --------- Co-authored-by: Jens Langhammer <[email protected]> Co-authored-by: Teffen Ellis <[email protected]> |
||
|
|
d802b825dd |
web/i18n: load the locale catalog before boot and remove msg() thunks (#27618)
* web: move entrypoint bodies into importable modules Entrypoints import the moved module, with no change in behavior. This lets a later change run code before the interface modules evaluate. * web/i18n: load the locale catalog before the interface boots The locale is fixed per page since #25156, but the catalog still loaded from a component lifecycle hook, after every statically imported module had evaluated. Module-level msg() calls returned English. - each entrypoint awaits initializeLocale() before importing the interface - the lit-localize runtime moves to #common/ui/locale/runtime * web/i18n: remove live locale switching Switching locale reloads the page since #25156, and the catalog now loads before boot, so nothing observes a locale change after startup. - LocaleContextController only provides the runtime; drop the lang observer - drop the activeLanguageTag setter from WithLocale - drop LOCALE_STATUS_EVENT listeners in the admin interface, API locale middleware, captcha stage, and locale select * Fix type. * Unify types. * web/i18n: unwrap msg() thunks in label records The catalog now loads before any interface module evaluates, so label records can hold translated strings directly. - label records hold strings instead of MessageFormatter thunks - call sites read the value instead of calling it |
||
|
|
3bbf7137ec |
web/admin: breadcrumb controller (#27319)
* . * . * web/element: Move the SidebarVersion out of Elements. # What This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`. # Why SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project. # Details SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout. `aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place. The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed. The hover styling has been moved into SidebarVersion explicitly. VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`. `@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it. The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈 Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter. * Replace aria wayfinders used for testing with Open UI Automation identifiers. * web/element: remove license & capabilities requirements from SidebarItem # What This commit moves the “isLicensed” and “canEnterprise” checks in SidebarItem and instead decorates the SidebarEntries collection with additional flags and values to support holding the information entirely within the Admin UI. # How SidebarItem takes two additional attributes: `notice`, which is where the “Enterprise Only” message goes, and `pathoverride`, which will override the default path if provided. This is hardly an elegant way to go around it, but it preserves the original `entries` tree, producing a new tree and not mutating the original. With this, SidebarItem (and Sidebar itself!) is completely generic and no longer needs to know anything at all about licensing or enterprise capability. The CSS for SidebarItem has been modified: it’s just `notice` not `enterprise-ntice` now. Fit for any purpose under the sun. A new function, `resolveSidebarEntries`, completely centralizes the logic for “do we even show Enterprise features” and “if the user isn’t licensed, decorate them with ‘enterprise only’ markers”; it contains the logic dictating, for each element in the SidebarEntries tree, if the instance isLicensed and canEnterprise; it filters out entries that are enterprise-only when the instance does not support enterprise features, then generates the new tree, decorating the `attributes` field with the “Enterprise only” message and path override as required. These generic features are passed to SidebarItem. `ak-interface-admin` then needed only to <s>rip out</s> modify the navigationEntries method to use the `resolveSidebarEntries` function, and remove the redundant check for enterprise-only features in the palette-generator, since those features will not be present after the resolver does its magic. Also: A couple of tests. * Unneeded debugging information. * Progress has been made. * web/admin: Simplify sidebar entries handling This commit streamlines how sidebar entries are generated and validated. The `entries` field was only being used as a signal to `requestUpdate()`; the actual entries were being generated on the fly in `get navigateEntries()`. We already had functions to generate the base entries and the enterprise entries, and putting the “just base or base + enterprise” function into the `sidebar.ts` file reduced the `navigateEntries` to two lines, and separates the “canEnterprise” from “what does that mean for sidebar” nicely. @GirlBossRush, there’s a `validateRoutes` function in `./src/admin/navigation/sidebar.ts` that I tried to make into a unit test, but I could not get to run under Vitest, mostly because `Routes.ts` has exactly one side-effect import and Vitest cannot handle that. I didn’t want to make it a browser test, however. Any suggestions? * That side effect infected downstream tests. Darnit. * Formatter opinions. * Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible. Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move. * The test exists and passes. * Fix some merge issues. \# What \# Why \# How \# Designs \# Test Steps \# Other Notes * It almost works. It renders, it doesn't fail, but the CSS is still borked. * . * web/admin: Simplify sidebar entries handling This commit streamlines how sidebar entries are generated and validated. The `entries` field was only being used as a signal to `requestUpdate()`; the actual entries were being generated on the fly in `get navigateEntries()`. We already had functions to generate the base entries and the enterprise entries, and putting the “just base or base + enterprise” function into the `sidebar.ts` file reduced the `navigateEntries` to two lines, and separates the “canEnterprise” from “what does that mean for sidebar” nicely. @GirlBossRush, there’s a `validateRoutes` function in `./src/admin/navigation/sidebar.ts` that I tried to make into a unit test, but I could not get to run under Vitest, mostly because `Routes.ts` has exactly one side-effect import and Vitest cannot handle that. I didn’t want to make it a browser test, however. Any suggestions? * That side effect infected downstream tests. Darnit. * Formatter opinions. * Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible. Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move. * The test exists and passes. * . * . * web/element: Move the SidebarVersion out of Elements. # What This commit moves the SidebarVersion element, which yes shows the version information in the sidebar. The component is moved into Admin, and the Sidebar now provides an active slot for it. Since it is now indpendent of and never even mentions “Sidebar” on its own, it’s now renamed `VersionDetails`. # Why SidebarVersion uses WithLicenseSummary, which has knowledge of the API. The long-term goal of the Elements is to extract from it every element that does *not* need to know about the API, and this was one of the first things I encountered while working on the SidebarIcons project. # Details SidebarVersion had a lot of aria that wasn’t necessary. The `aria-labels` overrode much of the text, so the user would hear that there was version information available, but would never actually hear the version information. Headers inside a button would get discarded by some screen-readers because that doesn’t make sense inside a button. Buttons can only contain “inline” content, so using `<span>` and then styling them to be block is the correct way to make sure the information remains accessible while meeting the expected layout. `aria-controls` in the Interface pointed at nothing, because it was referencing an `id` that doesn’t cross a shadow-root. I’ve changed the target, so at least now that’s going to the right place. The PFNav and PFAvatar imports were never used inside SidebarVersion. They’ve been removed. The hover styling has been moved into SidebarVersion explicitly. VersionDetails is now slotted into the Sidebar so it is visible in the Admin lightDOM, and in consequence it no longer needs its `exportparts`. `@patterfly-element/pfe-core` has been a part of our product since we included some of the elements into our base, notably the original Tooltips. This only makes it explicit that we use it. The check-for-undefined in the VersionDetails renderer did nothing; we already check if `this.version` is defined, and if it is, `versionCurrent` is not allowed to be null or undefined. If the type and the behavior don’t coincide, that’s a problem for the back-end team. 😈 Since we’re exposing `[part]` names for styleability, I’ve changed the class names inside VersionDetails into `[part~=]` selectors. We’re not performance-bound, and it reduced the clutter. * Replace aria wayfinders used for testing with Open UI Automation identifiers. * Expansion tests updated. * . * web/admin: Make Sidebar a wholly coherent and independent entity This commit revises how Sidebar works. I introduce a new type that the Sidebar understands: `SidebarItem`: ``` javascript export interface SidebarItem { label: string; key: string; expanded?: boolean; path?: string | null; notice?: string | TemplateResult | null; children?: SidebarItem[]; } ``` ## Sidebar changes This type is meant to drive the Sidebar alone, independent of the needs of any client code (although it is, obviously, good enough to support ak-interface-admin). I revise `Sidebar` to be the whole component; no SidebarItem renderer, no slots. The container into which it is rendered is the client code’s responsibility. There are two levels of rendering: the Groups and the Items, and right now they’re only distinguished by “Does it have children?” There were four renderers in SidebarItem, and two of them are gone since they were unused. I have deliberately left room to revise this again so that a second-level can support a path *and* children. I have an idea for what to do with it. The CSS has entirely been brought in to handle a single sidebar. ## Sidebar Session Persistence This is entirely in a controller now; it only needs to be included to do its magic, and it works quite well. I have also revised the very long function names in `expansion.ts` and treat the entire file as a single namespace. The names are shorter and more readable, and can be imported with the `* as SidebarExpansion` syntax to support the full namespace. This makes Sidebar Session Persistence swappable with a Sidebar Device Persistence (using `localStorage`), should we so desire. Functions in `expansion` that no one was using have been deleted. YAGNI forever. ## Navigation *`sidebarEntries.ts`* The navigation folder is split: the `Entries` file was always meant to be an easy-to-find collection of all the *Entries*, and nothing more, the Entries themselves were meant to be easily editable and fit within a visually informative table. All the tooling cluttered that. With one exception, all tooling has been mooved to the `Tools` file. That exception is a tool, *here*, that will either hand you a “plain” SidebarEntries, or a “can enterprise” SidebarEntries, based on a flag. That logic does not belong in the Interface file. *`sidebarTools.ts`* Contains two separate units: one converts the `SidebarEntries` collection into a `SidebarItems` collection fit for sending to the Sidebar. The others (a) assists the Interface in finding the right key to send to the Sidebar for the current path, and (b) assists the header in filling out the page title. Due to some of the needs in the Interface, `resolveSidebarItems` is an `ExtendedSidebarItem`; it has extra fields to help the CommandPalette. The shape passed to Sidebar is an unchanged `SidebarItem`. ## Interface The palette code is revised to understand the new `ExtendedSidebarItem` format. The `ak-page-navbar` and `ak-sidebar` calls have been revised to take the new format. The values are derived at the beginning of the `render()` function to avoid multiple calls to the resolvers. * I didn't think I'd fat finger while writing the commit message, but what do I know? * Added the requirement that every item passed to the sidebar must have a path or children (or both; both is good too) * Almost there. * Almost there. * web/admin: Put icons in the sidebar. ## Description This commit updates the Sidebar to have icons next to top-level headers. ## What 1. Add icons to `AdminSidebarEntries`. The type of `SidebarItem` and `SidebarEntry` have been updated to support this change. 2. Add a unit test to Admin to validate that every SidebarItem we generate has a path or children. This is not an exclusive-or; it allows for both. I’m leaving room for another feature. 😈 3. Bring the entirety of the sidebar into a new namespace, `ak-c-sidebar`. It is now vendored. Anything we weren’t using, I’ve thrown overboard. 4. Each row is now a grid with very solid definitions for the width of the icon and the toggle; the label is given the rest of the horizontal space. This lets us define both the icon and the “rail” (movement/reassurance indicator) and position them perfectly without having to invoke pixels at our end. 5. Update the renderers to produce three different kinds of navigation rows: links, toggles, and toggle-plus-link. * Recommendation from automated review. * Revised naming code to track certain features. * Adding the Breadcrumbs visual component. * web/admin: Add a Breadcrumb context manager to the navigation suite ## Description This commit introduces a Breadcrumb component (patterned on the [Patternfly 5 Breadcrumb Component](https://v5-archive.patternfly.org/components/breadcrumb/html)) and introduces a BreadcrumbController that tracks changes in our navigation to provide information in the format the Breadcrumb component expects. ## What ### First, a little maintenance: `findCurrentSidebarKey` and `findSidebarSectionByRoute` are the *same function*, it’s just that one returns the key used by the code, the other returns the label used by humans. (Also, they took their arguments in different order). I’ve renamed the latter to `findCurrentSidebarSectionLabel`, made the argument sequences the same, and extracted the common functionality. The function `findSidebarEntries` now returns a list of sidebar entries. Most functions are only interested in the last one (the tip of the route is the page or page/tab combo you’ve navigated to) but having that information is useful. ### Breadcrumb Context Controller The Breadcrumb controller is a standard parasitic context manager: it attaches to an object and monitors that object’s behavior, translating changes in that object into messages for other services to use. To enable it, you need only add exactly one line to an Interface, creating an instance of the controller. It does everything else. The controller has no additional external dependencies, and it creates no new external obligations. Because of our split navigation (Routes for collections, Tabs for objects), the controller listens for both events, identifies the current full path according to the SidebarEntries, and records each step along the way. It publishes this information as an active context object. And that’s pretty much all it does. ### Breadcrumb Component (`ak-breadcrumb`) The Breadcrumb Component takes a property argument, `.entries`, that is a list of `{ label, path? }` pairs; if the path is present and is *not* the page you’re currently looking at, the label will be wrapped in an anchor for easy navigation up the hierarchy. The Breadcrumb Component is API-free. ### Breadcrumb UI Component (`ak-ui-breadcrumb`) The Breadcrumb UI Component inherits and extends the Breadcrumb component by plugging into the Breadcrumb Context and pushing the context changes into the the `.entries` field before rendering. This avoids both API entanglement with the Breadcrumb renderer, having to remember how to use it as a slotted controller, or some other shenaningans to get `ak-breadcrumb` into the right position. ### Miscellaneous Jens thought shortening “Enterprise Only” to “Enterprise” and floating it to the right looked nice. * The updated format for crumbs required an update to the unit tests. * Revised naming code to track certain features. * Adding the Breadcrumbs visual component. * web/admin: Add a Breadcrumb context manager to the navigation suite ## Description This commit introduces a Breadcrumb component (patterned on the [Patternfly 5 Breadcrumb Component](https://v5-archive.patternfly.org/components/breadcrumb/html)) and introduces a BreadcrumbController that tracks changes in our navigation to provide information in the format the Breadcrumb component expects. ## What ### First, a little maintenance: `findCurrentSidebarKey` and `findSidebarSectionByRoute` are the *same function*, it’s just that one returns the key used by the code, the other returns the label used by humans. (Also, they took their arguments in different order). I’ve renamed the latter to `findCurrentSidebarSectionLabel`, made the argument sequences the same, and extracted the common functionality. The function `findSidebarEntries` now returns a list of sidebar entries. Most functions are only interested in the last one (the tip of the route is the page or page/tab combo you’ve navigated to) but having that information is useful. ### Breadcrumb Context Controller The Breadcrumb controller is a standard parasitic context manager: it attaches to an object and monitors that object’s behavior, translating changes in that object into messages for other services to use. To enable it, you need only add exactly one line to an Interface, creating an instance of the controller. It does everything else. The controller has no additional external dependencies, and it creates no new external obligations. Because of our split navigation (Routes for collections, Tabs for objects), the controller listens for both events, identifies the current full path according to the SidebarEntries, and records each step along the way. It publishes this information as an active context object. And that’s pretty much all it does. ### Breadcrumb Component (`ak-breadcrumb`) The Breadcrumb Component takes a property argument, `.entries`, that is a list of `{ label, path? }` pairs; if the path is present and is *not* the page you’re currently looking at, the label will be wrapped in an anchor for easy navigation up the hierarchy. The Breadcrumb Component is API-free. ### Breadcrumb UI Component (`ak-ui-breadcrumb`) The Breadcrumb UI Component inherits and extends the Breadcrumb component by plugging into the Breadcrumb Context and pushing the context changes into the the `.entries` field before rendering. This avoids both API entanglement with the Breadcrumb renderer, having to remember how to use it as a slotted controller, or some other shenaningans to get `ak-breadcrumb` into the right position. ### Miscellaneous Jens thought shortening “Enterprise Only” to “Enterprise” and floating it to the right looked nice. * The updated format for crumbs required an update to the unit tests. * Changes requested by reviewer (@GirlBossRush). |
||
|
|
bd1b785ad6 | web/elements: give ak-diagram tests time for Mermaid's first render (#27625) | ||
|
|
eebd7de716 |
web/elements: vendor sidebar and add icons (#27289)
* web/elements: vendor sidebar and add icons * web/elements: put sidebar expanded state on the toggle and nest sublists --------- Co-authored-by: Teffen Ellis <[email protected]> |
||
|
|
9dd19ca6f7 |
providers/oauth2: don't set state in responses if not supplied (#9735)
* core/oauth2: don't set state in responses if not supplied * providers/oauth2: omit state from all authorization responses when not supplied Extend the fix to the form_post and implicit/hybrid responses, use the same truthiness rule as AuthorizeError, and add tests for the code (query, fragment, form_post) and implicit flows without state. Co-Authored-By: Alex Anderson <[email protected]> * providers/oauth2: echo an empty state back verbatim RFC 6749 §4.1.2/§4.2.2/§4.1.2.1 require returning the exact state value whenever the parameter was present in the request, including when it is empty. Check for presence (is not None) instead of truthiness in both success and error responses, and keep blank values when re-parsing the response URL for form_post and the ui_locales redirect rewrite. Co-Authored-By: Alex Anderson <[email protected]> --------- Co-authored-by: alxndrsn <alxndrsn> Co-authored-by: Jacob S <[email protected]> Co-authored-by: Jacob Sachs <[email protected]> Co-authored-by: Jens L. <[email protected]> |
||
|
|
b159e8f422 |
web/elements: expansion visual hierarchy (#27562)
* Get rid of that empty column; we'll use styling instead. * web/admin: Provide a stronger visual hierarchy for expansion rows. ## Description The lack of visual separation between BoundPoliciesList, TaskList, and ScheduleList in expansion rows has always irritated me. It’s hard to make out what I’m looking at, at any given time. This commit creates a new visual primitive to make that easier, and wraps expansion row targets in it. ### SectionCard This commit provides a new visual primitive element, `ak-section-card`, that exists strictly to provide that visual separation: a strong label, a consistent location for the description, a visual separation using both whitespace and a border to create visual distinctiveness between components in an expansion row. ### Table The table CSS is updated to say that if the table has an `ak-section-card` in it, it’s a flex display with objects in top-to-bottom order, and it has off-the-inline-start spacing so that each “depth” of the hierarchy is clear and apparent. The table itself is updated to get rid of the leftmost column. It wasn’t used by default, and its spacing was quite wide compared to the design provided by this change. ### Tasks and Schedules The tasks and schedules lists have been wrapped in SectionCard and properly annotated with labels (“Tasks” or “Schedules”) as appropriate. Cleanup: Rather than create a new SectionCard for the task list associated with a schedule, I just read in the taskList functional renderer from `TaskList`. ### BoundPoliciesList While I was replacing the BoundPoliciesList with SectionCard-wrapped equivalents, I noticed that they all had a set pattern, so I extracted the pattern and created a `renderBoundPoliciesExpansion()` function that handles all the details. That both cleaned up a number of call locations and affirmed their types, and it let me only have to write one new SectionCard wrapper. Cleanup: In order to avoid duplicating the default `allowedTypes` from BoundPoliciesList in `renderBoundPoliciesExpansion()`, I extracted the default list into a top-level `const` and exported it; now both can use it safely. Cleanup: The description of the bound policies for ApplicationEntitlements is now in the correct place. ## Status I haven’t figured out what to do with the `F#$!%!^!#` `Path:` field in the BlueprintsList page. * Well, that was potentially embarrassing. * Although we don't use it, The BoundPoliciesList description slot can take anything, so I provided a capacity to pass it a 'TemplateResult'. I don't know, maybe someone will want to pass text wrapped in a tooltip or something someday. * Still trying to get the whitespace exactly right. * Move the path into the 'name & description' block, creating a more unified view. * Better structure. * Don't have description lists on that page anymore, so we don't need the extra CSS or its override. * That's so much nicer. * Let tables bleed to the edge, but provide spacing for the DescriptionLists in DataExport. * Too much whitespace between the header and the body. Fixed. * Update web/src/admin/policies/renderPolicyBindings.ts Co-authored-by: Teffen Ellis <[email protected]> Signed-off-by: Ken Sternberg <[email protected]> * Update web/src/admin/policies/renderPolicyBindings.ts Co-authored-by: Teffen Ellis <[email protected]> Signed-off-by: Ken Sternberg <[email protected]> * Update web/src/admin/requests/BoundRequestRulesTable.ts Co-authored-by: Teffen Ellis <[email protected]> Signed-off-by: Ken Sternberg <[email protected]> * Some manual edits as suggested by a reviewer (@GirlBossRush) * Some manual edits as suggested by a reviewer (@GirlBossRush) * Return types interefered with build and type resolution. Let the inferer do its job. --------- Signed-off-by: Ken Sternberg <[email protected]> Co-authored-by: Teffen Ellis <[email protected]> |
||
|
|
65b8bce912 | providers/oauth2: accept ML-DSA keys for DPoP (#27174) | ||
|
|
edef75fe2a |
website/docs: draft 2026.11 release notes (#26814)
* website/docs: draft 2026.11 release notes Add highlights, the breaking changes found by reviewing every PR merged since 2026.8, new features, and new integration and source guides. * website/docs: fix release note links Drop the extra /integrations/ segment from 2026.2 integration links, add a missing trailing slash in 2026.5, and fix the template's upgrade link depth for files in a year directory. * release: flesh out notes * releases: fixup! * website/docs: tidy 2026.11 release notes Move sections stranded under the source guides into place, fill the password lockout, password device, and required actions stubs, and remove duplicate entries. --------- Co-authored-by: Dominic R <[email protected]> |
||
|
|
a18573e463 |
sources/ldap: store the directory date when resetting a password (#27578)
sources/ldap: record the directory's change date when resetting a password When pwdLastSet or krbLastPwdChange is newer than the user's password, the sync makes the password unusable but kept the old change date. So every later sync saw the directory password as newer again and stored a new unusable hash, which ends the user's sessions on each sync. Store the directory's date as the password change date, and compare with > so the stored date does not count as newer. |
||
|
|
62e10f61e3 |
events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102)
* events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2
MaxMind's GeoLite2 databases need an account and license key at build
time. DB-IP publishes free monthly City and ASN Lite databases in the
same format, so the image downloads those instead.
The default paths change to /geoip/dbip-{city,asn}-lite.mmdb. When the
default file is missing, the old GeoLite2 filename is loaded with a
warning, so volumes mounted over /geoip keep working.
* separate geoip container
Signed-off-by: Jens Langhammer <[email protected]>
* move geoip to base-images repo
https://github.com/goauthentik/base-images/pull/202
Signed-off-by: Jens Langhammer <[email protected]>
---------
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
|
||
|
|
41e8fdae66 |
web/admin: fix ldap source parent group form (#26421)
* web/sources/ldap: fix parent group submission and type-check field names
* web/tests: fix LDAP source form regression coverage
* web/elements: add typed field() helper to Form
Replace the repeated `"x" satisfies keyof LDAPSourceRequest` clauses in
LDAPSourceForm with `this.field("x")`, which checks field names against
the form's submitted data type `D`.
Forms should pass their `*Request` type as `D` before adopting it: the
default (the model type) includes read-only fields like `pk` and omits
write-only fields like passwords and secrets.
|
||
|
|
9c0972e8fb |
stages/prompt: preserve empty initial values (#25148)
* stages/prompt: allow blank read-only fields * fix Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: tungyhardDevOps <[email protected]> Co-authored-by: Marc 'risson' Schmitt <[email protected]> Co-authored-by: Jens L. <[email protected]> |
||
|
|
79ef2080f0 |
core: batch expired cache and channel record cleanup (#27587)
* core: batch expired cache and channel record cleanup * delete more efficiently Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: Jens Langhammer <[email protected]> |
||
|
|
f15be0f1e3 |
web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598)
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.16.0 to 12.3.0. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Commits](https://github.com/mermaid-js/mermaid/compare/[email protected]@12.3.0) --- updated-dependencies: - dependency-name: mermaid dependency-version: 12.3.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
f3ec620b2a |
ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630)
ci: bump taiki-e/install-action in /.github/actions/setup Bumps [taiki-e/install-action](https://github.com/taiki-e/install-action) from 2.89.0 to 2.89.1. - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/install-action/compare/1919c4a95903d2c33e4a221102edca87309fc14b...682ce6c3c696a4cd5168a05f98e51aa02b877941) --- updated-dependencies: - dependency-name: taiki-e/install-action dependency-version: 2.89.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
964a876bd9 |
core: bump goauthentik/fips-python from d4c46c4 to 69e7058 in /lifecycle/container (#27626)
core: bump goauthentik/fips-python in /lifecycle/container Bumps goauthentik/fips-python from `d4c46c4` to `69e7058`. --- updated-dependencies: - dependency-name: goauthentik/fips-python dependency-version: 3.14.10-p1-slim-trixie-fips dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
146a6d5aa5 |
ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628)
ci: bump AndreKurait/docker-cache in /.github/actions/setup Bumps [AndreKurait/docker-cache](https://github.com/andrekurait/docker-cache) from 0.7.0 to 0.7.1. - [Release notes](https://github.com/andrekurait/docker-cache/releases) - [Changelog](https://github.com/AndreKurait/docker-cache/blob/main/CHANGELOG.md) - [Commits](https://github.com/andrekurait/docker-cache/compare/7a3887908bdb97935395833df69b060cfcca0f7f...e1eb0120c0c16b3f1c6ff1c0ef4ebc9f67f8dc6a) --- updated-dependencies: - dependency-name: AndreKurait/docker-cache dependency-version: 0.7.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
ffb5b458fd |
ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629)
ci: bump actions-rust-lang/setup-rust-toolchain Bumps [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases) - [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions-rust-lang/setup-rust-toolchain/compare/ecabd13d1c56bd1345c230e542e9144811ad706f...a188e68d0fd2bd36ad51dccb2b07ba6e75105f30) --- updated-dependencies: - dependency-name: actions-rust-lang/setup-rust-toolchain dependency-version: 2.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
81a8e2e319 |
ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627)
Bumps [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases) - [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions-rust-lang/setup-rust-toolchain/compare/ecabd13d1c56bd1345c230e542e9144811ad706f...a188e68d0fd2bd36ad51dccb2b07ba6e75105f30) --- updated-dependencies: - dependency-name: actions-rust-lang/setup-rust-toolchain dependency-version: 2.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
f5c3a23e62 |
providers/oauth2: sign tokens with ML-DSA keys (#27172)
* providers/oauth2: sign tokens with ML-DSA keys * Apply suggestion from @kensternberg-authentik Co-authored-by: Ken Sternberg <[email protected]> Signed-off-by: Jens L. <[email protected]> * providers/oauth2: use MLDSAAlgorithm.algorithm_for_key and MLDSAKey * providers/oauth2: skip ML-DSA JWKS tests when FIPS is enabled * providers/oauth2: expect ML-DSA in the supported signing key types message --------- Signed-off-by: Jens L. <[email protected]> Co-authored-by: Jens L. <[email protected]> Co-authored-by: Ken Sternberg <[email protected]> |
||
|
|
314765a53d |
sources/oauth: verify ML-DSA signed tokens (#27170)
* sources/oauth: verify ML-DSA signed tokens * sources/oauth: move algorithm_for_key onto MLDSAAlgorithm * sources/oauth: skip ML-DSA tests when FIPS is enabled |
||
|
|
1ad0decc6b |
web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.18 to 8.5.32. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.5.18...8.5.32) --- updated-dependencies: - dependency-name: postcss dependency-version: 8.5.32 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
397b2f3930 |
web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.16 to 8.5.32. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.5.16...8.5.32) --- updated-dependencies: - dependency-name: postcss dependency-version: 8.5.32 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
373a0ae19c |
web/element: fix missing line break between elapsed time and displayed time. (#27624)
Slightly smarter: SlotController can help if the slot changes dynamically, and the styling helps the UI line up the objects correctly. |
||
|
|
7961cc5a5d |
web/elements: rename ak-codemirror to ak-code-editor (#27406)
Name the element after what it is, not the library behind it, ahead of replacing CodeMirror. - Rename `<ak-codemirror>` to `<ak-code-editor>` - Move `#elements/CodeMirror` to `#elements/CodeEditor` - Rename `CodeMirrorMode` and the source helpers to match Co-authored-by: Dominic R <[email protected]> |
||
|
|
be54152697 |
website/integrations: add Google Cloud Workforce Identity Federation guide (#27571)
* adding google cloud integration documentation * integrations: touch up --------- Co-authored-by: Dominic R <[email protected]> Co-authored-by: Dewi Roberts <[email protected]> |
||
|
|
4569c221c1 |
root: test that FIPS mode refuses non-approved algorithms (#27536)
* root: test that FIPS mode refuses non-approved algorithms * fix comment |
||
|
|
f8cd97ebfb |
web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.16 to 3.3.20. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.16...3.3.20) --- updated-dependencies: - dependency-name: nanoid dependency-version: 3.3.20 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
a445660fa6 |
web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600)
Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.10.43 to 2.11.35. - [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases) - [Commits](https://github.com/web-platform-dx/baseline-browser-mapping/compare/v2.10.43...v2.11.35) --- updated-dependencies: - dependency-name: baseline-browser-mapping dependency-version: 2.11.35 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
a6f130bcc3 |
web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603)
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.16.1 to 11.17.2. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Commits](https://github.com/mermaid-js/mermaid/compare/[email protected]@11.17.2) --- updated-dependencies: - dependency-name: mermaid dependency-version: 11.17.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
dc057d465b |
web: bump nanoid from 3.3.15 to 3.3.20 in /web (#27605)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.15 to 3.3.20. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.15...3.3.20) --- updated-dependencies: - dependency-name: nanoid dependency-version: 3.3.20 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
941b6bc9c0 |
web: bump postcss from 8.5.26 to 8.5.32 (#27607)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.26 to 8.5.32. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.5.26...8.5.32) --- updated-dependencies: - dependency-name: postcss dependency-version: 8.5.32 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
ca5ce170d7 |
web: bump svgo from 3.3.4 to 3.3.5 (#27609)
Bumps [svgo](https://github.com/svg/svgo) from 3.3.4 to 3.3.5. - [Release notes](https://github.com/svg/svgo/releases) - [Commits](https://github.com/svg/svgo/compare/v3.3.4...v3.3.5) --- updated-dependencies: - dependency-name: svgo dependency-version: 3.3.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
cd61e91eb8 |
web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 (#27610)
Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.10.43 to 2.11.35. - [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases) - [Commits](https://github.com/web-platform-dx/baseline-browser-mapping/compare/v2.10.43...v2.11.35) --- updated-dependencies: - dependency-name: baseline-browser-mapping dependency-version: 2.11.35 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |