# AdonisJS Core v7\.7\.0 Release: Secret Type Support and Env Validation Improvements

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/68f3af52-422d-40ca-9dd9-40683f24fa2f
Source release or documentation date : 2026-11-19T06:48:17.000Z
Category : release | Developer impact : medium
Affected packages : @adonisjs/core, @adonisjs/ace, @adonisjs/env, @adonisjs/session

The AdonisJS core package version 7\.7\.0 introduces support for a new 'secret' type in the \`env:add\` command, allowing environment variables to be marked as secrets and excluded from \`\.env\.example\`\. Additionally, the \`configure\` command now logs warnings when it retains environment validations in \`start/env\.ts\`, improving clarity and preventing silent mismatches\. A bug fix ensures that using \`\-\-force\` with \`configure\` properly replaces environment validations for packages, preventing type\-check failures\.

## What this means for your code

Developers can now add secret environment variables using \`env:add\` with the \`secret\` type, enhancing security by excluding secrets from example env files\. When configuring packages, warnings about retained environment validations help avoid configuration mismatches\. Using \`\-\-force\` with \`configure\` ensures environment validations are correctly updated, preventing potential runtime or type\-check errors\.

## Suggested actions

- Use \`env:add\` with \`\-\-type=secret\` to add secret environment variables that won't appear in \`\.env\.example\`\.
- Review warnings logged by \`node ace configure &lt;package&gt;\` about retained environment validations to ensure configuration consistency\.
- Use \`node ace configure &lt;package&gt; \-\-force\` to replace environment validations when changing package configurations to avoid type\-check issues\.

## Original sources

- [Add the secret type to env:add, and keep env validations in step on configure](https://github.com/adonisjs/core/releases/tag/v7.7.0)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
