|
1 | 1 | # Changelog
|
2 | 2 |
|
3 |
| -All notable changes to Cedar CLI tool will be documented in this file. |
4 |
| -Changes to the Cedar language, which are likely to affect users of the CLI, are documented separately in the [primary changelog](../cedar-policy/CHANGELOG.md). |
| 3 | +The changelog for all the release branches of `cedar-policy-cli` is maintained on |
| 4 | +the `main` branch. You can view the most up-to-date changelog |
| 5 | +[here](https://github.com/cedar-policy/cedar/blob/main/cedar-policy-cli/CHANGELOG.md). |
5 | 6 |
|
6 |
| -## Unreleased |
7 |
| - |
8 |
| -## 4.4.0 |
9 |
| - |
10 |
| -### Added |
11 |
| - |
12 |
| -- Added `json-to-cedar` direction to `translate-policy` command. (#1510, resolving #461) |
13 |
| -- Added `--level` option to the `validate` command, exposing level validation |
14 |
| - through the CLI. (#1508, resolving #1501) |
15 |
| -- Improved the `check-parse` command, which now checks the parse of policies, schema, |
16 |
| - and/or entities (whatever is passed). (#1548) |
17 |
| - |
18 |
| -## 4.3.3 |
19 |
| - |
20 |
| -## 4.3.2 |
21 |
| - |
22 |
| -## 4.3.1 |
23 |
| - |
24 |
| -## 4.3.0 |
25 |
| - |
26 |
| -### Added |
27 |
| - |
28 |
| -- Add schema options `schema` and `schema-format` for the `partially-authorize` |
29 |
| - command (#1416, resolving #1332) |
30 |
| - |
31 |
| -## 4.2.2 |
32 |
| - |
33 |
| -## 4.2.1 |
34 |
| - |
35 |
| -## 4.2.0 |
36 |
| - |
37 |
| -## 4.1.0 |
38 |
| - |
39 |
| -### Fixed |
40 |
| - |
41 |
| -- The formatter will now consistently add a trailing newline, and checking if a |
42 |
| - file is formatted with `--check` will require a trailing newline. (resolving #1217) |
43 |
| - |
44 |
| -### Added |
45 |
| -- Add a command `language-version` to print the Cedar language version (#1219) |
46 |
| - |
47 |
| -## 4.0.0 |
48 |
| - |
49 |
| -### Changed |
50 |
| - |
51 |
| -- The default `--schema-format` is now `cedar` for all subcommands that take |
52 |
| - `--schema-format`. (#750) |
53 |
| -- The `--partial-validate` option has been replaced with `--validation-mode`, |
54 |
| - taking the values `strict`, `permissive` (new) and `partial`. |
55 |
| - The latter two are kept behind their respective feature flags. (#915) |
56 |
| -- CLI arguments `--policy-format` and `--schema-format` now take options |
57 |
| - `cedar` or `json`, as opposed to `human` or `json`. Similarly, `--direction` |
58 |
| - takes `cedar-to-json` or `json-to-cedar`. (#1114) |
59 |
| - |
60 |
| -## 3.4.1 |
61 |
| - |
62 |
| -- The `translate-schema` command will now fail when trying to convert a schema to the |
63 |
| - Cedar schema format where any namespaced type name collides with an |
64 |
| - unqualified type. (#1212, resolving #1063) This _does not_ change what schema |
65 |
| - in either format are accepted by the other commands. |
66 |
| - |
67 |
| -## 3.4.0 |
68 |
| - |
69 |
| -## 3.3.0 |
70 |
| - |
71 |
| -### Added |
72 |
| - |
73 |
| -- `translate-policy` command that translates a policy set in its Cedar format |
74 |
| - to the JSON format (except comments). (#987) |
75 |
| -- `visualize` command that allows entity JSON files to be visualized using the |
76 |
| - graphviz format. (#960) |
77 |
| -- All commands that read policies in JSON format now accept a policy set in |
78 |
| - addition to a single policy or a policy template. (#1057) |
79 |
| -- experimental `partially-authorize` command (#1082) |
80 |
| - |
81 |
| -## 3.2.4 |
82 |
| - |
83 |
| -## 3.2.1 |
84 |
| - |
85 |
| -## 3.2.0 |
86 |
| - |
87 |
| -### Added |
88 |
| - |
89 |
| -- A `--write` flag for the `format` subcommand. This flag writes the formatted |
90 |
| - policy to the file specified by the `--policies` flag. (#795) |
91 |
| -- A `--check` flag for the `format` subcommand. This flag checks if the policy |
92 |
| - is already formatted and exits with a non-zero status if it is not. (#798, resolving #796) |
93 |
| - |
94 |
| -## 3.1.3 |
95 |
| - |
96 |
| -- The `translate-schema` command now produces prettier output. |
97 |
| - |
98 |
| -## 3.1.2 |
99 |
| - |
100 |
| -## 3.1.1 |
101 |
| - |
102 |
| -## 3.1.0 |
103 |
| - |
104 |
| -Now uses Cedar language version 3.1.0. |
105 |
| - |
106 |
| -### Added |
107 |
| - |
108 |
| -- Added support for the human-readable schema format (`--schema-format human` |
109 |
| - when a schema is needed). The default schema format is still JSON for backward |
110 |
| - compatibility. |
111 |
| -- Added command `translate-schema` that translates a schema in the JSON format |
112 |
| - to its human-readable format and vice versa (except comments). |
113 |
| -- The `-p`/`--policies` flag can now be omitted across all subcommands where it |
114 |
| - is present. If the flag is omitted, policies will be read from `stdin`. |
115 |
| -- `--policy-format` flag to many subcommands, allowing you to pass policies in |
116 |
| - JSON format. The default remains `human` format. |
117 |
| -- The `validate` command now takes a `--template-linked` / `-k` optional argument, |
118 |
| - allowing you to validate template-linked policies. |
119 |
| -- The `check-parse` command also now takes a `--template-linked` / `-k` optional |
120 |
| - argument, allowing you to check whether a template-linked-policies file parses. |
121 |
| -- The `--template-linked` / `-k` argument is now also optional to `link` |
122 |
| - (previously required). If not provided, the linked policy will only be shown on |
123 |
| - stdout; if it is provided, the indicated file will be updated with the new link |
124 |
| - (as before). |
125 |
| -- The `evaluate` command now shows source spans on parse errors. |
126 |
| - |
127 |
| -### Fixed |
128 |
| - |
129 |
| -- The `link` command now accepts templates in the Cedar JSON (EST) syntax. |
130 |
| - |
131 |
| -## 3.0.1 |
132 |
| - |
133 |
| -## 3.0.0 |
134 |
| - |
135 |
| -Now uses Cedar language version 3.0.0. |
136 |
| - |
137 |
| -### Added |
138 |
| - |
139 |
| -- `--deny-warnings` option to `validate` command. This option turns non-fatal |
140 |
| - warnings into errors. |
141 |
| -- Requests are now validated by default if a schema is provided. This can be |
142 |
| - disabled with `--request-validation=false`. |
143 |
| -- The `-s` short form can now be used for `--schema` across all subcommands. |
144 |
| - |
145 |
| -### Changed |
146 |
| - |
147 |
| -- The `-p` flag now always refers to `--policies` (not `--principal`) across all |
148 |
| - subcommands, while `-l` refers to `--principal`. Relatedly, the `--policies` |
149 |
| - long form of the flag is also now accepted across all subcommands. |
150 |
| -- The short form of `--template-linked` was changed from `-t` to `-k`. |
151 |
| -- The `format` subcommand no longer takes a positional file argument. |
152 |
| - |
153 |
| -## 2.5.0 |
154 |
| - |
155 |
| -## 2.4.7 |
156 |
| - |
157 |
| -## 2.4.6 |
158 |
| - |
159 |
| -## 2.4.5 |
160 |
| - |
161 |
| -## 2.4.4 |
162 |
| - |
163 |
| -## 2.4.3 |
164 |
| - |
165 |
| -Now uses Cedar language version 2.1.3. |
166 |
| - |
167 |
| -## 2.4.2 |
168 |
| - |
169 |
| -Now uses Cedar language version 2.1.2. |
170 |
| - |
171 |
| -## 2.4.1 |
172 |
| - |
173 |
| -## 2.4.0 |
174 |
| - |
175 |
| -Now uses Cedar language version 2.1.1. |
176 |
| - |
177 |
| -### Changed |
178 |
| - |
179 |
| -- Input policies for `check-parse` command can be read from standard input. |
180 |
| - |
181 |
| -### Fixed |
182 |
| - |
183 |
| -- Duplicate policy ids in `@id` annotations cause the CLI to exit gracefully |
184 |
| - instead of panicking. |
185 |
| - |
186 |
| -## 2.3.3 |
187 |
| - |
188 |
| -## 2.3.2 |
189 |
| - |
190 |
| -## 2.3.1 |
191 |
| - |
192 |
| -## 2.3.0 |
193 |
| - |
194 |
| -Now uses Cedar language version 2.1.0. |
195 |
| - |
196 |
| -## 2.2.0 |
197 |
| - |
198 |
| -### Changed |
199 |
| - |
200 |
| -- Update `cedar-policy` and `cedar-policy-core` dependencies. |
201 |
| - |
202 |
| -## 2.1.0 |
203 |
| - |
204 |
| -### Changed |
205 |
| - |
206 |
| -- Update `cedar-policy` and `cedar-policy-formater` dependencies. |
207 |
| - |
208 |
| -### Fixed |
209 |
| - |
210 |
| -- Resolve warning in `Cargo.toml` due to having both `license` and `license-file` metadata entries. |
211 |
| - |
212 |
| -## 2.0.3 |
213 |
| - |
214 |
| -### Fixed |
215 |
| - |
216 |
| -- Update `Cargo.toml` metadata to correctly represent this crate as Apache-2.0 licensed. |
217 |
| - |
218 |
| -## 2.0.2 |
219 |
| - |
220 |
| -## 2.0.1 |
221 |
| - |
222 |
| -## 2.0.0 |
223 |
| - |
224 |
| -Initial release of `cedar-policy-cli`. |
225 |
| - |
226 |
| -Uses Cedar language version 2.0.0. |
0 commit comments