mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
requested changes
This commit is contained in:
@@ -37,7 +37,7 @@ export const DynamicSecretLeaseRevocationFailedTemplate = ({
|
||||
multiple attempts.
|
||||
</Text>
|
||||
<Text className="text-black text-[14px] leading-[24px]">
|
||||
Please review the dynamic secret lease and attempt to revoke it again.
|
||||
Please review the dynamic secret leases and attempt to revoke them again.
|
||||
</Text>
|
||||
</Section>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ It eliminates the need to modify application logic by enabling clients to decide
|
||||
|
||||
## Key Features
|
||||
|
||||
- **Token lifecycle maangement**: Automatically authenticates with Infisical and deposits renewed access tokens at specified path for applications to consume
|
||||
- **Token lifecycle management**: Automatically authenticates with Infisical and deposits renewed access tokens at specified path for applications to consume
|
||||
- **Templating**: Renders secrets and dynamic secret leases via user provided templates to desired formats for applications to consume
|
||||
|
||||
## Token Renewal
|
||||
@@ -47,12 +47,12 @@ The secret template functions is what you will use to fetch resources such as st
|
||||
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="listSecrets">
|
||||
<Accordion title="secret">
|
||||
```bash
|
||||
listSecrets "<project-id>" "environment-slug" "<secret-path>" "<optional-modifier>"
|
||||
secret "<project-id>" "environment-slug" "<secret-path>" "<optional-modifier>"
|
||||
```
|
||||
```bash example-template-usage-1
|
||||
{{- with listSecrets "6553ccb2b7da580d7f6e7260" "dev" "/" `{"recursive": false, "expandSecretReferences": true}` }}
|
||||
{{- with secret "6553ccb2b7da580d7f6e7260" "dev" "/" `{"recursive": false, "expandSecretReferences": true}` }}
|
||||
{{- range . }}
|
||||
{{ .Key }}={{ .Value }}
|
||||
{{- end }}
|
||||
@@ -72,7 +72,7 @@ The secret template functions is what you will use to fetch resources such as st
|
||||
|
||||
|
||||
|
||||
**Function name**: listSecrets
|
||||
**Function name**: `secret`
|
||||
|
||||
**Description**: This function can be used to render the full list of secrets within a given project, environment and secret path.
|
||||
|
||||
@@ -96,7 +96,7 @@ The secret template functions is what you will use to fetch resources such as st
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
**Function name**: getSecretByName
|
||||
**Function name**: `getSecretByName`
|
||||
|
||||
**Description**: This function can be used to render a single secret by it's name.
|
||||
|
||||
@@ -116,7 +116,7 @@ The secret template functions is what you will use to fetch resources such as st
|
||||
|
||||
```
|
||||
|
||||
**Function Name**: dynamic_secret
|
||||
**Function Name**: `dynamic_secret`
|
||||
|
||||
**Description**: This function can be used to render a dynamic secret lease credentials. The credentials are automatically renewed before they expire, ensuring that the rendered credentials are always up-to-date.
|
||||
|
||||
@@ -135,13 +135,13 @@ The Infisical Agent supports clientside caching of Dynamic Secret leases. If the
|
||||
|
||||
### Persistent Caching
|
||||
|
||||
The Agent currently only supports persistent caching. To utilize persistent caching, you must be within a Kubernetes environment. We recommend using the [Infisical Agent Injector](/integrations/platforms/infisical-agent-injector) to inject the agent into pods within your Kubernetes cluster on demand.
|
||||
The Agent currently only supports persistent caching. To utilize persistent caching, you must be within a Kubernetes environment. We recommend using the [Infisical Agent Injector](/integrations/platforms/kubernetes-injector) to inject the agent into pods within your Kubernetes cluster on demand.
|
||||
|
||||
### Cache eviction
|
||||
|
||||
Cache eviction is the process of removing cached data from the cache. The Agent will automatically evict cached data when the cache is full during a garbage collection cycle which is triggered every 10 minutes.
|
||||
|
||||
The cache will automatically evict cached data that has gone stale or is about to go stale. For dynamic resources (such as dynamic secret leases), there's a TTL (Time-to-Live) associated with each lease which is used to determine if the lease is stale or about to go stale.
|
||||
The cache will also automatically evict cached data that has gone stale or is about to go stale. For dynamic resources (such as dynamic secret leases), there's a TTL (Time-to-Live) associated with each lease which is used to determine if the lease is stale or about to go stale.
|
||||
If a stale dynamic secret lease is detected, it will be automatically evicted from the cache and replaced with a new up-to-date lease.
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ Configuring the cache is done through the agent configuration file. The followin
|
||||
</ParamField>
|
||||
|
||||
<Note>
|
||||
Persistent caching is only supported within kubernetes environments at the moment. Please refer to the [Infisical Agent Injector](/integrations/platforms/infisical-agent-injector) documentation for more information on how to use persistent caching within Kubernetes environments.
|
||||
Persistent caching is only supported within kubernetes environments at the moment. Please refer to the [Infisical Agent Injector](/integrations/platforms/kubernetes-injector) documentation for more information on how to use persistent caching within Kubernetes environments.
|
||||
</Note>
|
||||
|
||||
```yaml example-agent-config-file.yaml
|
||||
|
||||
@@ -189,11 +189,11 @@ The Infisical Agent Injector supports the following annotations:
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="org.infisical.com/agent-limits-ephemeral">
|
||||
The maximum ephemeral storage limit for the agent containers. Doesn't have an explicit default vaule. The default value will conform to the default ephemeral storage limit for the pod.
|
||||
The maximum ephemeral storage limit for the agent containers. Doesn't have an explicit default value. The default value will conform to the default ephemeral storage limit for the pod.
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="org.infisical.com/agent-requests-ephemeral">
|
||||
The minimum ephemeral storage request for the agent containers. Doesn't have an explicit default vaule. The default value will conform to the default ephemeral storage request for the pod.
|
||||
The minimum ephemeral storage request for the agent containers. Doesn't have an explicit default value. The default value will conform to the default ephemeral storage request for the pod.
|
||||
</Accordion>
|
||||
|
||||
</AccordionGroup>
|
||||
@@ -280,7 +280,7 @@ The entire config needs to be of string format and needs to be assigned to the `
|
||||
<Accordion title="cache.persistent.service-account-token-path">
|
||||
The path to the Kubernetes service account token to use for encrypting the persistent cache. Required when using `kubernetes` cache type. Defaults to `/var/run/secrets/kubernetes.io/serviceaccount/token`.
|
||||
|
||||
<Note>
|
||||
<Note>
|
||||
It is recommended to use the annotation `org.infisical.com/agent-cache-enabled: "true"` instead of configuring the cache on the config map. Refer to the [Supported annotations](/integrations/platforms/kubernetes-injector#supported-annotations) documentation for more information on how to configure the cache through annotations.
|
||||
</Note>
|
||||
</Accordion>
|
||||
|
||||
@@ -76,7 +76,10 @@ export const DynamicSecretListView = ({
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedDynamicSecretId) {
|
||||
if (
|
||||
selectedDynamicSecretId &&
|
||||
dynamicSecrets.find((secret) => secret.id === selectedDynamicSecretId)
|
||||
) {
|
||||
handlePopUpOpen("dynamicSecretLeases", selectedDynamicSecretId);
|
||||
}
|
||||
}, [selectedDynamicSecretId]);
|
||||
|
||||
Reference in New Issue
Block a user