Skip to content

Enable File-based VCAP_SERVICES Support #364

@AdityaSahSAP

Description

@AdityaSahSAP

Description

Due to platform limitations in BTP, the size of the VCAP_SERVICES environment variable is now strictly limited to 130 KB. This limitation cannot be overridden by applications. To handle this situation, the platform team has introduced support for file-based VCAP_SERVICES via the VCAP_SERVICES_FILE_PATH environment variable, which points to a file containing the full VCAP JSON payload.

Currently, your library only reads service bindings from the VCAP_SERVICES environment variable. This prevents applications from accessing service bindings when the environment variable exceeds the size limit and the platform provides the data via a file.

Request

Please enhance the library to support reading the VCAP_SERVICES payload from a file, using the path specified in the VCAP_SERVICES_FILE_PATH environment variable, as a fallback when VCAP_SERVICES is not set. This will ensure compatibility with the new platform behavior and allow applications to function correctly regardless of the VCAP_SERVICES size.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions