Commit Graph

527 Commits

Author SHA1 Message Date
Chris Meyers
a0f327e6c5 Merge pull request #484 from chrismeyersfsu/feature-stdout_format
add content encoding for json to stdout
2015-11-03 10:11:24 -05:00
Chris Meyers
0889f1ebe1 add content encoding for json to stdout
* content_format=ansi&content_encoding=base64 support added to
?format=json on stdout endpoint.

Currently the json `content` value is made into html.
This change will allow support for consuming STDOUT for display on the
terminal.
2015-11-03 09:38:49 -05:00
Matthew Jones
99f048dfe5 Add object_association for m2m relationships
Now when displaying a m2m relationship change we'll show the related
field mapping that changed.
2015-11-02 14:39:24 -05:00
Chris Meyers
1db26531a1 if basic auth in headers, don't use cookie token
* Allows for basic auth to be used when cookie token fails
2015-10-19 14:49:15 -04:00
Chris Meyers
ad383ebccc license enforcement
* add rebrand and auth_enterprise feature to license
* enforce auth_enterprise by not surfacing auth callback info at /auth
endpoint
2015-10-08 18:00:29 -04:00
Chris Church
84e89ab6f8 Fix auth-related errors breaking unit tests. 2015-10-02 16:16:30 -04:00
Chris Church
2ba5e06e2c Add support for single-sign on using python-social-auth (with Google/Github OAuth2 and SAML support). Add support for RADIUS as another authentication backend. 2015-10-02 14:57:27 -04:00
Chris Meyers
5e7473e101 Merge pull request #457 from chrismeyersfsu/fix-stdout_dl_token
allow token in get params at stdout endpoint
2015-10-02 08:59:07 -04:00
Chris Meyers
22f0a4b79a allow token in get params at stdout endpoint 2015-10-01 17:25:21 -04:00
Matthew Jones
34e028b8c7 Adding security token field to support ec2 sts
And any future credential that might want to use "security_token"
2015-09-30 13:39:36 -04:00
Chris Meyers
052929d209 Merge pull request #446 from chrismeyersfsu/feature-session_limit2
Feature session limit2
2015-09-30 11:11:36 -04:00
Chris Meyers
4163492e81 add auth timeout header to login response 2015-09-29 15:49:42 -04:00
Chris Meyers
b350eef3f0 session limit invalidation events via socket.io 2015-09-29 14:10:26 -04:00
Matthew Jones
53a96fd9eb Merge pull request #440 from matburt/pendo_apiside
API Side Pendo Tracking Work
2015-09-29 01:04:21 -04:00
Chris Meyers
000d26d7e3 session limit enforcement
* upon creating a new session, invalidate oldest sessions
2015-09-28 14:17:28 -04:00
Matthew Jones
a3410920a9 Remove management job schedule count restriction 2015-09-25 16:00:19 -04:00
Matthew Jones
3d7f25218a Add api side support for pendo
Also adds setup playbook support for pendo.  This change anticipates
that the default for new installations will be 'detailed'
2015-09-25 15:52:42 -04:00
Chris Meyers
eb8219fd9f add Auth-Token-Timeout to http headers 2015-09-23 10:30:19 -04:00
Matthew Jones
5727d722b6 Merge remote-tracking branch 'upstream/release_2.3' into devel
* upstream/release_2.3: (91 commits)
  Include python-{paramiko,ecdsa} dependencies
  Remove extra epel testing stanzas
  Unit test for ec2 credentialless inventory
  Fix issue with ec2 iam sync with no credential.
  Use the htpasswd command instead the ansible module
  Pip is no longer needed
  check local user root or not in ./configure
  Remove unneeded when check for super user addition
  Improve distro detection in setup.sh
  Fix superuser check on upgrade
  Minor improvements to setup.sh
  Remove ansible prerequisite check from configure
  Attempt to install ansible within setup.sh
  Allow munin processes to access postgres
  Move up base package dependency install
  fixes jenkins failures
  Proper flake8 fix
  fixes executing processes with correct PYTHONPATH will pickup .pth files
  Show the repo for bundled package file dump
  Proper flake8 fix
  ...
2015-09-03 15:46:10 -04:00
Matthew Jones
c5ce9cdc12 Fix stdout plaintext render
* Was rendering as json (though text/plain)
* Switched to rendering it as normal text with stripped ansi
* Fixes: https://trello.com/c/TMyOak0H/142-api-v1-jobs-n-stdout-format-txt-emits-json-output
2015-08-21 10:20:57 -04:00
Chris Meyers
dfff6b218a correctly inherit extra_vars
* inherit extra_vars from job_template
* overwrite with extra vars survey default vars
* overwrite with job extra_vars
* bypass extra_vars inherit logic for job relaunch
* with tests
2015-08-10 11:24:26 -04:00
Matthew Jones
dc0d732ad4 Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then
reverting it meant that some of the changes from the original branch
didn't land in this new PR.   This commit adds the missing bits.

Lesson learned:  Create a new branch when submitting a PR on a
previously reverted PR
2015-08-05 21:53:46 -04:00
Matthew Jones
c0ea174e93 Rework stdout display for file storage only
* Cleanup old code related to stdout download using temporary files
* Remove copy-into-database code
* Modify stdout download code to reference stdout file
2015-08-05 21:52:47 -04:00
Matthew Jones
c231601b76 Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then
reverting it meant that some of the changes from the original branch
didn't land in this new PR.   This commit adds the missing bits.

Lesson learned:  Create a new branch when submitting a PR on a
previously reverted PR
2015-08-04 09:57:39 -04:00
Matthew Jones
bddcb06fab Merge branch 'stdout_file_download' into upstream_master
* stdout_file_download:
  Rework stdout display for file storage only
2015-08-03 15:30:17 -04:00
Matthew Jones
1c777c5441 Rework stdout display for file storage only
* Cleanup old code related to stdout download using temporary files
* Remove copy-into-database code
* Modify stdout download code to reference stdout file
2015-08-03 15:14:51 -04:00
Matthew Jones
5df23b95f6 Revert "Improve stdout behavior by implementing a downloadable stdout." 2015-07-24 14:54:13 -04:00
Matthew Jones
3041fce503 Allow settings access from api templates 2015-07-23 12:07:34 -04:00
Matthew Jones
88128a2e87 Return useful errors when downloading stdout 2015-07-22 16:35:03 -04:00
Matthew Jones
2a6600fb42 Update unified job stdout help text 2015-07-22 15:28:25 -04:00
Matthew Jones
b1b49ba286 Efficient stdout downloader implementation
* Temporarily dump stdout contents to a configurable temp location
* Implement file streaming to the host via a new format specifier in the
  api view
2015-07-22 15:08:37 -04:00
Matthew Jones
55da712a95 Protect against very large stdout fields
* Defer loading result_stdout_text until specifically needed
* Conditionally display it based on the size of the field
* Provide a helpful message otherwise
2015-07-22 14:13:48 -04:00
Matthew Jones
0ff280a363 Initial support for downloading stdout 2015-07-22 12:36:38 -04:00
Matthew Jones
5605ec9754 Adjust usage of is_ha_environment()
Limit it to just instance count and make sure we use it for the mongo check
2015-07-08 14:18:04 -04:00
Matthew Jones
d5e948890c Stricter control of mongo in setup playbook
Detect if this is an HA setup and if so we won't attempt to start mongo
during the setup process
2015-07-08 13:45:59 -04:00
James Laska
390011bb1e Listen to flake8, it speaks the truth
Use a variable name that doesn't conflict with a library name.
2015-06-16 08:55:59 -04:00
James Laska
3522920b08 This is embarrassing 2015-06-15 20:15:57 -04:00
James Laska
3f9c2cf465 Handle ENOENT during license removal 2015-06-15 19:24:51 -04:00
James Laska
9a210107a0 Remove AWS license when processing /config DELETE
This also removes mongodb from the try/except block to avoid hiding any
failures.  This mirrors the behavior of how mongo is started/stopped elsewhere
in the module.
2015-06-15 12:08:15 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
d011a87bb0 Support cancel on system jobs 2015-06-11 15:19:27 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -04:00
Chris Meyers
f06c7e17f5 Merge pull request #273 from chrismeyersfsu/fix-job_launch_credential_permissions
restrict the set of valid, explicitly supplied credentials to be ones readable by the user
2015-06-10 08:37:25 -04:00
Chris Meyers
9f48f127db Merge branch 'master' into fix-license_2 2015-06-08 14:40:19 -04:00
Chris Meyers
3b537c953f restrict the set of valid, explicitly supplied credentials to be ones readable by the user 2015-06-08 14:07:04 -04:00
Chris Meyers
a9642403c6 flake8 2015-06-08 09:39:00 -04:00
James Laska
2483673ab0 Return 204 NO_CONTENT on /config DELETE 2015-06-07 09:01:59 -04:00
Chris Meyers
b54c87c6d2 allow config endpoint to posted to without license data 2015-06-05 17:11:04 -04:00
Matthew Jones
23eaf9ae42 Support DELETE of the license on the config endpoint 2015-06-05 15:53:35 -04:00