Commit Graph

120 Commits

Author SHA1 Message Date
gillespi314
5603ee8114
Add more usage stats to Sails app (#8230) 2022-10-14 13:54:23 -05:00
Zay Hanlon
dca77054c5
Onboarding: Add 'zayhanlon' to Humans (#8166)
As part of onboarding issue, add 'zayhanlon' to Humans within receive-from-github.js
2022-10-11 11:35:23 -05:00
Eric
53939e7858
Website: update billing info form for Fleet Sandbox users purchasing a license (#7748)
* add additional inputs to billing info form

* adjust layout, update labels to match wireframes

* update inputs

* rebuild cloud-sdk with new inputs

* Remove focus from billing info form

* update updateOne inputs

* Add signupReason to the User model, update new-license page script and signup action

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2022-10-04 14:35:09 -05:00
Eric
9dbf84fb4b
Website: Add pages for schema tables (#7679)
* add osquery tables page

* update build script, add fleet schema folder

* update layout and page script

* add edit-page button, search, remove test attribute from fleet schema

* update styles

* syntax highlighting, update highlight.js, adjust layout

* lint fixes

* Update view-osquery-tables.js

* requested changes from 1:1

* requested changes

- Rename osquery-tables to osquery-table-details & update routes and policies
- Update wildcard input and tables details route
- Fix lint error
- adjust self-calling functions in page script
- rename function and adjust the order of functions in page script

* add osquery tables to builtStaticContent.markdownPages

* update schema folder readme

* add redirect for /tables

* update table input

* remove comment from stylesheet, update syntax highlighting, use variable names from colors.less

* update inputs in view action

* Updates from PR review

* fix lint error

* update syntax highlighting, table page styles

* Update build-static-content.js

* requested changes from code review

* Update build-static-content.js

* fix build script error

* remove string.replaceAll()

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-09-23 19:06:55 -05:00
Eric
15ac7ac189
Update save-billing-info-and-subscribe.js (#7897) 2022-09-22 11:58:31 -05:00
wclithero
eac6134b79
Request to add wclithero as a maintainer (#7087)
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2022-09-21 17:08:14 -07:00
Eric
2f00e528dc
Website: Move docsearch public api key to config variable (#7771)
* move docsearch api key to a config variable, update styles to disable outline on input

* Update basic-handbook.less

* Update basic-handbook.less

* update config variable name & update comment
2022-09-21 18:13:47 -05:00
Eric
a5d2d7e390
Website: add support for description meta tags in markdown articles (#7887)
* add support for meta description tags on markdown articles

* Add description meta tag section to article formatting guide
2022-09-21 17:14:58 -05:00
Mike McNeil
e5ab039e2b
GitHub bot: Separate bots and humans for clarity, remove old bot username, etc (#7846) 2022-09-19 22:09:02 -05:00
Marcos Oviedo
dd50d0c889
Add myself as maintainer in receive-from-github.js webhook (#7824) 2022-09-19 19:13:10 -03:00
Frank Sievertsen
5614ab2501
Add fx5 to list of GitHub usernames (#7683) 2022-09-12 17:14:06 +02:00
Eric
e381c3fe52
Website: Add Newsletter banner and NewsletterSubscription model (#7370)
* create NewsletterSubscription Model

* create subscribe and unsubcribe actions, update cloud-sdk, policies & routes

* Add newsletter email layout

* add newsletter form, update styles and page script

* Update cloud.setup.js

* lint fixes

* Update homepage.less

* unsubscribe-from-newsletter » unsubscribe-from-all-newsletters

* remove unused exit

* comment out unused attributes, update assets/.eslintrc

* update layout

* update layout after updating from main

* Update actions and routes

* lint fix
2022-09-02 17:38:34 -05:00
Charlie Chance
fe69cc7da8
Update: removed offboarded fleeties (#7427)
* Update: removed offboarded fleeties

* Update receive-from-github.js

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2022-08-29 13:56:16 -05:00
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 d5a1280759266f6bf587c9bab275d1a3e69ec16a.

* 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 6297c33892231d0ef98bed4cbb127f4263ebc48d.

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

This reverts commit c2a2567b68325ea92e19f908226de2f52d8265f9.

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

This reverts commit acc178ea76ece637f7f6eab9f44ee51c44f59a00.

* 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