1 Introduction

Black holes are one of the most important predictions of Einstein’s theory, which has been experimentally confirmed recently. Although black holes are well known and analyzed as the exact solution of Einstein’s equation, they have some properties that are not yet fully understood, such as event horizon, singularity and information paradox. One of the alternative models that can eliminate these complex properties of black holes is the gravastar (gravitational vacuum star) proposed by Mazur and Mottola [1,2,3]. Gravastar is a non-singular and horizon-less ultra compact object, which has negative pressure in the interior, consisting of a dark energy condensate. Since they are ultra compact objects, it is very difficult to distinguish them from black hole observations. Although there is not sufficiently observational evidence for the existence of gravastars, it is important to investigate them as an alternative way to better understand black holes. The increasing interest on the subject of gravastar has led researchers to discuss and compare the physical properties of gravastars and black holes. It has been shown that the energy flux emitted by the accretion disk surface of gravastars is smaller than the energy flux emitted by black holes and then the gravastars may have greater redshifts from black holes [4]. Thus the theoretical results might guide to observational researches in order for distinguishing them.

The inside of the gravastar has the dark energy matter which has the equation of state \(\rho =-p\), while the outside of the star is considered as a vacuum described by Reissner–Nordström geometry. There is also an intermediate region, which consists of a thin shell containing a stiff matter satisfying the equation of state \(\rho = p\). The thin shell prevents the formation of the event horizon and the phase transition surface appears at or near the region. The surface separates the two phases of the space-time vacuum by quantum phase transition [5, 6] and then the information paradox at black holes is resolved by removing the event horizon. The dynamical stability of the gravastar configuration was discussed by Visser and Witshire [7] by assuming the infinitely small thin shell as a mathematical simplification. Then the stability was further investigated for different exterior geometries [8] and dark energy star models [9].

Moreover, even a very small electric charge relative to its mass, which may form just inside the surface of the star, prevents the nuclear matter from falling into the core and make the star more stable [10,11,12,13,14]. The charged gravastar models for Einstein–Maxwell theory were studied in [15,16,17]. Then they were obtained also in the alternative gravitation models such as Born–Infeld phantom [18] and nonlinear electrodynamics [19]. The infinitely small thin shell was replaced by a continuous pressure profile with an anisotropic fluid in [20, 21]. Meanwhile, exact interior and exterior solutions describing mixed relativistic stars which contain dark energy and ordinary matter were found in [22] for the model with phantom scalar field and they matched continuously at the surface of the star.

Despite all its achievements, Einstein’s theory of gravity has very important astrophysical and cosmological problems such as dark matter and dark energy. Thus, alternative theories such as f(R) [23,24,25,26,27] gravity, f(RT) gravity [28] etc. were proposed to solve the challenges, where R is the Ricci curvature scalar and T is the trace of the stress–energy tensor. Spherically symmetric gravastar solutions for these theories were studied in [29, 30] for f(RT) gravity and in [31] for f(GT) gravity, where G denotes Gauss–Bonnet invariant. Furthermore, the effects of the electric charge on the isotropic spherical gravastar models were investigated in [32] for higher dimensional Einstein–Maxwell theory and in [33] Maxwell-f(RT) gravity by using the Mazur–Mottola conjecture. Also, a charged gravastar model and its stability were studied in [34] by using the noncommutative geometry. Since gravastar is an ultra compact object like black hole, it has extremely dense gravitational and Maxwell fields. Thus, it is possible to consider the non-minimal \(Y(R)F^2\) couplings [35,36,37,38,39,40,41,42,43,44,45] to describe the objects. Some spherically symmetric isotropic and anisotropic compact star solutions of the theory are investigated in [46,47,48]. In this study we give two exact non-singular gravastar solutions to the non-minimal \(Y(R)F^2\) gravity by considering the dark energy equation of state, \(p=-\rho \). This model turns out to be the Einstein–Maxwell model at the exterior of the gravastar and their solutions to be the Reissner–Nordström solution.

2 A non-minimal model for the gravastars

In order to describe gravastars in the non-minimal model, we consider the following Lagrangian in differential forms [46, 47]

$$\begin{aligned} L = \frac{1}{2\kappa ^2} R*1 -Y(R) F\wedge *F + 2A\wedge J + L_{mat} + \lambda _a\wedge T^a \; \end{aligned}$$
(1)

where \(\kappa \) is a coupling constant, R is the Ricci scalar, Y(R) is a function of R and corresponds to a non-minimal coupling between electromagnetism with gravity, A is the electromagnetic potential 1-form, \(F=dA\) is the Maxwell 2-form, \(L_{mat}\) denotes the matter Lagrangian and J denotes the electromagnetic source 3-form and \(\lambda _a\) denotes the Lagrange multiplier setting torsion to zero. d denotes the exterior derivative, \(*\) is the Hodge star operator and \(\wedge \) denotes the exterior product in the exterior algebra. One can uses the Hodge map for fixing the orientation of a manifold in terms of orthonormal (Lorentzian) coframe \(e^a\) by writing down the volume form \(*1= e^{0123} \equiv e^0 \wedge e^1 \wedge e^2 \wedge e^3\).

Since the search for spherically symmetric exact solutions to the gravitational field equations in the interior region of an isotropic fluid has been a longstanding issue of theoretical physics, we assume a perfect fluid which has the pressure p and energy density \(\rho \) inside the stars, that is,

$$\begin{aligned} \frac{\partial L_{mat}}{\partial e^a} := (\rho +p )u_a*u + p*e_a \ , \qquad \frac{\partial L_{mat}}{\partial \omega ^a{}_b}:=0 \ , \end{aligned}$$
(2)

where \(\omega ^a{}_b\) denotes the connection 1-form and u the time-like velocity 1-form, \(u=u_a e^a\). Thus one can compute \(\lambda _a\) from \(\omega ^a{}_b\)-varied equation and then substitute the findings into \(e^a\)-varied equation of the action (1). In conclusion we obtain the gravitational field equation

$$\begin{aligned} - \frac{1}{2 \kappa ^2} R^{bc} \wedge *e_{abc} =\,\,&Y (F_a \wedge *F - F \wedge \iota _a *F) \nonumber \\&+ Y_R F_{mn} F^{mn}*R_a \nonumber \\&+ D [ \iota ^b\;d(Y_R F_{mn} F^{mn} )]\wedge *e_{ab} \nonumber \\&+ \ (\rho +p )u_a*u + p*e_a \end{aligned}$$
(3)

where \(R^a{}_b := d\omega ^a{}_b + \omega ^a{}_c \wedge \omega ^c{}_b\) is the Riemann curvature 2-form, \(R_b := \iota _a R^a{}_b\) denotes Ricci curvature 1-form, \(\iota _a\) denotes the interior product of the exterior algebra, D is the covariant exterior derivative and \(Y_R := {dY}/{dR}\), \(F_a := \iota _a F\), \(F_{ab} := \iota _{ab}F\). As we have shown in our previous papers [46, 47], our gravitational field equation (3) can be simplified considerably by the constraint

$$\begin{aligned} Y_R F_{mn} F^{mn} = -\frac{ k}{ \kappa ^2} \ . \end{aligned}$$
(4)

Consequently the above gravitational field equation turns into the following

$$\begin{aligned}&- \frac{1}{2 \kappa ^2} R^{bc} \wedge *e_{abc} = Y (F_a \wedge *F - F \wedge \iota _a *F) \nonumber \\&-\frac{k}{\kappa ^2}*R_a + (\rho +p )u_a*u + p*e_a \ . \end{aligned}$$
(5)

We notice that as the Eq. (3) contains higher order derivatives than two, now the new Eq. (5) consists of the second order differential equations. Here k is an arbitrary coupling constant between the electromagnetic and gravitational fields. It is worth to calculate the trace of this equation

$$\begin{aligned} \frac{1-k}{\kappa ^2} R = (\rho - 3p) \;. \end{aligned}$$
(6)

In this non-minimal model, while the case with \(k=1\) corresponds to the radiation fluid stars with \(\rho = 3p \) [46], the other case \(k\ne 1\), corresponding to \(\rho \ne 3p\), has been studied in Ref. [47] for certain equations of state between \(\rho \) and p. In this study we deal with a new model for the dark energy stars defined by the equation of state

$$\begin{aligned} p= - \rho \ . \end{aligned}$$
(7)

Accordingly, the Ricci scalar must be proportional to energy density via (6) for our model

$$\begin{aligned} R= {4\kappa ^2 \rho }/{(1-k)} \ . \end{aligned}$$
(8)

Before ending this section, in order to close the system of equations, we write down the modified Maxwell equation by varying the action (1) for the electromagnetic potential 1-form, A

$$\begin{aligned} d(*Y F) = J \; . \end{aligned}$$
(9)

3 Spherically symmetric exact solutions

We study solutions with the following spherically symmetric, static line element

$$\begin{aligned} ds^2= & {} -f^2(r)dt^2 + g^{2}(r)dr^2 + r^2d\theta ^2 +r^2\sin ^2\theta d \phi ^2\nonumber \\ \end{aligned}$$
(10)

and the Maxwell 2-form representing a spherically symmetric static electric field in the radial direction

$$\begin{aligned} F= & {} E(r) e^1\wedge e^0 . \end{aligned}$$
(11)

Under these ansatz our subtle condition (4) takes the form

$$\begin{aligned} \frac{dY}{dR} = \frac{k}{ 2\kappa ^2 E^2} \;. \end{aligned}$$
(12)

Thus the components of the gravitational field equation (3) together with the assumption of the equation state (7) read explicitly

$$\begin{aligned}&\frac{1}{\kappa ^2 g^2} \left( \frac{2g'}{gr} + \frac{g^2-1}{r^2} \right) + \frac{k}{\kappa ^2 g^2} \left( \frac{f''}{f} -\frac{f'g'}{fg} + \frac{2f'}{fr} \right) \nonumber \\&\quad = YE^2 + \rho \;, \end{aligned}$$
(13)
$$\begin{aligned}&\frac{1}{\kappa ^2 g^2} \left( - \frac{2f'}{rf} + \frac{g^2-1}{r^2} \right) +\frac{k}{\kappa ^2 g^2} \left( \frac{f''}{f} -\frac{f'g'}{fg} - \frac{2g'}{rg} \right) \nonumber \\&\quad = YE^2 + \rho \;, \end{aligned}$$
(14)
$$\begin{aligned}&\frac{1}{ \kappa ^2 g^2} \left( \frac{f''}{f} - \frac{f'g'}{fg} + \frac{f'}{rf} -\frac{g'}{rg} \right) \nonumber \\&\quad + \frac{k}{ \kappa ^2 g^2} \left( \frac{g'}{rg} - \frac{f'}{rf} + \frac{g^2 -1 }{r^2} \right) \nonumber \\&\quad = Y E^2 -\rho \;, \end{aligned}$$
(15)

where prime denotes the derivative with respect to r. Additionally we have checked that the exterior covariant derivative of the gravitational field equation (3) generates the conservation of the total energy–momentum tensor. When the Eqs. (13) and (14) are compared, it is seen

$$\begin{aligned} g(r) = {1}/{f(r)} \ . \end{aligned}$$
(16)

Then the following two equations are left at our disposal

$$\begin{aligned}&\frac{1}{\kappa ^2 } \left( - \frac{2ff'}{r} + \frac{1-f^2}{r^2} \right) + \frac{k}{\kappa ^2 } \left( ff'' + f'^2 + \frac{2ff'}{r} \right) \nonumber \\&\quad = YE^2 + \rho \;, \end{aligned}$$
(17)
$$\begin{aligned}&\frac{1}{ \kappa ^2 } \left( ff'' + f'^2 + \frac{2ff'}{r} ) + \frac{k}{ \kappa ^2}( -2\frac{ff'}{r} + \frac{1-f^2 }{r^2} \right) \nonumber \\&\quad = Y E^2 -\rho \;. \end{aligned}$$
(18)

Here it is important to notice that the constraint equation (12) is not an independent equation, because it can be derived by adding Eq. (17) and (18), then by taking differential. Also, one can show that the trace Eq.  (6) is arrived by subtracting Eq. (17) from (18).

At the end there are only three independent equations, (8), (17) and (18), in our hand to be solved, but four unknown functions \(f(r), Y(R), \rho (r)\) and E(r). In these cases literally two strategies are possible. One strategy is firstly to adopt a non-minimal coupling function such as \(Y(R)= c_1 R + c_2 R^2\) etc, then to determine the other three unknowns. In the reverse order, one firstly assumes a metric function such as \(f(r)=c_1 + c_2 r^2\) etc, and then calculates the others. In this work we follow the second approach.

3.1 Solution-1

A simple regular interior solution of these differential equations could be found by considering the metric function

$$\begin{aligned} f(r) = 1 - ar^2 \; \end{aligned}$$
(19)

where a is a real constant. Then the Ricci scalar is calculated as

$$\begin{aligned} R= 6a(4 - 5ar^2) \end{aligned}$$
(20)

Correspondingly the other three unknown functions are computed as

$$\begin{aligned} E^2(r)= & {} \frac{5(1+k)}{2\kappa ^2C_1}a^2r^{(14k+2)/{(k+1)}} \;, \end{aligned}$$
(21)
$$\begin{aligned} \rho (r)= & {} -p(r) = \frac{3a(1-k)}{2\kappa ^2} (4 - 5ar^2)\;, \end{aligned}$$
(22)
$$\begin{aligned} Y(r)= & {} C_1 r^{-{12k}/{(k+1)}} \;, \end{aligned}$$
(23)

where \(C_1 \) is an integration constant which will be determined by the boundary conditions. In order for writing down the non-minimal coupling function explicitly in terms of the Ricci scalar we compute firstly the inverse function of (20) as \(r^2= {4}/{5a} - {R}/{30a^2}\). Thus we could rewrite (23) as

$$\begin{aligned} Y(R)= C_1 \left( \frac{4}{5a} - \frac{R}{30a^2} \right) ^{-{6k}/{(1+k)}}\;. \end{aligned}$$
(24)

On the other hand, since the outside of the star is empty, it is described by the minimal Einstein–Maxwell theory and the Reissner–Nordström metric which has the property \(R=0\). Since we require that Y(R) must be continuous, the equation (24) becomes \(Y(R) = C_1 ({4}/{5a})^{-{6k}/{(k+1)}}\) for \(R=0\) on the boundary. For the minimal coupling, i.e. \(Y(R)=1\), on the boundary this result produces

$$\begin{aligned} C_1= ({4}/{5a})^{{6k}/{(k+1)}} \ . \end{aligned}$$
(25)

In summary in the interior region the non-minimal Lagrangian and the metric of the theory become, respectively,

$$\begin{aligned} L_{in}&= \frac{1}{2\kappa ^2} R*1 - \left( 1 - \frac{R}{24a} \right) ^{-{6k}/{(1+k)}} F\wedge *F \nonumber \\&\quad + 2A\wedge J + L_{mat} + \lambda _a\wedge T^a \ , \end{aligned}$$
(26)
$$\begin{aligned} ds^2 _{in}&= - \left( 1- ar^2 \right) ^2 dt^2 + \left( 1-ar^2 \right) ^{-2} dr^2 + r^2 d\Omega ^2 \ , \end{aligned}$$
(27)

together with the electric field (21) to which (25) is inserted and the pressure (22) where \(d\Omega \) is the solid angle element. In the outer region the same quantities are

$$\begin{aligned} L_{out}&= \frac{1}{2\kappa ^2} R*1 - F\wedge *F + \lambda _a\wedge T^a \;, \end{aligned}$$
(28)
$$\begin{aligned} ds^2_{out}&= -\left( 1-\frac{2M}{r} + \frac{\kappa ^2Q^2}{r^2}\right) dt^2 \nonumber \\&\quad \ \, + \left( 1-\frac{2M}{r} + \frac{\kappa ^2Q^2}{r^2}\right) ^{-1}dr^2 + r^2d\Omega ^2 \; , \end{aligned}$$
(29)

and we have the electric field \(E(r)=Q/r^2\) and the pressure \(p(r)=0\), where M and Q are the total mass and charge of the dark star, respectively. In the interior of the star, there is a specific fluid which has electromagnetic and gravitational fields with very high density. The charge of a dark star in the volume with the radius r is derived from the modified Maxwell equation (9) by taking the volume integral of the current density 3-form J

$$\begin{aligned} q(r) = \frac{1}{4\pi }\int _V J = YEr^2\;. \end{aligned}$$
(30)

Here the integral is evaluated with help of the Stokes theorem. So, we calculate the total charge of the gravastar within the volume with the radius r by combining the Eqs. (21) and (23) with the Eq. (30)

$$\begin{aligned} q^2(r) = \frac{5C_1a^2(1+k)r^{{ 6(1- k) }/{(1+k)} }}{2\kappa ^2} \;. \end{aligned}$$
(31)

We see that k must be in the range \(-1 < k \le 1\) in order for the charge to be regular at the origin. Additionally when we look at the solutions (21) and (22), we discover that the parameter k can take values in the range \(-1<k<1 \).

As a result of the continuity condition of the metric, by matching the exterior and the interior metrics at the surface, \(r=r_b\), we arrive at

$$\begin{aligned} a = \frac{ 1- \sqrt{ 1- {2M}/{r_b} + {\kappa ^2Q^2}/{r_b^2} }}{r_b^2}\;. \end{aligned}$$
(32)

In addition, by applying the condition that the pressure at the surface is zero, the Eq. (22) gives one more equation among the parameters

$$\begin{aligned} a = \frac{4}{5r_b^2} \;. \end{aligned}$$
(33)

Similarly, the continuity of the electric field on the boundary via the Eq. (30) with \(Y=1\) yields

$$\begin{aligned} Q = E(r_b)r_b^2 \end{aligned}$$
(34)

where Q denotes the total charge of the star with the radius \(r_b\). If we substitute (21) and (25) into (34), the the total charge could be re-expressed as

$$\begin{aligned} Q^2 = \frac{ 8(1+k)r_b^2}{5\kappa ^2} \;. \end{aligned}$$
(35)

We observe that the total charge increases linearly with the subtle constant k. We are able to calculate the total gravitational mass of the star by using (32), (33) and (35)

$$\begin{aligned} M= \frac{4(5k+8)}{25}r_b \ . \end{aligned}$$
(36)

We also calculate the matter (or baryonic) mass of the star defined by the integral of the energy density

$$\begin{aligned} M_{mat} = \frac{\kappa ^2}{2} \int _{0}^{r_b} \rho (r)r^2dr = \frac{8(1-k)r_b}{25} \ . \end{aligned}$$
(37)

Finally we search the gravitational redshift on the surface of the star

$$\begin{aligned} z= (1-ar_b^2)^{-1} -1 = 4 \;. \end{aligned}$$
(38)

We see that all the possible k values with different mass and charge configurations give only one redshift \(z=4\). Experimentally high redshifts are observed in dense celestial objects such as quasars. Despite the high redshifts in general may be due to huge distance, extreme velocity or metric expansion of space, a common alternative explanation was that they were caused by extreme mass (gravitational redshifting) and electric charge. Thus, the high redshift may be due to quasars formed from ultra compact dark energy condensation at the center of galaxies, or they may be observational evidence for gravastars.

3.2 Solution-2

In this section we consider the following regular metric function inside the dark star

$$\begin{aligned} f(r) = \sqrt{1 - b_1r^2 + b_2r^3} \end{aligned}$$
(39)

where \(b_1\) and \(b_2\) are arbitrary real constants. Again the equations (8), (17) and (18) are used to determine the other unknown functions

$$\begin{aligned} E^2(r)&= \frac{b_2(1+k)}{\kappa ^2C_2}r^{{(11k +1)}/{(k+1})} \;, \end{aligned}$$
(40)
$$\begin{aligned} \kappa ^2\rho (r)&= -\kappa ^2p(r) = (k-1)(5b_2r - 3b_1) \;, \end{aligned}$$
(41)
$$\begin{aligned} Y(r)&= C_2 r^{-{10k}/{(k+1)}} \end{aligned}$$
(42)

where \(C_2 \) is an integration constant that will be determined by the boundary conditions. Now after calculating the Ricci scalar

$$\begin{aligned} R= 12b_1 - 20b_2r \end{aligned}$$
(43)

we compute the radial coordinate r in terms of R as \(r={3b_1}/{5b_2} - {R}/{20b_2}\) and then the non-minimal coupling function (42)

$$\begin{aligned} Y(R)= C_2 \left( \frac{3b_1}{5b_2} - \frac{R}{20b_2}\right) ^{-{10k}/{(1+k)}}\;. \end{aligned}$$
(44)

Remembering that the exterior region of the star was described by the minimal Einstein–Maxwell theory which has the Reissner–Nordström solution with the property \(R=0\), we apply the boundary condition for the non-minimal coupling function as \(Y(R)=1\) for \(R=0\). It determines the integration constant

$$\begin{aligned} C_2= \left( {3b_1}/{5b_2} \right) ^{{10k}/{(k+1)}} \end{aligned}$$
(45)

In conclusion, the Lagrangian and the metric take the forms, respectively, in the interior of the star

$$\begin{aligned} L_{in} =&\frac{1}{2\kappa ^2} R*1 - \left( 1 - \frac{R}{12b_1} \right) ^{-{10 k}/{(1+k)}} F\wedge *F \nonumber \\&+ 2A\wedge J + L_{mat} + \lambda _a\wedge T^a \ , \end{aligned}$$
(46)
$$\begin{aligned} ds^2 _{in} =&-\left( 1- b_1r^2 + b_2r^3 \right) dt^2 \nonumber \\&+ \left( 1-b_1r^2 +b_2r^3 \right) ^{-1} dr^2 + r^2 d\Omega ^2 \ , \end{aligned}$$
(47)

and we have the electric field (40) and the pressure (41). In the outer space, they are

$$\begin{aligned} L_{out} =&\frac{1}{2\kappa ^2} R*1 - F\wedge *F + \lambda _a\wedge T^a \ , \end{aligned}$$
(48)
$$\begin{aligned} ds^2_{out} =&-\left( 1-\frac{2M}{r} + \frac{\kappa ^2Q^2}{r^2}\right) dt^2 \nonumber \\&+ \left( 1-\frac{2M}{r} + \frac{\kappa ^2Q^2}{r^2}\right) ^{-1} dr^2 + r^2d\Omega ^2 \ , \end{aligned}$$
(49)

with the electric field \(E(r)=Q/r^2\) and the pressure \(p(r)=0\) where Q and M are the total charge and mass of the dark star, respectively. By using (30) and (40), we calculate the electric charge of the star inside the sphere with radius r

$$\begin{aligned} q^2(r) = \frac{C_2 b_2 (1+k)}{\kappa ^2} r^{-{5(k-1)}/{(1+k)} }\;. \end{aligned}$$
(50)

Continuities of the metric functions and the pressure on the boundary surface at \(r=r_b\) generate

$$\begin{aligned} 1-b_1r^2 +b_2 r^3&= 1- \frac{2M}{r_b} + \frac{\kappa ^2Q^2}{r_b^2} \;, \end{aligned}$$
(51)
$$\begin{aligned} b_2&= \frac{3b_1}{5r_b} \;. \end{aligned}$$
(52)

By inserting (45) and (52) into (50) on the surface we can calculate the total charge of the star Q

$$\begin{aligned} Q^2 = \frac{3\beta (1+k)r_b^2}{5\kappa ^2} \end{aligned}$$
(53)

where we defined a new dimensionless constant \(\beta \) instead of the physically dimensional constant \(b_1\) as \(\beta = b_1r_b^2\). We remark that the increasing k and \(\beta \) values increase the total charge. Besides we calculate the total gravitational mass which is the mass appeared in the metric (49) and the matter mass defined by the volume integral of the energy density (41) over the star as follows

$$\begin{aligned} M= & {} \frac{(3k+5)\beta }{10} r_b \;, \end{aligned}$$
(54)
$$\begin{aligned} M_{mat}= & {} \frac{(1-k) \beta }{8}r_b \;. \end{aligned}$$
(55)

Besides, the gravitational redshift for the surface of the star is computed as

$$\begin{aligned} z= (1-b_1r_b^2 + b_2 r_b^3)^{-1} -1 = \frac{1}{1-\frac{2}{5} \beta } -1 \; . \end{aligned}$$
(56)

Compared with our previous model which has only one free parameter k, in this model we have a new arbitrary parameter \(\beta \) along with k. As usual the observational extreme values will guide us to determine the limits of \(\beta \). According to the literature [49,50,51] more than 750,000 quasars have been found as for today. All observed quasar spectra have redshifts between 0.056 and 7.642. Accordingly we obtain the interval for \(\beta \) as \(0< \beta <2.47\). In addition, a much larger redshift can be obtained in the range \(2.47 \le \beta <2.5 \). Future observation results in this direction may help determine the parameter \(\beta \) for each dark quasar.

4 Conclusion

We have constructed two exact, new gravastar solutions to the non-minimally coupled \(Y(R)F^2\) theory. The interior of the gravastar consists of the dark energy condensate which has the equation of state \(p=-\rho \) and the exterior is vacuum describing by the Reissner–Nordström geometry. Then the thin shell proposed by Mazur and Muttola [3] is replaced by an infinitely thin surface, which continuously connects these two regions. Thus, in this study, all the physical quantities are continuous and the exterior geometry continuously matches with the interior geometry on the surface. We obtain the total gravitational mass, matter mass, total electric charge and gravitational surface redshift in terms of the free parameters of the model. In the first solution we have only one free parameter k and in the second solution two parameters k and \(\beta \). We determined the ranges of these parameters from regularity of the physical quantities. The second solution gives a wide redshift range from zero to infinity depending on the \(\beta \) parameter, while the first solution gives a single redshift value. In the literature, although there is an upper limit of the surface redshift for uncharged general relativistic objects as \(z<2\) [52], the surface redshift can reach much higher values such as \(z=5\) [53] and \(z=5.211\) [54, 55] for anisotropic stars. Furthermore, this limit can be exceeded in the charged case and it is proportional to the charge parameter Q [56]. Moreover, by considering alternative gravity models such as Kaluza–Klein theory this limit can reach much higher values [57] which is very close to our result \(z=4\). The authors of a very recent paper inform the discovery of a luminous quasar at \(z = 7.642\), J0313-806 and the most distant quasar observed so far [51]. Besides, the surface redshift can be indefinitely large for quasiblack holes [58,59,60]. Therefore, these high redshift values in our model may be due to quasars, quasi-black holes or gravastars formed from ultra compact dark energy condensation at the center of galaxies.