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

feat(cli): enable include-imports in infisical agent #1847

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Cristobal-M
Copy link

Description 📣

Same logic as infisical run and infisical export for imported secrets

Type ✨

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Tests 🛠️

  1. Create two folders folder-a and folder-b in dev environment
  2. Create new secrets in folder-a
  3. Create import in folder-b with folder-a as target, and create some secrets
  4. This command should ouput folder-a and folder-b secrets
  5. Prepare source template for infisical agent with filename source-template:
{{- with secret "<project id>" "dev" "/folder-b" }}
{{- range . }}
{{ .Key }}={{ .Value }}
{{- end }}
{{- end }}
  1. Prepare config file infisical-agent.yaml:
infisical:
  address: "<url>"
auth:
  type: "universal-auth"
  config:
    client-id: "./client-id"
    client-secret: "./client-secret"
    remove_client_secret_on_read: false
sinks:
  - type: "file"
    config:
      path: "./access-token"
templates:
  - source-path: "./source-template"
    destination-path: "/target-env"
    config:
      polling-interval: 60s
      execute:
        timeout: 30
        command: ./reload.sh
  1. Run and check that folder-b and folder-a secrets are present in target-env file

@artyom-p
Copy link

Hey, when this will be merged? Faced the same issue, linked secrets are not synced by the agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants