Commit graph

107 commits

Author SHA1 Message Date
Eric
c1f2e8a810
Update sails.helpers.http.del usage (#7340)
Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-08-22 13:11:54 -05:00
Eric
e2022c67db
Website: send request to Zapier when a subscription is created (#7273)
* Website: send request to Zapier when a license is purchased

* Update error message/lint fix

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-08-17 18:46:24 -05:00
Eric
7974bdfa80
Website: Fleet Sandbox (#6380)
* create pages, add routes, update policies

* add new pages to importer

* sandbox page

* login -> sandbox-login

* Update login.less

* psuedo-code/code comments

* remove sandbox page

* Revert "remove sandbox page"

This reverts commit d5a1280759.

* view action drafts

* delete forgot-password page

* two new actions + draft code

* change action name

* Draft view actions and page scripts

* Update signup.js

* update comments

* update signup & sandbox-login page script

* update helper comments

* update helper usage in comments

* view-sandbox » view-sandbox-or-redirect

* Update helpers, actions, and routes

* login » sandbox-login

* update attributes on user model

* update signup action

* update page scripts and importer

* Update view-register.js

* html + css

* update signup and view-sandbox-or-redirect

* Password reset

Update user's sandbox password when they have a sandbox instance

* add new-sandbox, update sandbox page

- `/try-fleet/new-sandbox` added for users who don't have an existing Fleet Sandbox instance,
- `/sandbox` updated to redirect users to the `/demologin` endpoint of their Fleet Sandbox instance if it is still valid, or display the sandbox expired state
-  updated policies & routes

* layout and importer updates

* update sandbox-login links & page script

* update signup action

* change logout redirect location to homepage

* lint fixes

* lint fixes

* Update sandbox & sandbox-expired

* Comment updates

* update password requirements for existing pages

* remove /get-started route

* lint fixes

* replace env variable with url

* remove `required: false` from organization attribute on user model

* send redirectToSandbox from view instead of routes

* changes sandbox page name

* add 10 second timeout to /healthz check, add authorization header to cloud provisioner request

* update environment variable name

* update authorization header

* remove /new-sandbox

* update unauthorized response to redirect to correct login screen

* update comments

* update layout

* replace new-sandbox redirects with consistency violation errors

* Provision Fleet sandbox for users logging in

* Revert "Provision Fleet sandbox for users logging in"

This reverts commit 6297c33892.

* Revert "Revert "Provision Fleet sandbox for users logging in""

This reverts commit c2a2567b68.

* Revert "Revert "Revert "Provision Fleet sandbox for users logging in"""

This reverts commit acc178ea76.

* update sandbox-login mobile styles

* update sandbox-expired page to match latest wireframes

* remove required: false and planned changes comments, update signup errors and behavior

* update error

* lint fix on updated error

* Update error's indentation

* remove added forgot-password flow, add redirect for sandbox users changing their password

* Use fleetSandboxDemoKey to login to Fleet Sandbox, remove password changing flow

* update bootstrap to give admin user an expired sandbox

* Update signup.js

* remove unused exits, revert password recovery email changes

* required:false is implied if unspecified, so can be omitted

* Remove defaultsTo: '', since it is not needed

This applies the changes discussed in https://github.com/fleetdm/fleet/pull/6380#discussion_r929538495

It also makes two other trivial changes.

* Eliminate another unnecessary require:false

I think this one is actually baked into the sails-generate template.

* remove custom password validation

* update page name (sandbox-teleporter) and view action name

* revert minor changes to existing files

* update sandbox login friendlyName

* Update unauthorized response to redirect to /login

* Delete new-sandbox.less

* update layouts and importer

* add /fleetctl-preview route for old get-started page, update sandbox route

* update signup action with changes from review, add retry() to cloud provisioner request

* Update routes.js

* add missing comma to route

* update layout, fix typo in signup

* Update sandbox-expired.ejs

* lint fixes

* Update download-sitemap.js

* small whitespace changes, regenerate cloud-sdk

* remove placeholder text in password inputs

* add loading spinner to sandbox teleporter

* add logout button to header nav

* hide header on sandbox-teleporter

* update errors, check if a user already exists before cloud provisioner request

* Update sandbox-teleporter.page.js

* Update sandbox-teleporter.page.js

* Update signup.js

* resize loading spinner, history.pushState() » history.replaceState()

* send users who reset their password back to the fleetdm.com homepage

* Add Zapier webhook request for sandbox signups

* rebuild-scloud-sdk after resolving merge conflict

* update zapier request error

* Add comment w/ context about how Zapier responds with a 2xx even if there was a problem

* Update links to /get-started to go to /try-fleet/register, change /get-started redirect

* Revert changes to links

* add /test-fleet-sandbox redirect, revert /try-fleet redirect

* send logged out users to the sandbox login page when they go to /try-fleet/sandbox

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-08-12 17:31:01 -05:00
Eric
7fe9a27590
Website: update sitemap (#7107)
* Website: update hand coded html pages in sitmap

* add /podcasts
2022-08-12 11:54:01 +09:00
Eric
edcf09febd
Website: add Zapier webhook to signup.js (#7177)
* Add Zapier webhook request to signup form, add signupReason input

* webhook-secret » webhookSecret
2022-08-11 21:05:24 -05:00
Eric
667c566b28
Website: Remove machinepack-github dependency (#7101)
* Remove machinepack-github dependency, update recieve-from-github

* remove unused variable, update headers in delete request
2022-08-08 16:58:48 -05:00
Martin Angers
012869f971
Fleet Premium: de-anonymize usage stats (#7013) 2022-08-03 14:44:34 -04:00
Artemis Tosini
e6e1a0fa02
Add artemist-work as maintainer in receive-from-github.js webhook (#7034) 2022-08-03 10:39:13 -05:00
Eric
abadf8efe3
Website: pricing update (#7018)
* pricing update

* change env variable name
2022-08-02 13:57:48 -05:00
Mike McNeil
0276640630
Bot: Fix GitHub API integration for adding "#handbook" label (#7011)
Closes https://github.com/fleetdm/confidential/issues/1574

This is a follow-up to fix a couple of issues introduced in https://github.com/fleetdm/fleet/pull/6967
2022-08-01 23:14:56 -05:00
Eric
20afcb8f29
Add #handbook label to handbook only PRs (#6967)
* add #handbook label to handbook PRs

* Update get-is-pr-only-handbook-changes.js

* remove while loop from _.all()

* revert changes to github token name

* Simplifications

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-08-01 22:27:54 -05:00
Eric
f4c2b62fd5
Website: Conditionally show swag CTA (#6964)
* conditionally hide fleet swag form

* Check cp-ipcountry and cp-iplongitude

* update comment

* use req.get(), update comment
2022-08-01 15:58:05 -05:00
Mike McNeil
fece71a6a0
Tool: Ryan from mergefreeze suggests trying this (#6922) 2022-07-27 11:21:29 -05:00
Mike McNeil
ff116226a7
Tool: Workaround for mergefreeze API (#6908)
A timeboxed workaround for an intermittent issue where the mergefreeze API reports that a repo is frozen: false, when the mergefreeze UI says that it is actually truly frozen.
2022-07-27 01:41:57 -05:00
Mike McNeil
c5adb912f9
Tool: Remove MergeFreeze logs (#6907)
Turns out the issue being debugged in https://github.com/fleetdm/fleet/pull/6906 was in the API itself-- somehow it can get stuck on frozen: false.  If that happens, the solution is to freeze/unfreeze everything in the dashboard
2022-07-27 01:19:47 -05:00
Mike McNeil
878c21c491
Tool: Debug github webhook (#6906) 2022-07-27 00:56:50 -05:00
Mike McNeil
39fea292b9
Tool: Bring back mergefreeze API integration (#6905)
* Tool: Bring back mergefreeze API integration

Context: https://github.com/fleetdm/fleet/pull/5628#issuecomment-1196175485

Unfortunately, the API doesn't work.

* Lay out how this would work in the database - but instead, do it ephemerally for now

* Remove model

* Maintain state (the easy way for now)
2022-07-27 00:36:31 -05:00
Robert Fairburn
189362c2af
Add rfairburn to receive-from-github.js (#6848) 2022-07-25 18:36:04 -05:00
Mike McNeil
a26e5002a3
Website: Follow up to strip leading slashes (#6843)
* Website: Follow up to strip leading slashes

re https://github.com/fleetdm/fleet/pull/6796#issuecomment-1193054810

* remove log

* Verified: whitespace trim not needed

And leading slash trim is only needed if using a regex route (not something I recommend most of the time).  But since we are using one, I included it, and put it in all three places for consistency.  (It doesn't ever hurt)
2022-07-25 11:16:40 -05:00
Mike McNeil
525a144311
Website: Simplify regex syntax used for #2025 (#6796)
* Simplify regex syntax used for #2025

* extra trailing slashes now redirect instead of rendering

* Simplify regex

* Match implementation to view-basic-documentation, etc

* Match view-basic-documentation, and slurp up title and description logic to help indicate (and future proof) that it has no side effects

* Update view-basic-handbook.js

* Update view-basic-documentation.js

* trivial

* lint fix

* make handbook and doc landing pages continue working despite my recent commit in this same PR, and add some comment clarifications

* update regex to replace leading slashes and whitespace

Co-authored-by: Eric <eashaw@sailsjs.com>
2022-07-21 17:02:32 -05:00
gillespi314
9a1adeb61b
Update documentation and Sails app for additional usage statistics (#6589) 2022-07-20 20:53:19 -05:00
Chris McGillicuddy
c42b9e550a
Onboarding: GitHub maintainer list (#6746) 2022-07-19 13:04:09 -06:00
Gabriel Hernandez
97bb979a95
add ghernandez345 as contributor (#6639) 2022-07-13 08:40:05 -07:00
Roberto Dip
b2d07e56b5
report error analytics (#6341)
Related to #5898, this reports an anonymized summary of errors stored in Redis into the analytics payload.

For each error stored, this includes:

- A `count` attribute with the number of occurrences of the error
- A `loc` attribute with the 3 topmost lines in the stack trace. Note that stack traces only contain package name + line number (example: github.com/fleetdm/fleet/server.go:12

This also includes a minor refactor around error types.
2022-06-28 16:31:14 -03:00
Eric
16672bf410
Website: Add sales one-pager (#6324)
* Website: Create page for sales one-pager

* update layout, add images

* update mobile layout

* update layout & styles

* Update sales-one-pager.less

* add todos for page description and page title

* add alt text, final route & meta information, make hero-image visible at 1024px
2022-06-24 14:50:44 +09:00
Martin Angers
8f66a50f2b
Add hosts enrolled by operating system to anonymous usage stats (#6329) 2022-06-22 16:38:11 -04:00
Martin Angers
dc9e158153
Add weekly active users count in anonymous usage stats (#6317) 2022-06-22 15:20:57 -04:00
Eric
1a245b858a
Website: Add state of device management (#5936)
* state of device management page, chart component

* add images

* website: add charts.min.js, update layout, page script, and images

* layout updates, component validation

* add alt text, lint fixes

* update image name

* update bar-chart styles and layout

* add empty href and link styles

* Style overrides for mobile & tablet

• Added style overrides for mobile and tablet.

* Updated text

Updated text for the following sections:

• Introduction
• Key findings
• Part 1

* Updated text

Updated text in the following sections:
• Part 2
• Part 3
• Part 4
• Part 5
• Part 6

* Additional icon and text change

• Added icon for GitOps
• Repositioned text: The future of device management

* Text change

Removed "Takeaways" header from Part 6.

* style changes

• fixed some inconsistent headers (h3 to h2).
• fixed margin bottom on new GitOps note.
• Removed unneeded subsection div after removing "Takeaways" heading in my previous commit.

* update chart styles, add update charts function, sticky navigation

* lint fix

* lint fix

* Scroll navigation with header

* text changes

Updated chart titles to match the survey.

* style tweaks

Style tweaks to the charts.

* add pdf

Co-authored-by: Mike Thomas <mthomas@fleetdm.com>
2022-06-01 10:31:10 -05:00
Eric
2a5996c5bf
Website: Fix article meta descriptions, add article images to metadata (#5969) 2022-05-31 19:32:00 -05:00
Mo Zhu
b09713f8d9
Update receive-from-github.js (#5896) 2022-05-24 17:38:58 -05:00
Zach Wasserman
ed96be6e17
Disable new merge freeze (#5628)
Keeping this off for now while we finish up the release with the existing tooling.
2022-05-06 10:34:50 -07:00
Mike McNeil
5fe7fea24d
Tool: sails run freeze-open-pull-requests (#5610)
* trivial (comments)

* Remove old unfreeze/freeze logic

* trivial (clarify comment)

* Trivial (fix weird character)

* Extrapolate DRI mappings into config.

* Explain why this exists

* Extrapolate logic

* Use extrapolated logic + add 5 second wait time to prevent accidents + clean up

* Use extrapolated logic and fix omission in helper

* Make freezing actually happen and document usage

* In script, don't freeze PRs as long as they're preapproved to be edited by SOMEBODY

* Lint fixes
2022-05-06 00:12:50 -05:00
Mike McNeil
adc7425501
Automation: Try simpler alternative to mergefreeze (#5592)
* Automation: Alternative to mergefreeze..?

* move constant to the top for easier editing

* Update receive-from-github.js

* enable freeze
2022-05-05 13:56:32 -05:00
Mike McNeil
334d0c70e5
Automation: Make github username lookup case-insensitive (#5588)
For users like `GuillaumeRoss` (not `guillaumeross`)
2022-05-05 10:53:58 -05:00
Mike McNeil
adb1f53d63
Automation: Guillaume is also DRI of /handbook/security-policies (#5587) 2022-05-05 10:15:35 -05:00
Mike McNeil
adc52d3bc0
Website: Disable freeze/refreeze logic + gut sailsrc (#5547)
Website: Disable freeze/refreeze logic + gut sailsrc
2022-05-03 17:59:10 -05:00
Mike McNeil
137016caee
Website: Temporarily disable re-freeze logic to troubleshoot website caching issues on 2022-05-03. (#5545) 2022-05-03 17:45:25 -05:00
Roberto Dip
25beeacdce
add roperzh to receive-from-github.js (#5466) 2022-04-29 18:35:57 -03:00
Eric
f713668390
Website: Add article landing and category pages (#5428)
* articles page

* update articles route to handle category urls

* update articles page

* add articleImageUrl meta tags to article pages

* basic empty state, add comments

* Update view-articles.js

* Update articles.less

* add articles, update styles and image url validation

* lint fix

* Update routes.js

* Update articles.ejs

* Update articles.page.js

Updated article category descriptions.

* migrated more articles

I migrated more articles so that all categories are populated.

* Added thumbnails to new posts

* Some style tweaks

- Tweaked a couple of styles
- Added cursor: pointer to filters
- Changed "Blog" to "Articles" in the navigation
- Changed /blog to /articles in the navigation

Co-authored-by: Mike Thomas <mthomas@fleetdm.com>
2022-04-28 15:16:07 +09:00
Eric
cd0ec13a0c
Website add articles page. (#5243)
* create '/articles' and add 4 test articles

* update build-static-content script for '/articles'

* article pages

* Validate article page metaData

* add articles linked from header, remove test articles

* update article styles

* comment out /articles route, update blog post links

* Move article category page to different branch for future PR

* Update build-static-content.js

* remove pagescript

* Update deploying-fleet-on-render.md

* update meta tags

* lint fixes

* Style & Markdown updates

Made a couple of fixes to the styling and markdown.

* update view action, replace route with regex, update links

* authorsGitHubUserName -> authorGitHubUsername, authorsFullName -> authorFullName

Co-authored-by: Mike Thomas <mthomas@fleetdm.com>
2022-04-22 12:27:03 -05:00
Eric
babccf8a36
License dispenser query strings (#5321)
Co-authored-by: Tim Kern <tim@fleetdm.com>
2022-04-21 16:46:31 -05:00
Juan Fernandez
94c6dfb8fc
Updated contributor list (#5198) 2022-04-19 08:56:15 -04:00
Mike McNeil
7bc16c9b36
GitHub webhook: Only unfreeze/refreeze if actually frozen. (#5182)
Complements https://github.com/fleetdm/fleet/pull/5181

Related to https://github.com/fleetdm/fleet/issues/5179
2022-04-15 19:30:59 -05:00
Mike McNeil
69f8f7da8f
GitHub webhook: Auto-unfreeze ("for now" solution) (#5181)
Resolves https://github.com/fleetdm/fleet/issues/5179
2022-04-15 19:20:13 -05:00
Eric
83736e7b7f
Website: add landing page (#5095)
* dedupe animated arrow styles, create btn-animated-arrow mixin

* add landing page, landing-layout. styles

* update route and metadata

* mobile footer styles

* lint fix

* Update layout-landing.ejs

* Update landing.ejs
2022-04-13 15:12:56 +09:00
Mike McNeil
0482d1da62
Github bot: Temporarily disable label change notifications (#5001)
* Github bot: Temporarily disable label change notifications


Michael Thomas🕐 Today at 01:36
Are these alerts necessary in #g-digital-experience, and if not, how do we turn them off? They're creating a lot of noise in the channel 😵

1 reply

mikermcneil  3 minutes ago
I'm envisioning Digital Experience is responsible for keeping github labels tidy, so having visibility into changes would be useful.  If you currently don't have bandwidth to do it, this is an easy thing to let slip, since it isn't the highest priority.  (Labels have already gotten a bit messy- to the point I don't use them at all anymore, for example.  I don't think they're actually necessary anymore, other than for doing estimations)
I'll PR a change that disables it for now.

* fix extra ampersand
2022-04-08 17:10:38 -05:00
Nathanael Holliday
fc68e41514
Add hollidayn to list of GitHub maintainers (#4915) 2022-04-01 14:45:12 -05:00
Mike McNeil
4531a0aa7a
GitHub webhook: fixes #4827 (#4828)
followup fix for #4827  (this is what I get for rushing)
2022-03-26 00:09:30 -05:00
Mike McNeil
11f752d8b9
GitHub webhook: Fixes #4825 (#4827)
fixes unfinished logic from https://github.com/fleetdm/fleet/pull/4825
2022-03-25 23:26:49 -05:00
Mike McNeil
f93af6fd19
GitHub webhook: Add support for '*' DRI rule (#4825)
* GitHub webhook: Add support for '*' DRI rule

This allows any fleetie to edit the handbook landing page (e.g. in the event pages need to get moved around)

* invert how DRI rules for website are expressed

* lint fix + add support for array syntax

* Update receive-from-github.js

* Update receive-from-github.js

* Update receive-from-github.js

* Update receive-from-github.js

* Update receive-from-github.js
2022-03-25 22:55:32 -05:00