Skip to content
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

Version update and JWT support #15

Open
wants to merge 419 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
419 commits
Select commit Hold shift + click to select a range
9c3128b
Bust CI cache.
GUI Jun 14, 2018
07c7615
Fix rpath tests with new build process.
GUI Jun 14, 2018
7e6988b
Try to improve some intermittent test failures in CI environment.
GUI Jun 14, 2018
d58e0a1
Merge remote-tracking branch 'origin/master' into build-caching
GUI Jun 15, 2018
821d714
Fix build install location for web assets.
GUI Jun 15, 2018
5c1b4de
Trying to tweak CI caching variable setup.
GUI Jun 15, 2018
6a20246
Persist a few things differently to deal with build caching.
GUI Jun 15, 2018
7b2e589
Shift build script into tasks directory for better standardization.
GUI Jun 15, 2018
6d6ce81
Fix build/test caching for mongo-orchestration.
GUI Jun 15, 2018
1181024
Update packaging process for new builds setup.
GUI Jun 15, 2018
c021b7b
Fix mongo-orchestration caching for CI builds.
GUI Jun 15, 2018
ba7d362
Add task for running "outdated" script.
GUI Jun 15, 2018
8bb301c
Merge pull request #414 from NREL/build-caching
GUI Jun 15, 2018
f6cb745
Fix docker dev build.
GUI Jun 15, 2018
0c2230e
Fix "outdated" task not picking up web-app gems.
GUI Jun 15, 2018
8a3e531
Update dependencies.
GUI Jun 15, 2018
cb91e0f
Another docker dev-env fix.
GUI Jun 16, 2018
ed321d8
Tweak some tests to improve DNS timing and provide more debugging.
GUI Jun 16, 2018
06c3091
Fix rare test failures due to time float rounding issues.
GUI Jun 16, 2018
a808feb
Fix edge-case errors that could happen during mongodb replica changes.
GUI Jun 16, 2018
6080f4a
Better shell escaping for test suite's `run_shell`.
GUI Jun 16, 2018
27e73cd
Fix intermittent test failures related to trafficserver restarts.
GUI Jun 16, 2018
5e7101f
Fix intermittent rsylog memory test failures.
GUI Jun 17, 2018
195e07e
Fix trafficserver restart test issues (again).
GUI Jun 17, 2018
606f190
Remove snyk badge.
GUI Jun 17, 2018
f950f2a
Make elasticsearch aws proxy's nginx workers and log configurable.
GUI Jun 17, 2018
6b333be
Attempt to fix docker development builds for caching.
GUI Jun 17, 2018
55a5695
Copy over some test suite improvements from lapis-postgres branch.
GUI Jun 17, 2018
04b3d8d
Remove unused file.
GUI Jun 17, 2018
a1bf003
Don't run tests as root (again).
GUI Jun 17, 2018
5058656
Add user to run tests as on CI environment.
GUI Jun 17, 2018
d463d26
Fix permissions for mongo-orchestration when running tests as other user
GUI Jun 18, 2018
af1939d
Fix permissions in elasticsearch tests when running as non-root.
GUI Jun 18, 2018
833e3de
Improve keepalive handling.
GUI Jun 19, 2018
113cf5b
Adjust trafficserver keepalive, retry, and logging settings.
GUI Jun 19, 2018
cd23423
Merge remote-tracking branch 'origin/keepalive'
GUI Jun 19, 2018
feda69c
Add ability to log output to stdout/stderr instead of files.
GUI Sep 22, 2017
ca10b86
Restore some of the trafficserver config related to connection retries.
GUI Jun 20, 2018
af77f89
Adding dockerfile for building beta packages.
GUI Jun 20, 2018
fb162bd
Fix missing directory in docker builds.
GUI Jun 20, 2018
3cbd94f
Fix beta builds.
GUI Jun 20, 2018
88477cc
Bump sprockets.
GUI Jun 20, 2018
2f6c5b5
Adding experimental, optional auto-ssl integration.
GUI Jun 21, 2018
9d106c0
Add delete function for mongo adapter (for auto-ssl adapter).
GUI Jun 21, 2018
d0c574b
Import auto-ssl mongodb adapter into repo.
GUI Jun 21, 2018
d9280ba
Better output when logging combined output to stdout.
GUI Jun 21, 2018
a2507e3
Different implementation of stdout log prefixing.
GUI Jun 21, 2018
0ed1e5f
Flush stdout output after each line.
GUI Jun 21, 2018
29fd24b
Disable IPv6 DNS resolution by default.
GUI Jun 21, 2018
3bf0b4e
Strip trailing space (newlines) when reading auto-ssl secret file.
GUI Jun 22, 2018
0c35a0d
Fix syntax.
GUI Jun 22, 2018
5ce80b9
Fix wrong class name in test file.
GUI Jun 22, 2018
22c3a44
Better build caching.
GUI Jun 23, 2018
af3f912
Fix CI syntax.
GUI Jun 23, 2018
1caf35f
Enable parallel builds.
GUI Jun 23, 2018
cd9f1dd
Fix IPv6 DNS resolution settings.
GUI Jun 24, 2018
1eb988e
Add more timing details to trafficserver log.
GUI Jun 24, 2018
2bf73dc
Update dependencies.
GUI Jun 24, 2018
ea10a8d
Attempt to fix parallel builds in CI environment.
GUI Jun 24, 2018
579cc8d
Skip IPv6 tests on CI environment where there is no IPv6.
GUI Jun 24, 2018
031620a
Preload all lua modules in init phase. Get rid of init globals.
GUI Jun 25, 2018
f521f95
Fix lint:resty task in CI environment.
GUI Jun 25, 2018
ba061ef
Fix elasticsearch log file locations so they're not nested.
GUI Jun 27, 2018
3610fb9
Combine elasticsearch logs into single stdout stream.
GUI Jun 28, 2018
3a058e1
Fix console output so all services and access logs get output to stdout
GUI Jun 29, 2018
245be67
Update dependencies.
GUI Jun 29, 2018
d901910
Add request IDs to web-app backend logs.
GUI Jun 30, 2018
2b0c8ac
Hook up nginx settings for defining error log level. Default to warn.
GUI Jun 30, 2018
04e8c9c
Fix nginx duplicate server name warnings in certain cases.
GUI Jun 30, 2018
08b59e7
Add request IDs to static site access logs to prevent nginx warnings.
GUI Jun 30, 2018
ded0792
Fix backend server load balancing since Trafficserver switches.
GUI Jun 30, 2018
09b3f74
Remove nginx reloader, since memory leak seems fixed.
GUI Jul 4, 2018
8907cb1
Remove and cleanup some variables and comments.
GUI Jul 4, 2018
cba5290
Use xpcall instead of pcall for better error debugging.
GUI Sep 4, 2017
5727fd9
Pull in some small improvements from the lapis-postgres branch.
GUI Jul 4, 2018
8d5e982
Eliminate extraneous custom lua package path.
GUI Jul 5, 2018
e09d37d
Fix web-app so it receives proper Host header. Cleanup host handling.
GUI Jul 6, 2018
31391f2
Cleanup connection timeouts to allow for Trafficserver retries.
GUI Jul 6, 2018
ad34e5c
More keepalive tuning.
GUI Jul 16, 2018
b72c474
Add a quick health check endpoint just to ensure API is routing.
GUI Jul 17, 2018
2dcbdb7
Bump version.
GUI Jul 17, 2018
53ae2f0
Update dependencies.
GUI Jul 22, 2018
fa383c8
Fix new lint issues after upgraded Rubocop.
GUI Jul 22, 2018
7d2199d
Remove unnecessary config flags for luarocks 3.0
GUI Jul 22, 2018
2a9f3be
Revert luarocks upgrade for now.
GUI Jul 27, 2018
c2aa7b9
Update dependencies.
GUI Aug 10, 2018
5c29cf9
Fix https transition tests not actually running in test suite.
GUI Aug 10, 2018
05f2d88
Return HTTPS requirement message earlier to encourage better practices
GUI Aug 10, 2018
62b5da6
Update tests due to geoip data change.
GUI Aug 10, 2018
00b6d7b
Add tests to verify X-Cache behavior for permanent redirects.
GUI Aug 10, 2018
cb5e2c1
Improve safety and error handling of setting shared dict data.
GUI Aug 11, 2018
8be3da1
Add ability to perform HTTPS redirects on API URLs based on regex.
GUI Aug 11, 2018
9467bec
Fix current working directory during builds.
GUI Aug 13, 2018
7fe0f42
Fix shell linting issue.
GUI Aug 13, 2018
47a7260
Some experiments in upgrading ember.
GUI Aug 30, 2018
3131abc
Update dependencies.
GUI Aug 31, 2018
57c88a4
Update factories to remove deprecated syntax in FactoryBot 4.11
GUI Sep 1, 2018
e8b6c9f
Increase size of allowed HTTP response header lengths.
GUI Sep 1, 2018
ab4b340
Update trafficserver mirror download URL to active one.
GUI Sep 1, 2018
56ea86a
Also adjust proxy buffer size on ssl proxy layer.
GUI Sep 1, 2018
15f14f3
Allow e-mail regex to be configurable.
GUI Sep 14, 2018
e7664cb
Fix XSS test due to changes in e-mail regex.
GUI Sep 14, 2018
e84760b
Fix XSS test (again..)
GUI Sep 14, 2018
cbc0927
fix: Gemfile.lock & Gemfile to reduce vulnerabilities
snyk-bot Oct 10, 2018
2136e4b
Merge pull request #426 from NREL/snyk-fix-tu5ilq
GUI Oct 23, 2018
69cfffa
Update dependencies.
GUI Oct 25, 2018
ea4685f
Attempt to fix destdir issues with upgraded luarocks.
GUI Oct 25, 2018
d0571f7
Update dependencies.
GUI Oct 30, 2018
6a074bb
Attempt to fix CI builds due to cached older version of LuaRocks.
GUI Oct 31, 2018
0d50540
Increase test's override_config_set timeout.
GUI Nov 1, 2018
89f7ec2
Sanitize URLs in API key signup e-mails.
GUI Nov 1, 2018
bbc4f85
Fix installation for upgraded luarocks.
GUI Nov 1, 2018
9722c98
Merge remote-tracking branch 'origin/master' into ember-upgrade
GUI Nov 3, 2018
894c66f
More in progress Ember ugprades.
GUI Nov 3, 2018
00abba9
Add numeral.js format-number helper.
GUI Nov 3, 2018
6c20226
Update to Echarts 4.
GUI Nov 3, 2018
b95853e
Fix new javascript and handlebars linting issues.
GUI Nov 3, 2018
cf95a1d
Fix pre indentation for rate limit tooltip.
GUI Nov 3, 2018
afa4d3f
Some messy, in-progress bootstrap 4 and fontawesome 5 upgrades.
GUI Nov 4, 2018
6a145df
More UI upgrades (still in progress and messy).
GUI Nov 4, 2018
bcb5a94
More bootstrap upgrades and fixes.
GUI Nov 5, 2018
1521021
Run tests with headless chrome and Selenium, rather than phantomjs.
GUI Nov 5, 2018
9fbe966
Fix pnotify. More test suite fixes for selenium.
GUI Nov 5, 2018
f200ae0
Attempt to tweak CI to run for non-root user in CircleCI's images.
GUI Nov 6, 2018
d03ad06
Another attempt at fixing CI.
GUI Nov 6, 2018
1b6567f
Clear CI cache due to different user and image.
GUI Nov 6, 2018
7f8e426
Remove CI config that's non-functional.
GUI Nov 6, 2018
6689e93
fix: Gemfile.lock & Gemfile to reduce vulnerabilities
snyk-bot Nov 7, 2018
16676bf
Attempt to fix compiling with circleci image.
GUI Nov 11, 2018
db6eab6
Another attempt at fixing build CI issues with new image.
GUI Nov 12, 2018
99ff808
Getting more tests working due to upgrades.
GUI Nov 12, 2018
db89aa4
Fix some integration test issues. Swap ace editor with codemirror.
GUI Nov 12, 2018
79ed455
Disable bootstrap modal fades to fix integration tests.
GUI Nov 12, 2018
9fe5092
More test suite fixes.
GUI Nov 12, 2018
f68ad25
Fix asset path in test.
GUI Nov 13, 2018
24f10f2
Fix and abstract selectize testing.
GUI Nov 13, 2018
64228ad
Better organize capybara tests helpers.
GUI Nov 13, 2018
fcda188
Fix custom checkbox testing issues.
GUI Nov 13, 2018
27c67bc
Fix selenium tests setting fields to empty string.
GUI Nov 13, 2018
1c89d09
Update admin-ui dependencies.
GUI Nov 13, 2018
a0ef486
Fix datepicker dropdown errors.
GUI Nov 13, 2018
42d4d47
Update date range picker tests for new version.
GUI Nov 13, 2018
3930e20
Update static site to fix missing font asset issue.
GUI Nov 14, 2018
460ca8d
Fix test to prevent error from being thrown in selenium tests.
GUI Nov 14, 2018
89cfe07
Finish moving all vendor dependencies to module imports.
GUI Nov 14, 2018
aba8c17
Fix missing buttons dependency.
GUI Nov 14, 2018
706348b
Fix bootbox alert modals.
GUI Nov 14, 2018
ffba951
Fix noscript test when admins are created beforehand.
GUI Nov 14, 2018
8bb172b
change mailing list reference
gbinal Nov 14, 2018
3128424
Merge pull request #428 from gbinal/patch-4
GUI Nov 14, 2018
a8e3436
Fix capybara download tests since switching to Selenium.
GUI Nov 14, 2018
7a6521f
Fix save button behavior after upgrades.
GUI Nov 15, 2018
74e5b74
Fix repeated edits in development mode.
GUI Nov 15, 2018
fa5a655
Fix publish button test due to new markup.
GUI Nov 15, 2018
dceeb34
Merge pull request #427 from NREL/snyk-fix-97d721
GUI Nov 16, 2018
ae61a29
Update UI dependencies.
GUI Nov 16, 2018
9b30758
Remove tmpfs partition for ember from docker dev.
GUI Nov 16, 2018
cbbec17
Only bundle necessary fontawesome icons that are used.
GUI Nov 16, 2018
20e0536
Merge remote-tracking branch 'origin/master' into bootstrap4
GUI Nov 16, 2018
16ece56
Some styling cleanup after upgrades.
GUI Nov 16, 2018
0bfe84a
Merge pull request #429 from NREL/bootstrap4
GUI Nov 16, 2018
921747d
Update dependencies.
GUI Nov 16, 2018
1409949
Fix admins without "admin_manage" privilege accessing thier own profile.
GUI Nov 16, 2018
9dced84
Bump pre-release version.
GUI Nov 16, 2018
a7a4e37
Update dependencies.
GUI Nov 30, 2018
77e7e8d
Remove vagrantfile and update docs to reflect Docker-based dev setup.
GUI Dec 3, 2018
6a9180f
Fix typo preventing trafficserver post timeout from being set.
GUI Dec 3, 2018
2631933
Fix duplicate "mscms" attribute in trafficserver log.
GUI Dec 3, 2018
8b6f043
Downgrade trafficserver back to 7.1.4.
GUI Dec 3, 2018
694dad1
Update dependencies.
GUI Dec 3, 2018
642c954
Attempt to fix intermittent integration test failure.
GUI Dec 3, 2018
def17f7
Include yarnrc file for production yarn installs.
GUI Dec 3, 2018
3111ef3
Update dependencies.
GUI Jan 4, 2019
9ce3a4f
Fix rate limit radio buttons not working for new rows.
GUI Jan 4, 2019
617c854
Fix missing column headers in CSV download.
GUI Jan 4, 2019
04ca6f6
Add missing dependency for task updates.
GUI Jan 5, 2019
daf1ad1
Update task to fix some bugs making debugging Taskfiles difficult.
GUI Jan 5, 2019
4c368d6
Other piece of updating Task.
GUI Jan 5, 2019
a06ad1d
Ensure directories exist for rsync tasks.
GUI Jan 5, 2019
7e19d42
Fix yarn symlink issue on first run.
GUI Jan 5, 2019
e22bf2f
Attempt to fix some race conditions around task ordering.
GUI Jan 5, 2019
fab5261
Don't try to uninstall default bundler version.
GUI Jan 5, 2019
87ecc8d
Downgrade Trafficserver to 7.1.4 (again).
GUI Jan 5, 2019
e9cf250
Update dependencies.
GUI Jan 7, 2019
b4d6db5
Update dependencies.
GUI Jan 14, 2019
e374b8c
Update admin-ui to Ember 3.7
GUI Jan 14, 2019
41fafb1
Add missing execjs runtime dependency for upgraded bootstrap.
GUI Jan 14, 2019
51c22f6
A different approach to fixing execjs runtime issues on production.
GUI Jan 15, 2019
461a2fe
Make config pending change permission tests more explicit.
GUI Jan 24, 2019
282567d
Fix contact URL sanitization to allow mailto links again.
GUI Jan 26, 2019
8109471
Don't fully reset test session on admin logins.
GUI Jan 30, 2019
0a7a9c8
Fix trafficserver download URL for archived version.
GUI Jan 29, 2019
8d4d2c5
Update dependencies.
GUI Feb 1, 2019
2c601e4
Fix updated checksum.
GUI Feb 1, 2019
17728b1
Fix Capybara deprecation in new versions with integer selectors.
GUI Feb 1, 2019
62d4ce2
Some additional drilldown API test coverage.
GUI Feb 5, 2019
1f2ce6d
Update dependencies.
GUI Feb 14, 2019
8f17dae
Update to use GeoIP2 database.
GUI Feb 14, 2019
b65f96b
Update test dependencies.
GUI Feb 14, 2019
e96f495
Update goeip auto updated to fetch GeoIP2.
GUI Feb 14, 2019
07fe82e
Fix lua-resty-http upgrade issues due to renamed owner.
GUI Feb 14, 2019
911a2e0
Run tests under ubuntu 18.04.
GUI Feb 14, 2019
8a173d3
Update dependencies.
GUI Feb 17, 2019
ae8ef41
Update dependencies.
GUI Feb 18, 2019
cb44de0
Bump prerelease version.
GUI Feb 21, 2019
3442b2f
Restore geoip v1 handling for unknown country locations.
GUI Feb 24, 2019
dddb621
Add test for deprecated api key validation endpoint.
GUI Feb 25, 2019
e3569c7
Fix API key signup before any APIs have been published.
GUI Feb 26, 2019
67f890e
Add test coverage for how signup API works without wrapped params.
GUI Feb 26, 2019
2e07249
Adding more tests to JSON wrapping behavior.
GUI Feb 26, 2019
5736924
Add additional tests for datatables counting with embedded records.
GUI Mar 1, 2019
ad0187d
Add tests for default ordering of admin groups and scopes endpoints.
GUI Mar 1, 2019
b5a8ecc
Output trafficserver error log to console too.
GUI Mar 7, 2019
46b87aa
Bump rsyslog version to fix imfile issues.
GUI Mar 7, 2019
4616882
Update dependencies.
GUI Mar 7, 2019
3ca0d55
Update dependencies.
GUI Mar 7, 2019
99b38c7
Experimenting with jenkins CI runs too.
GUI Mar 7, 2019
da3e3dc
Adjust jenkinsfile.
GUI Mar 7, 2019
e32b1f4
Provide default http port environment variables.
GUI Mar 7, 2019
728ae33
Fix invalid config variable names.
GUI Mar 8, 2019
c56fa74
Match pcre build options from openresty-packaging.
GUI Mar 8, 2019
bf21ac3
Slightly stricter rubocop formatting rules.
GUI Mar 9, 2019
966f6cd
Update dependencies.
GUI Mar 9, 2019
ab63ca9
Update development environment to Ubuntu 18.04 base image.
GUI Mar 9, 2019
6650816
Fix syntax issue due to linting changes.
GUI Mar 9, 2019
4ea6a06
Update to Trafficserver 8
GUI Mar 9, 2019
e38d6c9
Remove vestiges of old vagrant setup.
GUI Mar 9, 2019
5b207f8
Trafficserver 8 upgrade testing fixes.
GUI Mar 9, 2019
56a2367
Fix DNS stale test behavior for Trafficserver 8.
GUI Mar 10, 2019
e274d86
Fix some edge-cases in rapid reloads causing config to go missing.
GUI Mar 10, 2019
f358d68
Add empty trafficserver config files to prevent notices in logs.
GUI Mar 10, 2019
0d97cfa
Ensure consistent trafficserver config file permissions.
GUI Mar 10, 2019
5eb7c64
fix: src/api-umbrella/web-app/Gemfile & src/api-umbrella/web-app/Gemf…
snyk-bot Mar 14, 2019
6a56acd
Merge pull request #448 from NREL/snyk-fix-2js3r8
GUI Mar 15, 2019
5b82e84
Update dependencies.
GUI Mar 22, 2019
8d7b546
Attempt to fix capybara browser tests in CI environment.
GUI Mar 22, 2019
438066b
Fix linting.
GUI Mar 22, 2019
bb32f00
Attempt to fix CI builds.
GUI Mar 25, 2019
68d9742
Update dependencies.
GUI Apr 5, 2019
d16edfa
Merge NREL master branch
fdelavega Apr 9, 2019
8b299ff
Add a dockerfile for building a production API Umbrella
fdelavega Apr 10, 2019
fc85017
Update logs controller
fdelavega Apr 11, 2019
daf9f5c
Merge branch 'fix/csv-download' into feature/jwt-support
fdelavega Apr 11, 2019
f3beb54
Add Keycloak IDM as a valid external IDP provider
fdelavega Apr 11, 2019
fcc0b1f
Avoid first request to crash when a new user is created
fdelavega Apr 11, 2019
e51ef13
Add support for Keycloak JWT and realm roles
fdelavega Apr 11, 2019
85247d6
Update taskfiles and docker for development
fdelavega May 8, 2019
b0c2e8a
Update API Key error code in tests
fdelavega May 28, 2019
d7d2ac6
Fix issue with new lua date file name
fdelavega Oct 3, 2019
cef51d5
Fix geolite2-city database download URL
aarranz Jan 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .ackrc

This file was deleted.

45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2
jobs:
build:
parallelism: 3
working_directory: /app
docker:
- image: circleci/buildpack-deps:18.04-browsers
user: root
steps:
- checkout
# Install any system package dependencies.
- run: env INSTALL_TEST_DEPENDENCIES=true ./tasks/install-system-build-dependencies
- restore_cache:
# CircleCI's prefix based matching will mean the cache from the last
# cache for this branch will be restored.
key: cache-build-deps-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ arch }}-
# The bootstrap's "task" file will be cached on subsequent runs, but due
# to the reliance on timestamps, this fact might not get picked up in the
# CI environment. So if a stamp file exists for the initial bootstrap
# process, re-touch it to prevent re-downloads.
- run: touch -c build/work/stamp/bootstrap-*
# Build all the API Umbrella software dependencies.
- run: ./configure
- run: make all test-deps
- run: make clean:dev
# Cache the staged build data and task checksums of what's been
# completed.
- save_cache:
key: cache-build-deps-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ arch }}-{{ epoch }}
paths:
- .task
- build/work/dev-env
- build/work/stage
- build/work/stamp
- build/work/task
- build/work/tasks
- build/work/test-env
- run: groupadd -r api-umbrella && useradd -r -g api-umbrella -s /sbin/nologin -d /opt/api-umbrella -c "API Umbrella user" api-umbrella
- run: make test:circle-ci
- store_test_results:
path: test/tmp/reports
- store_artifacts:
path: test/tmp/run/api-umbrella-root/var/log
- store_artifacts:
path: test/tmp/capybara
20 changes: 4 additions & 16 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
# CMake
CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
install_manifest.txt
install_manifest_core.txt
install_manifest_hadoop-analytics.txt

.task
build/work
build/package/work
build/package/verify/.rnd

.vagrant
workspace
chef/cookbooks
chef/tmp
.bundle
.ruby-version
CMakeCache.txt
CMakeFiles
Dockerfile*
Makefile
cmake_install.cmake
docker-compose.yml
install_manifest.txt
install_manifest_core.txt
install_manifest_hadoop-analytics.txt
build/work
build/package/work
build/package/verify/.rnd
deploy/.env
deploy/log
deploy/tmp
Expand Down
13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@
# Ignore bundler config
/.bundle

# Ignore Circle CI items, so the GitHub pages publish task can work.
# Ignore Circle CI items, so the GitHub pages publish task can work.
/.ruby-version

# CMake
/CMakeCache.txt
/CMakeFiles
/Makefile
/cmake_install.cmake
/install_manifest.txt
/install_manifest_core.txt
/install_manifest_hadoop-analytics.txt
# Build task checksums
/.task

/Makefile
/build/work
/build/package/work
/build/package/verify/.rnd
Expand Down
26 changes: 21 additions & 5 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
std = "ngx_lua"

globals = {
"DEBUG",
"WORKER_GROUP_ID",
"config",
"elasticsearch_templates",
"inspect",
"user_agent_parser_data",
}

max_line_length = false

files["src/api-umbrella/auto-ssl"] = {
globals = {
"auto_ssl",
},
}

files["templates/etc/trafficserver"] = {
std = "luajit",
globals = {
"TS_LUA_CACHE_LOOKUP_HIT_FRESH",
"TS_LUA_CACHE_LOOKUP_HIT_STALE",
"TS_LUA_REMAP_DID_REMAP",
"do_global_read_request",
"do_global_read_response",
"do_global_send_request",
"do_global_send_response",
"do_remap",
"ts",
},
}
87 changes: 47 additions & 40 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
AllCops:
TargetRubyVersion: 2.3
TargetRubyVersion: 2.4
Exclude:
- bin/**/*
- scripts/**/*
- src/api-umbrella/web-app/bin/**/*
- src/api-umbrella/web-app/tmp/**/*
- src/api-umbrella/web-app/vendor/**/*
- tmp/**/*
- vendor/**/*

Rails:
Enabled: true

Bundler/OrderedGems:
Enabled: false

Layout/AlignHash:
# https://github.com/rubocop-hq/rubocop/issues/6291
EnforcedLastArgumentHashStyle: ignore_implicit

Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation

Layout/CaseIndentation:
EnforcedStyle: end

Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line

Layout/FirstParameterIndentation:
EnforcedStyle: consistent

Layout/IndentArray:
EnforcedStyle: consistent

Layout/IndentHash:
EnforcedStyle: consistent

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Layout/MultilineOperationIndentation:
EnforcedStyle: indented

Layout/SpaceAroundKeyword:
Enabled: false

Lint/AssignmentInCondition:
AllowSafeAssignment: false

Expand Down Expand Up @@ -53,22 +91,10 @@ Naming/HeredocDelimiterNaming:
Performance/RedundantMerge:
Enabled: false

Layout/AlignHash:
Enabled: false

Layout/AlignParameters:
Enabled: false

Layout/EmptyLinesAroundArguments:
Rails/FindBy:
Enabled: false

Layout/IndentArray:
EnforcedStyle: consistent

Layout/IndentHash:
EnforcedStyle: consistent

Layout/SpaceAroundKeyword:
Rails/HasAndBelongsToMany:
Enabled: false

Style/AsciiComments:
Expand All @@ -81,30 +107,24 @@ Style/ClassAndModuleChildren:
Enabled: false

Style/ClassCheck:
Enabled: false
EnforcedStyle: kind_of?

Style/CollectionMethods:
PreferredMethods:
find: 'detect'
find: detect

Style/ConditionalAssignment:
Enabled: false

Style/Documentation:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/EmptyElse:
EnforcedStyle: empty

Style/EmptyMethod:
Enabled: false

Style/Encoding:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Expand Down Expand Up @@ -133,7 +153,7 @@ Style/NumericLiterals:
Enabled: false

Style/NumericPredicate:
Enabled: false
EnforcedStyle: comparison

Style/OneLineConditional:
Enabled: false
Expand Down Expand Up @@ -163,10 +183,10 @@ Style/SignalException:
Enabled: false

Style/StringLiterals:
Enabled: false
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
Enabled: false
EnforcedStyle: double_quotes

Style/SymbolArray:
Enabled: false
Expand All @@ -187,17 +207,4 @@ Style/WhileUntilModifier:
Enabled: false

Style/WordArray:
Enabled: false

Rails/Delegate:
Enabled: false

Rails/FindBy:
Enabled: false

Rails/HasAndBelongsToMany:
Enabled: false

Rails/Output:
Exclude:
- db/migrate/**
EnforcedStyle: brackets
3 changes: 0 additions & 3 deletions Berksfile

This file was deleted.

28 changes: 0 additions & 28 deletions Berksfile.lock

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- **Fix URL handling for query strings containing "api\_key":** It was possible that API Umbrella was stripping the string "api\_key" from inside URLs before passing requests to the API backend in some unexpected cases. The `api_key` query parameter should still be stripped, but other instances of "api\_key" elsewhere in the URL (for example as a value, like `?foo=api_key`), are now retained.
- **Fix redirect rewriting when operating on custom ports:** If API Umbrella was running on custom HTTP or HTTP ports, redirects from API backends may not have been to the correct port.

## 0.14.4 (2017-07-15)

Expand Down
Loading