Commit Graph

954 Commits

Author SHA1 Message Date
Jeff Mitchell 8e39515754 changelog++ 2018-06-04 23:19:22 -04:00
Jeff Mitchell 9ded5f57fe changelog++ 2018-06-04 19:42:19 -04:00
Chris Hoffman c4a902dfa1
changelog++ 2018-06-03 20:50:57 -04:00
Jeff Mitchell f465c18a59
Update CHANGELOG.md 2018-06-03 19:33:00 -04:00
Brian Kassouf 0d76ae874c
Update CHANGELOG.md 2018-06-01 15:33:06 -07:00
Jeff Mitchell 6eb183dee0 changelog++ 2018-06-01 09:57:30 -04:00
Jeff Mitchell c8bc434441 changelog++ 2018-06-01 09:16:49 -04:00
Jeff Mitchell ffdd6dd62b changelog++ 2018-06-01 09:14:57 -04:00
vishalnayak 07688b0de1 changelog++ 2018-05-31 10:20:33 -04:00
Matthew Irish 3fca27ae2e
changelog++ 2018-05-30 12:29:42 -05:00
Jeff Mitchell 51e6372a64 changelog++ 2018-05-29 16:06:44 -04:00
Calvin Leung Huang a986adfc3f changelog++ 2018-05-29 16:00:48 -04:00
Jeff Mitchell eec68e0de2 changelog++ 2018-05-29 15:01:39 -04:00
Matthew Irish 64c0458d7e
changelog++ 2018-05-29 12:49:35 -05:00
Matthew Irish a3584bc52b
changelog++ 2018-05-28 21:55:22 -05:00
Jeff Mitchell a8cabe5733 changelog++ 2018-05-28 12:09:07 -04:00
madalynrose 0d90e50122
Update CHANGELOG.md 2018-05-25 16:43:16 -04:00
Chris Hoffman fa372dc1ae
changelog++ 2018-05-25 12:53:26 -04:00
Chris Hoffman d853375822
changelog++ 2018-05-25 12:52:49 -04:00
Jeff Mitchell 52cb8234a6 Changelogify and fix some minor website bits 2018-05-25 10:39:23 -04:00
Brian Kassouf c7142ce061
changelog++ 2018-05-24 10:03:48 -07:00
Jeff Mitchell ddf90c4f38 changelog++ 2018-05-23 09:57:27 -04:00
Matthew Irish e54650e6dc
Update CHANGELOG.md 2018-05-22 16:52:28 -05:00
Chris Hoffman 59a91dc472
changelog++ 2018-05-22 16:52:18 -04:00
Jeff Mitchell bc50ec113a changelog++ 2018-05-22 10:39:24 -04:00
madalynrose 7ec2cb5f37
Update CHANGELOG.md 2018-05-21 14:54:05 -04:00
Jeff Mitchell d0402f5084 changelog++ 2018-05-21 09:21:24 -04:00
Jeff Mitchell cec2123a98 changelog++ 2018-05-19 13:25:27 -04:00
Jeff Mitchell c03d80e81d changelog++ 2018-05-18 16:35:01 -04:00
Jeff Mitchell 18c96d66f9 changelog++ 2018-05-16 13:31:56 -04:00
Jeff Mitchell a0c5ac1211 changelog++ 2018-05-16 12:14:22 -04:00
Jeff Mitchell f7e37de648 Re-add capability to unwrap pre-0.6.2 wrapping tokens 2018-05-15 20:01:58 -04:00
Jeff Mitchell 6b2593ff54 changelog++ 2018-05-11 11:58:52 -04:00
Tyler Marshall 407550bd89 Fix minor spelling mistake (#4548) 2018-05-10 13:42:01 -07:00
Jeff Mitchell ae3fed38fe changelog++ 2018-05-10 15:40:45 -04:00
Jeff Mitchell af802275bd
Fix response wrapping from K/V version 2 (#4511)
This takes place in two parts, since working on this exposed an issue
with response wrapping when there is a raw body set. The changes are (in
diff order):

* A CurrentWrappingLookupFunc has been added to return the current
value. This is necessary for the lookahead call since we don't want the
lookahead call to be wrapped.

* Support for unwrapping < 0.6.2 tokens via the API/CLI has been
removed, because we now have backends returning 404s with data and can't
rely on the 404 trick. These can still be read manually via
cubbyhole/response.

* KV preflight version request now ensures that its calls is not
wrapped, and restores any given function after.

* When responding with a raw body, instead of always base64-decoding a
string value and erroring on failure, on failure we assume that it
simply wasn't a base64-encoded value and use it as is.

* A test that fails on master and works now that ensures that raw body
responses that are wrapped and then unwrapped return the expected
values.

* A flag for response data that indicates to the wrapping handling that
the data contained therein is already JSON decoded (more later).

* RespondWithStatusCode now defaults to a string so that the value is
HMAC'd during audit. The function always JSON encodes the body, so
before now it was always returning []byte which would skip HMACing. We
don't know what's in the data, so this is a "better safe than sorry"
issue. If different behavior is needed, backends can always manually
populate the data instead of relying on the helper function.

* We now check unwrapped data after unwrapping to see if there were raw
flags. If so, we try to detect whether the value can be unbase64'd. The
reason is that if it can it was probably originally a []byte and
shouldn't be audit HMAC'd; if not, it was probably originally a string
and should be. In either case, we then set the value as the raw body and
hit the flag indicating that it's already been JSON decoded so not to
try again before auditing. Doing it this way ensures the right typing.

* There is now a check to see if the data coming from unwrapping is
already JSON decoded and if so the decoding is skipped before setting
the audit response.
2018-05-10 15:40:03 -04:00
Jeff Mitchell eecdbb0ee8 changelog++ 2018-05-09 10:55:44 -04:00
Jeff Mitchell 2cc4f20f18 Revert "changelog++"
This reverts commit cd603e299cbe7377ed27cf702ba23dc8cdcc4a33.
2018-05-07 16:11:18 -04:00
Jeff Mitchell 767d241fda changelog++ 2018-05-07 14:02:47 -04:00
Chris Hoffman d4265b59ab
changelog++ 2018-05-07 13:54:29 -04:00
Chris Hoffman caa48d3e60
changelog++ 2018-05-07 13:27:54 -04:00
Jeff Mitchell b894050c21 changelog++ 2018-05-04 13:26:39 -04:00
vishalnayak 9fcda0c1f0 changelog++ 2018-05-04 10:17:18 -04:00
Jeff Mitchell ef8f23a0b2 changelog++ 2018-05-04 10:09:43 -04:00
Jeff Mitchell 3d56e0eb5f changelog++ 2018-05-01 11:24:02 -04:00
Jeff Mitchell cdece25b98 changelog++ 2018-04-26 16:26:44 -04:00
Jeff Mitchell b20a5d05bd changelog++ 2018-04-25 15:49:02 -04:00
Jeff Mitchell 8d90f441ba changelog++ 2018-04-25 12:09:49 -04:00
Jeff Mitchell 21357cba1b changelog++ 2018-04-25 03:14:20 -04:00
Jeff Mitchell c8b7594811 Fix date in CL 2018-04-25 02:45:11 -04:00