mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
Fix typos (#6135)
Fix typos Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
@@ -388,7 +388,7 @@ Following successful authentication at the token endpoint the returned token wil
|
||||
Two claims will always be included in the issued JWT: `iat` and `exp`. Any other claims will be populated from the `additional_claims` map.
|
||||
|
||||
{{< info >}}
|
||||
For using `services[_].credentials.oauth2.aws_kms`, a method for setting the AWS credentials has to be specifed in the `services[_].credentials.oauth2.aws_signing`.
|
||||
For using `services[_].credentials.oauth2.aws_kms`, a method for setting the AWS credentials has to be specified in the `services[_].credentials.oauth2.aws_signing`.
|
||||
The value of `services[_].credentials.oauth2.aws_signing.service` should be `kms`. Several methods of obtaining the necessary credentials are available; exactly one must be specified,
|
||||
see description for `services[_].credentials.s3_signing`.
|
||||
{{< /info >}}
|
||||
|
||||
@@ -178,7 +178,7 @@ In the ABI column, you can find the ABI version with which the export was introd
|
||||
| `opa_value_free` | <div>`void opa_value_free(value_addr)`</div><div>Free a value such as one generated by `opa_value_parse` or `opa_json_parse` reference at `value_addr`</div> | 1.3 |
|
||||
| `opa_heap_blocks_stash` | <div>`void opa_heap_blocks_stash(void)`</div><div>Stash free heap blocks in a shadow heap to enable `eval` or `opa_eval` to allocate only blocks that it can subsequently free with a call to `opa_heap_ptr_set`. The caller should subsequently call `opa_heap_ptr_get` and store the value to save before calling `opa_heap_bloks_restore`</div> | 1.3 |
|
||||
| `opa_heap_blocks_restore` | <div>`void opa_heap_blocks_restore(void)`</div><div>Restore heap blocks stored by `opa_heap_blocks_stash` to the heap. This should only be called after a `opa_heap_ptr_set` to the a heap pointer recorded by `opa_heap_ptr_get` after the previous call to `opa_heap_blocks_stash`.</div> | 1.3 |
|
||||
| `opa_heap_stash_clear` | <div>`void opa_heap_stash_clear(void)`</div><div>Drop all heap blocks saved by `opa_heap_blocks_stash`. This leaks memory in the VM unless the caller subsquently invokes `opa_heap_ptr_set` to a value taken prior to calling `opa_heap_blocks_stash`. (see below)</div> | 1.3 |
|
||||
| `opa_heap_stash_clear` | <div>`void opa_heap_stash_clear(void)`</div><div>Drop all heap blocks saved by `opa_heap_blocks_stash`. This leaks memory in the VM unless the caller subsequently invokes `opa_heap_ptr_set` to a value taken prior to calling `opa_heap_blocks_stash`. (see below)</div> | 1.3 |
|
||||
| `opa_eval` | <div>`str_addr opa_eval(_ addr, entrypoint_id int32, data value_addr, input str_addr, input_len int32, heap_ptr addr, format int32)`</div><div>One-off policy evaluation method. Its arguments are everything needed to evaluate: entrypoint, address of data in memory, address and length of input JSON string in memory, heap address to use, and the output format (`0` is JSON, `1` is "value", i.e. serialized Rego values). The first argument is reserved for future use and must be `0`. Returns the address to the serialised result value. </div> | 1.2 |
|
||||
|
||||
The addresses passed and returned by the policy modules are 32-bit integer
|
||||
|
||||
@@ -1332,7 +1332,7 @@ integrations:
|
||||
- ebpf
|
||||
labels:
|
||||
layer: application
|
||||
catagory: filtering
|
||||
category: filtering
|
||||
code:
|
||||
- https://github.com/kubeshield/bpf-opa-demo
|
||||
blogs:
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
catOrDog: CatOrDog
|
||||
complicatedArgs: ComplicatedArgs
|
||||
}
|
||||
# injected becuase upstream spec is missing some types
|
||||
# injected because upstream spec is missing some types
|
||||
extend type QueryRoot {
|
||||
field: T
|
||||
f1: Type
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
errors:
|
||||
- message: Cannot query field "r" on type "QueryRoot".
|
||||
|
||||
- name: 02 - infinit loop occured in OverlappingFieldsCanBeMerged rule
|
||||
- name: 02 - infinite loop occurred in OverlappingFieldsCanBeMerged rule
|
||||
schema: |
|
||||
type Query {
|
||||
fieldA: A
|
||||
|
||||
@@ -1317,7 +1317,7 @@ DFA::State* DFA::StateSaver::Restore() {
|
||||
// inline it to create the specialized ones.
|
||||
//
|
||||
// Note that matches are delayed by one byte, to make it easier to
|
||||
// accomodate match conditions depending on the next input byte (like $ and \b).
|
||||
// accommodate match conditions depending on the next input byte (like $ and \b).
|
||||
// When s->next[c]->IsMatch(), it means that there is a match ending just
|
||||
// *before* byte c.
|
||||
|
||||
|
||||
@@ -585,7 +585,7 @@ class RE2 {
|
||||
// to string "out".
|
||||
// Returns true on success. This method can fail because of a malformed
|
||||
// rewrite string. CheckRewriteString guarantees that the rewrite will
|
||||
// be sucessful.
|
||||
// be successful.
|
||||
bool Rewrite(std::string* out,
|
||||
const StringPiece& rewrite,
|
||||
const StringPiece* vec,
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ int opa_value_type(opa_value *node)
|
||||
// For all intents and purposes, interned strings are strings,
|
||||
// interned booleans are booleans.
|
||||
// Only opa_value_free and opa_value_shallow_copy handle them
|
||||
// separately, by refering to node->type directly.
|
||||
// separately, by referring to node->type directly.
|
||||
switch (node->type)
|
||||
{
|
||||
case OPA_STRING_INTERNED:
|
||||
|
||||
Reference in New Issue
Block a user