-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
endpoints: FleetDM connector #18589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
endpoints: FleetDM connector #18589
Conversation
Signed-off-by: Jens Langhammer <[email protected]> # Conflicts: # blueprints/schema.json # schema.yml
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18589 +/- ##
==========================================
- Coverage 93.19% 93.06% -0.14%
==========================================
Files 929 934 +5
Lines 51174 51340 +166
==========================================
+ Hits 47692 47778 +86
- Misses 3482 3562 +80
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-33274d48f0d09e37c2457537d18f9b551eda7a68
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-33274d48f0d09e37c2457537d18f9b551eda7a68Afterwards, run the upgrade commands from the latest release notes. |
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
| getSuccessMessage(): string { | ||
| return this.instance | ||
| ? msg("Successfully updated fleet connector.") | ||
| : msg("Successfully created fleet connector."); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| getSuccessMessage(): string { | |
| return this.instance | |
| ? msg("Successfully updated fleet connector.") | |
| : msg("Successfully created fleet connector."); | |
| } | |
| public override getSuccessMessage(): string { | |
| return this.instance | |
| ? msg("Successfully updated Fleet connector.") | |
| : msg("Successfully created Fleet connector."); | |
| } |
| name="name" | ||
| placeholder=${msg("Connector name...")} | ||
| label=${msg("Connector name")} | ||
| value=${ifDefined(this.instance?.name)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| value=${ifDefined(this.instance?.name)} | |
| value=${this.instance?.name ?? ""} |
| <ak-form-element-horizontal name="enabled"> | ||
| <label class="pf-c-switch"> | ||
| <input | ||
| class="pf-c-switch__input" | ||
| type="checkbox" | ||
| ?checked=${this.instance?.enabled ?? true} | ||
| /> | ||
| <span class="pf-c-switch__toggle"> | ||
| <span class="pf-c-switch__toggle-icon"> | ||
| <i class="fas fa-check" aria-hidden="true"></i> | ||
| </span> | ||
| </span> | ||
| <span class="pf-c-switch__label">${msg("Enabled")}</span> | ||
| </label> | ||
| </ak-form-element-horizontal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <ak-form-element-horizontal name="enabled"> | |
| <label class="pf-c-switch"> | |
| <input | |
| class="pf-c-switch__input" | |
| type="checkbox" | |
| ?checked=${this.instance?.enabled ?? true} | |
| /> | |
| <span class="pf-c-switch__toggle"> | |
| <span class="pf-c-switch__toggle-icon"> | |
| <i class="fas fa-check" aria-hidden="true"></i> | |
| </span> | |
| </span> | |
| <span class="pf-c-switch__label">${msg("Enabled")}</span> | |
| </label> | |
| </ak-form-element-horizontal> | |
| <ak-switch-input | |
| name="enabled" | |
| label=${msg("Enable XZY")} | |
| ?checked=${this.instance?.enabled ?? true} | |
| help=${msg("....")} | |
| ></ak-switch-input> |
| @state() | ||
| protected error?: APIError; | ||
|
|
||
| static styles: CSSResult[] = [PFBase, PFCard, PFPage, PFGrid, PFButton, PFDescriptionList]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PFBase can be omitted since AKElement has a singleton it references when mounting
| static styles: CSSResult[] = [PFBase, PFCard, PFPage, PFGrid, PFButton, PFDescriptionList]; | |
| static styles: CSSResult[] = [PFCard, PFPage, PFGrid, PFButton, PFDescriptionList]; |
| } | ||
| } | ||
|
|
||
| updated(changed: PropertyValues<this>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| updated(changed: PropertyValues<this>) { | |
| public override updated(changed: PropertyValues<this>) { |
| }); | ||
| } | ||
|
|
||
| renderTabOverview() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| renderTabOverview() { | |
| protected renderTabOverview() { |
| const [appLabel, modelName] = | ||
| ModelEnum.AuthentikEndpointsConnectorsFleetFleetconnector.split("."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved out of the element instance as a constant?
| tabindex="0" | ||
| slot="page-permissions" | ||
| id="page-permissions" | ||
| aria-label="${msg("Permissions")}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| aria-label="${msg("Permissions")}" | |
| aria-label=${msg("Permissions")} |
|
@GirlBossRush I've opened a new pull request, #18651, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: GirlBossRush <[email protected]>
* Initial plan * Add public override modifiers to updated method Co-authored-by: GirlBossRush <[email protected]> * Address additional feedback from PR #18589 Co-authored-by: GirlBossRush <[email protected]> * Fix indentation in ak-switch-input component Co-authored-by: GirlBossRush <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: GirlBossRush <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]> # Conflicts: # schema.yml
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
No description provided.